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 ColorUIResourceConstant alterBackgroundColorprotected ColorUIResourceConstant backgroundColorprotected ColorUIResourceConstant backgroundColorDarkprotected ColorUIResourceConstant backgroundColorLightprotected booleanConstant backgroundPattern=truestatic final ColorUIResourceConstant BLACKstatic final ColorUIResourceConstant BLUEprotected ColorUIResourceConstant buttonBackgroundColorprotected ColorUIResourceConstant buttonColorDarkprotected ColorUIResourceConstant buttonColorLightprotected ColorUIResourceConstant buttonForegroundColorprotected ColorUIResourceConstant controlBackgroundColorprotected ColorUIResourceConstant controlColorDarkprotected ColorUIResourceConstant controlColorLightprotected ColorUIResourceConstant controlDarkShadowColorprotected FontUIResourceConstant controlFontprotected ColorUIResourceConstant controlForegroundColorprotected ColorUIResourceConstant controlHighlightColorprotected ColorUIResourceConstant controlShadowColorstatic final ColorUIResourceConstant DARK_BLUEstatic final ColorUIResourceConstant DARK_GRAYprotected ColorUIResourceConstant desktopColorprotected ColorUIResourceConstant disabledBackgroundColorprotected ColorUIResourceConstant disabledForegroundColorstatic final ColorUIResourceConstant EXTRA_DARK_GRAYstatic final ColorUIResourceConstant EXTRA_LIGHT_GRAYprotected ColorUIResourceConstant focusBackgroundColorprotected ColorUIResourceConstant focusCellColorprotected ColorUIResourceConstant focusColorprotected ColorUIResourceConstant focusForegroundColorprotected ColorUIResourceConstant focusFrameColorprotected ColorUIResourceConstant foregroundColorprotected ColorUIResourceConstant frameColorstatic final ColorUIResourceConstant GRAYprotected ColorUIResourceConstant gridColorprotected ColorUIResourceConstant inputBackgroundColorprotected ColorUIResourceConstant inputForegroundColorstatic final ColorUIResourceConstant LIGHT_GRAYstatic final ColorUIResourceConstant LIGHT_ORANGEprotected floatConstant menuAlpha=0.9fprotected ColorUIResourceConstant menuBackgroundColorprotected ColorUIResourceConstant menuColorDarkprotected ColorUIResourceConstant menuColorLightprotected FontUIResourceConstant menuFontprotected ColorUIResourceConstant menuForegroundColorprotected booleanConstant menuOpaque=trueprotected ColorUIResourceConstant menuSelectionBackgroundColorprotected ColorUIResourceConstant menuSelectionBackgroundColorDarkprotected ColorUIResourceConstant menuSelectionBackgroundColorLightprotected ColorUIResourceConstant menuSelectionForegroundColorstatic final ColorUIResourceConstant ORANGEprotected ColorUIResourceConstant pressedBackgroundColorprotected ColorUIResourceConstant pressedBackgroundColorDarkprotected ColorUIResourceConstant pressedBackgroundColorLightprotected ColorUIResourceConstant pressedForegroundColorprotected ColorUIResourceConstant rolloverColorprotected ColorUIResourceConstant rolloverColorDarkprotected ColorUIResourceConstant rolloverColorLightprotected ColorUIResourceConstant rolloverForegroundColorprotected ColorUIResourceConstant selectionBackgroundColorprotected ColorUIResourceConstant selectionBackgroundColorDarkprotected ColorUIResourceConstant selectionBackgroundColorLightprotected ColorUIResourceConstant selectionForegroundColorprotected ColorUIResourceConstant shadowColorprotected booleanConstant showFocusFrame=falseprotected FontUIResourceConstant smallFontstatic final ColorUIResourceConstant SUPER_LIGHT_GRAYprotected FontUIResourceConstant systemFontprotected ColorUIResourceConstant tabAreaBackgroundColorprotected ColorUIResourceConstant tabSelectionForegroundColorprotected booleanConstant textShadow=falseprotected ColorUIResourceConstant toolbarBackgroundColorprotected ColorUIResourceConstant toolbarColorDarkprotected ColorUIResourceConstant toolbarColorLightprotected ColorUIResourceConstant toolbarForegroundColorprotected ColorUIResourceConstant tooltipBackgroundColorprotected intConstant tooltipBorderSize=6protected ColorUIResourceConstant tooltipForegroundColorprotected intConstant tooltipShadowSize=6protected FontUIResourceConstant userFontstatic final ColorUIResourceConstant WHITEprotected ColorUIResourceConstant windowBorderColorprotected ColorUIResourceConstant windowIconColorprotected ColorUIResourceConstant windowIconRolloverColorprotected ColorUIResourceConstant windowIconShadowColorprotected ColorUIResourceConstant windowInactiveBorderColorprotected ColorUIResourceConstant windowInactiveTitleBackgroundColorprotected ColorUIResourceConstant windowInactiveTitleColorDarkprotected ColorUIResourceConstant windowInactiveTitleColorLightprotected ColorUIResourceConstant windowInactiveTitleForegroundColorprotected ColorUIResourceConstant windowTitleBackgroundColorprotected ColorUIResourceConstant windowTitleColorDarkprotected ColorUIResourceConstant windowTitleColorLightprotected FontUIResourceConstant windowTitleFontprotected ColorUIResourceConstant windowTitleForegroundColorstatic final ColorUIResourceConstant YELLOW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoDrawSquareButtons.booleandoShowFocusFrame.Color[]getCheckBoxColors.Color[]getHiDefaultColors.Getter for the field logoString.getName()protected ColorUIResourceprotected ColorUIResourceprotected ColorUIResourcegetPropertyFileName.protected ColorUIResourceprotected ColorUIResourceprotected ColorUIResourcegetTextAntiAliasingHint.Color[]getToolBarColors.intGetter for the field tooltipBorderSize.intGetter for the field tooltipShadowSize.booleanisBackgroundPatternOn.booleanisCenterWindowTitleOn.booleanisLargeFontSize.booleanisLinuxStyleScrollBarOn.booleanisMacStyleScrollBarOn.booleanisMacStyleWindowDecorationOn.booleanisMediumFontSize.booleanisSmallFontSize.booleanisTextAntiAliasingOn.booleanisTextShadowOn.booleanisTinyFontSize.booleanisWindowDecorationOn.voidloadProperties.voidsetProperties(Properties props) setProperties.voidsetUpColor.voidsetUpColorArrs.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
Colorobjects.
-
getControl
- Overrides:
getControlin classMetalTheme
-
getControlDarkShadow
- Overrides:
getControlDarkShadowin classMetalTheme
-
getControlHighlight
- Overrides:
getControlHighlightin classMetalTheme
-
getControlInfo
- Overrides:
getControlInfoin classMetalTheme
-
getControlShadow
- Overrides:
getControlShadowin classMetalTheme
-
getControlTextColor
- Overrides:
getControlTextColorin classMetalTheme
-
getControlTextFont
- Specified by:
getControlTextFontin classMetalTheme
-
getDesktopColor
- Overrides:
getDesktopColorin classMetalTheme
-
getFocusColor
- Overrides:
getFocusColorin classMetalTheme
-
getHiDefaultColors
getHiDefaultColors.
- Returns:
- an array of
Colorobjects.
-
getLogoString
Getter for the field logoString.
- Returns:
- a
Stringobject.
-
getMenuTextFont
- Specified by:
getMenuTextFontin classMetalTheme
-
getName
- Specified by:
getNamein classMetalTheme
-
getPrimary1
- Specified by:
getPrimary1in classMetalTheme
-
getPrimary2
- Specified by:
getPrimary2in classMetalTheme
-
getPrimary3
- Specified by:
getPrimary3in classMetalTheme
-
getPrimaryControl
- Overrides:
getPrimaryControlin classMetalTheme
-
getPrimaryControlDarkShadow
- Overrides:
getPrimaryControlDarkShadowin classMetalTheme
-
getPrimaryControlHighlight
- Overrides:
getPrimaryControlHighlightin classMetalTheme
-
getPrimaryControlInfo
- Overrides:
getPrimaryControlInfoin classMetalTheme
-
getPrimaryControlShadow
- Overrides:
getPrimaryControlShadowin classMetalTheme
-
getPropertyFileName
getPropertyFileName.
- Returns:
- a
Stringobject.
-
getSecondary1
- Specified by:
getSecondary1in classMetalTheme
-
getSecondary2
- Specified by:
getSecondary2in classMetalTheme
-
getSecondary3
- Specified by:
getSecondary3in classMetalTheme
-
getSubTextFont
- Specified by:
getSubTextFontin classMetalTheme
-
getSystemTextColor
- Overrides:
getSystemTextColorin classMetalTheme
-
getSystemTextFont
- Specified by:
getSystemTextFontin classMetalTheme
-
getTextAntiAliasingHint
getTextAntiAliasingHint.
- Returns:
- a
Objectobject.
-
getToolBarColors
getToolBarColors.
- Returns:
- an array of
Colorobjects.
-
getTooltipBorderSize
public int getTooltipBorderSize()Getter for the field tooltipBorderSize.
- Returns:
- a
Integerobject.
-
getTooltipShadowSize
public int getTooltipShadowSize()Getter for the field tooltipShadowSize.
- Returns:
- a
Integerobject.
-
getUserTextFont
- Specified by:
getUserTextFontin classMetalTheme
-
getWindowTitleFont
- Specified by:
getWindowTitleFontin 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- aPropertiesobject.
-
setUpColor
public void setUpColor()setUpColor.
-
setUpColorArrs
public void setUpColorArrs()setUpColorArrs.
-