Package com.jtattoo.plaf
Class AbstractTheme
java.lang.Object
javax.swing.plaf.metal.MetalTheme
com.jtattoo.plaf.AbstractTheme
- Direct Known Subclasses:
AcrylDefaultTheme
,AeroDefaultTheme
,AluminiumDefaultTheme
,BernsteinDefaultTheme
,FastDefaultTheme
,GraphiteDefaultTheme
,HiFiDefaultTheme
,LunaDefaultTheme
,McWinDefaultTheme
,MintDefaultTheme
,NoireDefaultTheme
,SmartDefaultTheme
,TextureDefaultTheme
Abstract AbstractTheme class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ColorUIResource
Constant alterBackgroundColorprotected ColorUIResource
Constant backgroundColorprotected ColorUIResource
Constant backgroundColorDarkprotected ColorUIResource
Constant backgroundColorLightprotected boolean
Constant backgroundPattern=truestatic final ColorUIResource
Constant BLACKstatic final ColorUIResource
Constant BLUEprotected ColorUIResource
Constant buttonBackgroundColorprotected ColorUIResource
Constant buttonColorDarkprotected ColorUIResource
Constant buttonColorLightprotected ColorUIResource
Constant buttonForegroundColorprotected ColorUIResource
Constant controlBackgroundColorprotected ColorUIResource
Constant controlColorDarkprotected ColorUIResource
Constant controlColorLightprotected ColorUIResource
Constant controlDarkShadowColorprotected FontUIResource
Constant controlFontprotected ColorUIResource
Constant controlForegroundColorprotected ColorUIResource
Constant controlHighlightColorprotected ColorUIResource
Constant controlShadowColorstatic final ColorUIResource
Constant DARK_BLUEstatic final ColorUIResource
Constant DARK_GRAYprotected ColorUIResource
Constant desktopColorprotected ColorUIResource
Constant disabledBackgroundColorprotected ColorUIResource
Constant disabledForegroundColorstatic final ColorUIResource
Constant EXTRA_DARK_GRAYstatic final ColorUIResource
Constant EXTRA_LIGHT_GRAYprotected ColorUIResource
Constant focusBackgroundColorprotected ColorUIResource
Constant focusCellColorprotected ColorUIResource
Constant focusColorprotected ColorUIResource
Constant focusForegroundColorprotected ColorUIResource
Constant focusFrameColorprotected ColorUIResource
Constant foregroundColorprotected ColorUIResource
Constant frameColorstatic final ColorUIResource
Constant GRAYprotected ColorUIResource
Constant gridColorprotected ColorUIResource
Constant inputBackgroundColorprotected ColorUIResource
Constant inputForegroundColorstatic final ColorUIResource
Constant LIGHT_GRAYstatic final ColorUIResource
Constant LIGHT_ORANGEprotected float
Constant menuAlpha=0.9fprotected ColorUIResource
Constant menuBackgroundColorprotected ColorUIResource
Constant menuColorDarkprotected ColorUIResource
Constant menuColorLightprotected FontUIResource
Constant menuFontprotected ColorUIResource
Constant menuForegroundColorprotected boolean
Constant menuOpaque=trueprotected ColorUIResource
Constant menuSelectionBackgroundColorprotected ColorUIResource
Constant menuSelectionBackgroundColorDarkprotected ColorUIResource
Constant menuSelectionBackgroundColorLightprotected ColorUIResource
Constant menuSelectionForegroundColorstatic final ColorUIResource
Constant ORANGEprotected ColorUIResource
Constant pressedBackgroundColorprotected ColorUIResource
Constant pressedBackgroundColorDarkprotected ColorUIResource
Constant pressedBackgroundColorLightprotected ColorUIResource
Constant pressedForegroundColorprotected ColorUIResource
Constant rolloverColorprotected ColorUIResource
Constant rolloverColorDarkprotected ColorUIResource
Constant rolloverColorLightprotected ColorUIResource
Constant rolloverForegroundColorprotected ColorUIResource
Constant selectionBackgroundColorprotected ColorUIResource
Constant selectionBackgroundColorDarkprotected ColorUIResource
Constant selectionBackgroundColorLightprotected ColorUIResource
Constant selectionForegroundColorprotected ColorUIResource
Constant shadowColorprotected boolean
Constant showFocusFrame=falseprotected FontUIResource
Constant smallFontstatic final ColorUIResource
Constant SUPER_LIGHT_GRAYprotected FontUIResource
Constant systemFontprotected ColorUIResource
Constant tabAreaBackgroundColorprotected ColorUIResource
Constant tabSelectionForegroundColorprotected boolean
Constant textShadow=falseprotected ColorUIResource
Constant toolbarBackgroundColorprotected ColorUIResource
Constant toolbarColorDarkprotected ColorUIResource
Constant toolbarColorLightprotected ColorUIResource
Constant toolbarForegroundColorprotected ColorUIResource
Constant tooltipBackgroundColorprotected int
Constant tooltipBorderSize=6protected ColorUIResource
Constant tooltipForegroundColorprotected int
Constant tooltipShadowSize=6protected FontUIResource
Constant userFontstatic final ColorUIResource
Constant WHITEprotected ColorUIResource
Constant windowBorderColorprotected ColorUIResource
Constant windowIconColorprotected ColorUIResource
Constant windowIconRolloverColorprotected ColorUIResource
Constant windowIconShadowColorprotected ColorUIResource
Constant windowInactiveBorderColorprotected ColorUIResource
Constant windowInactiveTitleBackgroundColorprotected ColorUIResource
Constant windowInactiveTitleColorDarkprotected ColorUIResource
Constant windowInactiveTitleColorLightprotected ColorUIResource
Constant windowInactiveTitleForegroundColorprotected ColorUIResource
Constant windowTitleBackgroundColorprotected ColorUIResource
Constant windowTitleColorDarkprotected ColorUIResource
Constant windowTitleColorLightprotected FontUIResource
Constant windowTitleFontprotected ColorUIResource
Constant windowTitleForegroundColorstatic final ColorUIResource
Constant YELLOW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
doDrawSquareButtons.boolean
doShowFocusFrame.Color[]
getCheckBoxColors.Color[]
getHiDefaultColors.Getter for the field logoString.getName()
protected ColorUIResource
protected ColorUIResource
protected ColorUIResource
getPropertyFileName.protected ColorUIResource
protected ColorUIResource
protected ColorUIResource
getTextAntiAliasingHint.Color[]
getToolBarColors.int
Getter for the field tooltipBorderSize.int
Getter for the field tooltipShadowSize.boolean
isBackgroundPatternOn.boolean
isCenterWindowTitleOn.boolean
isLargeFontSize.boolean
isLinuxStyleScrollBarOn.boolean
isMacStyleScrollBarOn.boolean
isMacStyleWindowDecorationOn.boolean
isMediumFontSize.boolean
isSmallFontSize.boolean
isTextAntiAliasingOn.boolean
isTextShadowOn.boolean
isTinyFontSize.boolean
isWindowDecorationOn.void
loadProperties.void
setProperties
(Properties props) setProperties.void
setUpColor.void
setUpColorArrs.Methods inherited from class javax.swing.plaf.metal.MetalTheme
addCustomEntriesToTable, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControlDisabled, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getSeparatorBackground, getSeparatorForeground, getTextHighlightColor, getUserTextColor, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground
-
Field Details
-
WHITE
Constant WHITE -
SUPER_LIGHT_GRAY
Constant SUPER_LIGHT_GRAY -
EXTRA_LIGHT_GRAY
Constant EXTRA_LIGHT_GRAY -
LIGHT_GRAY
Constant LIGHT_GRAY -
GRAY
Constant GRAY -
DARK_GRAY
Constant DARK_GRAY -
EXTRA_DARK_GRAY
Constant EXTRA_DARK_GRAY -
BLACK
Constant BLACK -
ORANGE
Constant ORANGE -
LIGHT_ORANGE
Constant LIGHT_ORANGE -
YELLOW
Constant YELLOW -
BLUE
Constant BLUE -
DARK_BLUE
Constant DARK_BLUE -
textShadow
protected boolean textShadowConstant textShadow=false -
backgroundPattern
protected boolean backgroundPatternConstant backgroundPattern=true -
showFocusFrame
protected boolean showFocusFrameConstant showFocusFrame=false -
controlFont
Constant controlFont -
systemFont
Constant systemFont -
userFont
Constant userFont -
smallFont
Constant smallFont -
windowTitleFont
Constant windowTitleFont -
foregroundColor
Constant foregroundColor -
backgroundColor
Constant backgroundColor -
backgroundColorLight
Constant backgroundColorLight -
backgroundColorDark
Constant backgroundColorDark -
alterBackgroundColor
Constant alterBackgroundColor -
disabledForegroundColor
Constant disabledForegroundColor -
disabledBackgroundColor
Constant disabledBackgroundColor -
inputBackgroundColor
Constant inputBackgroundColor -
inputForegroundColor
Constant inputForegroundColor -
selectionForegroundColor
Constant selectionForegroundColor -
selectionBackgroundColorLight
Constant selectionBackgroundColorLight -
selectionBackgroundColorDark
Constant selectionBackgroundColorDark -
selectionBackgroundColor
Constant selectionBackgroundColor -
rolloverForegroundColor
Constant rolloverForegroundColor -
rolloverColor
Constant rolloverColor -
rolloverColorLight
Constant rolloverColorLight -
rolloverColorDark
Constant rolloverColorDark -
pressedForegroundColor
Constant pressedForegroundColor -
pressedBackgroundColor
Constant pressedBackgroundColor -
pressedBackgroundColorLight
Constant pressedBackgroundColorLight -
pressedBackgroundColorDark
Constant pressedBackgroundColorDark -
focusColor
Constant focusColor -
focusCellColor
Constant focusCellColor -
focusFrameColor
Constant focusFrameColor -
focusBackgroundColor
Constant focusBackgroundColor -
focusForegroundColor
Constant focusForegroundColor -
frameColor
Constant frameColor -
gridColor
Constant gridColor -
shadowColor
Constant shadowColor -
buttonForegroundColor
Constant buttonForegroundColor -
buttonBackgroundColor
Constant buttonBackgroundColor -
buttonColorLight
Constant buttonColorLight -
buttonColorDark
Constant buttonColorDark -
controlForegroundColor
Constant controlForegroundColor -
controlBackgroundColor
Constant controlBackgroundColor -
controlHighlightColor
Constant controlHighlightColor -
controlShadowColor
Constant controlShadowColor -
controlDarkShadowColor
Constant controlDarkShadowColor -
controlColorLight
Constant controlColorLight -
controlColorDark
Constant controlColorDark -
windowTitleForegroundColor
Constant windowTitleForegroundColor -
windowTitleBackgroundColor
Constant windowTitleBackgroundColor -
windowTitleColorLight
Constant windowTitleColorLight -
windowTitleColorDark
Constant windowTitleColorDark -
windowBorderColor
Constant windowBorderColor -
windowIconColor
Constant windowIconColor -
windowIconShadowColor
Constant windowIconShadowColor -
windowIconRolloverColor
Constant windowIconRolloverColor -
windowInactiveTitleForegroundColor
Constant windowInactiveTitleForegroundColor -
windowInactiveTitleBackgroundColor
Constant windowInactiveTitleBackgroundColor -
windowInactiveTitleColorLight
Constant windowInactiveTitleColorLight -
windowInactiveTitleColorDark
Constant windowInactiveTitleColorDark -
windowInactiveBorderColor
Constant windowInactiveBorderColor -
toolbarForegroundColor
Constant toolbarForegroundColor -
toolbarBackgroundColor
Constant toolbarBackgroundColor -
toolbarColorLight
Constant toolbarColorLight -
toolbarColorDark
Constant toolbarColorDark -
tabAreaBackgroundColor
Constant tabAreaBackgroundColor -
tabSelectionForegroundColor
Constant tabSelectionForegroundColor -
desktopColor
Constant desktopColor -
tooltipForegroundColor
Constant tooltipForegroundColor -
tooltipBackgroundColor
Constant tooltipBackgroundColor -
tooltipBorderSize
protected int tooltipBorderSizeConstant tooltipBorderSize=6 -
tooltipShadowSize
protected int tooltipShadowSizeConstant tooltipShadowSize=6
-
-
Constructor Details
-
AbstractTheme
public AbstractTheme()Constructor for AbstractTheme.
-
-
Method Details
-
doDrawSquareButtons
public boolean doDrawSquareButtons()doDrawSquareButtons.
- Returns:
- a boolean.
-
doShowFocusFrame
public boolean doShowFocusFrame()doShowFocusFrame.
- Returns:
- a boolean.
-
getCheckBoxColors
getCheckBoxColors.
- Returns:
- an array of
Color
objects.
-
getControl
- Overrides:
getControl
in classMetalTheme
-
getControlDarkShadow
- Overrides:
getControlDarkShadow
in classMetalTheme
-
getControlHighlight
- Overrides:
getControlHighlight
in classMetalTheme
-
getControlInfo
- Overrides:
getControlInfo
in classMetalTheme
-
getControlShadow
- Overrides:
getControlShadow
in classMetalTheme
-
getControlTextColor
- Overrides:
getControlTextColor
in classMetalTheme
-
getControlTextFont
- Specified by:
getControlTextFont
in classMetalTheme
-
getDesktopColor
- Overrides:
getDesktopColor
in classMetalTheme
-
getFocusColor
- Overrides:
getFocusColor
in classMetalTheme
-
getHiDefaultColors
getHiDefaultColors.
- Returns:
- an array of
Color
objects.
-
getLogoString
Getter for the field logoString.
- Returns:
- a
String
object.
-
getMenuTextFont
- Specified by:
getMenuTextFont
in classMetalTheme
-
getName
- Specified by:
getName
in classMetalTheme
-
getPrimary1
- Specified by:
getPrimary1
in classMetalTheme
-
getPrimary2
- Specified by:
getPrimary2
in classMetalTheme
-
getPrimary3
- Specified by:
getPrimary3
in classMetalTheme
-
getPrimaryControl
- Overrides:
getPrimaryControl
in classMetalTheme
-
getPrimaryControlDarkShadow
- Overrides:
getPrimaryControlDarkShadow
in classMetalTheme
-
getPrimaryControlHighlight
- Overrides:
getPrimaryControlHighlight
in classMetalTheme
-
getPrimaryControlInfo
- Overrides:
getPrimaryControlInfo
in classMetalTheme
-
getPrimaryControlShadow
- Overrides:
getPrimaryControlShadow
in classMetalTheme
-
getPropertyFileName
getPropertyFileName.
- Returns:
- a
String
object.
-
getSecondary1
- Specified by:
getSecondary1
in classMetalTheme
-
getSecondary2
- Specified by:
getSecondary2
in classMetalTheme
-
getSecondary3
- Specified by:
getSecondary3
in classMetalTheme
-
getSubTextFont
- Specified by:
getSubTextFont
in classMetalTheme
-
getSystemTextColor
- Overrides:
getSystemTextColor
in classMetalTheme
-
getSystemTextFont
- Specified by:
getSystemTextFont
in classMetalTheme
-
getTextAntiAliasingHint
getTextAntiAliasingHint.
- Returns:
- a
Object
object.
-
getToolBarColors
getToolBarColors.
- Returns:
- an array of
Color
objects.
-
getTooltipBorderSize
public int getTooltipBorderSize()Getter for the field tooltipBorderSize.
- Returns:
- a
Integer
object.
-
getTooltipShadowSize
public int getTooltipShadowSize()Getter for the field tooltipShadowSize.
- Returns:
- a
Integer
object.
-
getUserTextFont
- Specified by:
getUserTextFont
in classMetalTheme
-
getWindowTitleFont
- Specified by:
getWindowTitleFont
in classMetalTheme
-
isBackgroundPatternOn
public boolean isBackgroundPatternOn()isBackgroundPatternOn.
- Returns:
- a boolean.
-
isCenterWindowTitleOn
public boolean isCenterWindowTitleOn()isCenterWindowTitleOn.
- Returns:
- a boolean.
-
isLargeFontSize
public boolean isLargeFontSize()isLargeFontSize.
- Returns:
- a boolean.
-
isLinuxStyleScrollBarOn
public boolean isLinuxStyleScrollBarOn()isLinuxStyleScrollBarOn.
- Returns:
- a boolean.
-
isMacStyleScrollBarOn
public boolean isMacStyleScrollBarOn()isMacStyleScrollBarOn.
- Returns:
- a boolean.
-
isMacStyleWindowDecorationOn
public boolean isMacStyleWindowDecorationOn()isMacStyleWindowDecorationOn.
- Returns:
- a boolean.
-
isMediumFontSize
public boolean isMediumFontSize()isMediumFontSize.
- Returns:
- a boolean.
-
isSmallFontSize
public boolean isSmallFontSize()isSmallFontSize.
- Returns:
- a boolean.
-
isTextAntiAliasingOn
public boolean isTextAntiAliasingOn()isTextAntiAliasingOn.
- Returns:
- a boolean.
-
isTextShadowOn
public boolean isTextShadowOn()isTextShadowOn.
- Returns:
- a boolean.
-
isTinyFontSize
public boolean isTinyFontSize()isTinyFontSize.
- Returns:
- a boolean.
-
isWindowDecorationOn
public boolean isWindowDecorationOn()isWindowDecorationOn.
- Returns:
- a boolean.
-
loadProperties
public void loadProperties()loadProperties.
-
setProperties
setProperties.
- Parameters:
props
- aProperties
object.
-
setUpColor
public void setUpColor()setUpColor.
-
setUpColorArrs
public void setUpColorArrs()setUpColorArrs.
-