com.elegantj.common
Class CustomTheme
java.lang.Object
|
+--javax.swing.plaf.metal.MetalTheme
|
+--javax.swing.plaf.metal.DefaultMetalTheme
|
+--com.elegantj.common.CustomTheme
- public class CustomTheme
- extends javax.swing.plaf.metal.DefaultMetalTheme
This class provided custom theme for whole Graph.
|
Constructor Summary |
CustomTheme()
Colors and fonts will be initialized from properties file |
|
Method Summary |
protected javax.swing.plaf.ColorUIResource |
getBlack()
|
javax.swing.plaf.FontUIResource |
getControlTextFont()
|
javax.swing.plaf.FontUIResource |
getMenuTextFont()
|
java.lang.String |
getName()
|
protected javax.swing.plaf.ColorUIResource |
getPrimary1()
|
protected javax.swing.plaf.ColorUIResource |
getPrimary2()
|
protected javax.swing.plaf.ColorUIResource |
getPrimary3()
|
protected javax.swing.plaf.ColorUIResource |
getSecondary1()
|
protected javax.swing.plaf.ColorUIResource |
getSecondary2()
|
protected javax.swing.plaf.ColorUIResource |
getSecondary3()
|
javax.swing.plaf.FontUIResource |
getSubTextFont()
|
javax.swing.plaf.FontUIResource |
getSystemTextFont()
|
javax.swing.plaf.FontUIResource |
getUserTextFont()
|
protected javax.swing.plaf.ColorUIResource |
getWhite()
|
javax.swing.plaf.FontUIResource |
getWindowTitleFont()
|
protected javax.swing.plaf.ColorUIResource |
parseColor(java.lang.String colorStr,
javax.swing.plaf.ColorUIResource defaultColor)
Parses the color from given color string |
protected javax.swing.plaf.FontUIResource |
parseFont(java.lang.String fontStr,
javax.swing.plaf.FontUIResource defaultFont)
Parses the font from given font string |
| Methods inherited from class javax.swing.plaf.metal.MetalTheme |
addCustomEntriesToTable, getAcceleratorForeground, getAcceleratorSelectedForeground, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getDesktopColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSystemTextColor, getTextHighlightColor, getUserTextColor, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomTheme
public CustomTheme()
- Colors and fonts will be initialized from properties file
getName
public java.lang.String getName()
- Overrides:
getName in class javax.swing.plaf.metal.DefaultMetalTheme
getPrimary1
protected javax.swing.plaf.ColorUIResource getPrimary1()
- Overrides:
getPrimary1 in class javax.swing.plaf.metal.DefaultMetalTheme
getPrimary2
protected javax.swing.plaf.ColorUIResource getPrimary2()
- Overrides:
getPrimary2 in class javax.swing.plaf.metal.DefaultMetalTheme
getPrimary3
protected javax.swing.plaf.ColorUIResource getPrimary3()
- Overrides:
getPrimary3 in class javax.swing.plaf.metal.DefaultMetalTheme
getSecondary1
protected javax.swing.plaf.ColorUIResource getSecondary1()
- Overrides:
getSecondary1 in class javax.swing.plaf.metal.DefaultMetalTheme
getSecondary2
protected javax.swing.plaf.ColorUIResource getSecondary2()
- Overrides:
getSecondary2 in class javax.swing.plaf.metal.DefaultMetalTheme
getSecondary3
protected javax.swing.plaf.ColorUIResource getSecondary3()
- Overrides:
getSecondary3 in class javax.swing.plaf.metal.DefaultMetalTheme
getBlack
protected javax.swing.plaf.ColorUIResource getBlack()
- Overrides:
getBlack in class javax.swing.plaf.metal.MetalTheme
getWhite
protected javax.swing.plaf.ColorUIResource getWhite()
- Overrides:
getWhite in class javax.swing.plaf.metal.MetalTheme
getMenuTextFont
public javax.swing.plaf.FontUIResource getMenuTextFont()
- Overrides:
getMenuTextFont in class javax.swing.plaf.metal.DefaultMetalTheme
getControlTextFont
public javax.swing.plaf.FontUIResource getControlTextFont()
- Overrides:
getControlTextFont in class javax.swing.plaf.metal.DefaultMetalTheme
getSystemTextFont
public javax.swing.plaf.FontUIResource getSystemTextFont()
- Overrides:
getSystemTextFont in class javax.swing.plaf.metal.DefaultMetalTheme
getUserTextFont
public javax.swing.plaf.FontUIResource getUserTextFont()
- Overrides:
getUserTextFont in class javax.swing.plaf.metal.DefaultMetalTheme
getWindowTitleFont
public javax.swing.plaf.FontUIResource getWindowTitleFont()
- Overrides:
getWindowTitleFont in class javax.swing.plaf.metal.DefaultMetalTheme
getSubTextFont
public javax.swing.plaf.FontUIResource getSubTextFont()
- Overrides:
getSubTextFont in class javax.swing.plaf.metal.DefaultMetalTheme
parseColor
protected javax.swing.plaf.ColorUIResource parseColor(java.lang.String colorStr,
javax.swing.plaf.ColorUIResource defaultColor)
- Parses the color from given color string
- Parameters:
colorStr - the string representation of color e.g. 255-255-255defaultColor - the default color is used, if color can not be derived
- Returns:
- color derived form given string; if color can not be derived from given string, returns defaultColor
parseFont
protected javax.swing.plaf.FontUIResource parseFont(java.lang.String fontStr,
javax.swing.plaf.FontUIResource defaultFont)
- Parses the font from given font string
- Parameters:
fontStr - the string representation of font e.g. fontname-fontstyle-fontsizedefaultFont - the default font is used, if font can not be derived
- Returns:
- font derived form given string; if font can not be derived from given string, returns defaultFont
For any feedback, suggestion, or query, please revert back to support@elegantcharts.com
Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.