net.beeger.squareness.theme
Class SquarenessTheme

java.lang.Object
  extended by javax.swing.plaf.metal.MetalTheme
      extended by net.beeger.squareness.theme.SquarenessTheme
Direct Known Subclasses:
DefaultSquarenessTheme, PropertiesSquarenessTheme

public abstract class SquarenessTheme
extends javax.swing.plaf.metal.MetalTheme

The common abstract superclass for all Squareness theme classes.


Constructor Summary
SquarenessTheme()
           
 
Method Summary
 javax.swing.plaf.FontUIResource getControlTextFont()
           
abstract  javax.swing.plaf.ColorUIResource getDefaultButtonBorderColor()
          Return the default button border color.
abstract  javax.swing.plaf.ColorUIResource getDesktopColor()
          Return the desktop color.
abstract  javax.swing.plaf.ColorUIResource getDisabledBorderColor()
          Return the disabled border color.
abstract  javax.swing.plaf.ColorUIResource getInactiveWindowBorderColor()
          Return the inactive window border color.
 javax.swing.plaf.FontUIResource getMenuTextFont()
           
abstract  javax.swing.plaf.ColorUIResource getNormalBorderColor()
          Return the normal border color.
abstract  javax.swing.plaf.ColorUIResource getNormalControlBackgroundColor()
          Return the normal control background color.
abstract  javax.swing.plaf.ColorUIResource getPressedScrollBarTrackBackgroundColor()
          Return the pressed scroll bar track background color.
abstract  javax.swing.plaf.ColorUIResource getProgressBarBackgroundColor()
          Return the progress bar background color.
abstract  javax.swing.plaf.ColorUIResource getSelectedControlBackgroundColor()
          Return the selected control background color.
abstract  javax.swing.plaf.ColorUIResource getSelectedControlBackgroundShadowColor()
          Return the selected control background shadow color.
 javax.swing.plaf.FontUIResource getSubTextFont()
           
 javax.swing.plaf.FontUIResource getSystemTextFont()
           
abstract  javax.swing.plaf.ColorUIResource getTextColor()
          Return the text color.
abstract  javax.swing.plaf.ColorUIResource getTextInputBackgroundColor()
          Return the text input background color.
 javax.swing.plaf.FontUIResource getUserTextFont()
           
abstract  javax.swing.plaf.ColorUIResource getWindowBackgroundColor()
          Return the window background color.
 javax.swing.plaf.FontUIResource getWindowTitleFont()
           
abstract  boolean isDark()
          Is this theme a dark theme.
The information whether a theme is dark can be useful for component plugin writers needing to come up with new colors that fit into the theme.
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
addCustomEntriesToTable, getAcceleratorForeground, getAcceleratorSelectedForeground, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getName, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSystemTextColor, getTextHighlightColor, getUserTextColor, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SquarenessTheme

public SquarenessTheme()
Method Detail

getControlTextFont

public javax.swing.plaf.FontUIResource getControlTextFont()
Specified by:
getControlTextFont in class javax.swing.plaf.metal.MetalTheme

getMenuTextFont

public javax.swing.plaf.FontUIResource getMenuTextFont()
Specified by:
getMenuTextFont in class javax.swing.plaf.metal.MetalTheme

getSubTextFont

public javax.swing.plaf.FontUIResource getSubTextFont()
Specified by:
getSubTextFont in class javax.swing.plaf.metal.MetalTheme

getSystemTextFont

public javax.swing.plaf.FontUIResource getSystemTextFont()
Specified by:
getSystemTextFont in class javax.swing.plaf.metal.MetalTheme

getUserTextFont

public javax.swing.plaf.FontUIResource getUserTextFont()
Specified by:
getUserTextFont in class javax.swing.plaf.metal.MetalTheme

getWindowTitleFont

public javax.swing.plaf.FontUIResource getWindowTitleFont()
Specified by:
getWindowTitleFont in class javax.swing.plaf.metal.MetalTheme

getDesktopColor

public abstract javax.swing.plaf.ColorUIResource getDesktopColor()

Return the desktop color.

This color is used as the background color of desktop panes.

Overrides:
getDesktopColor in class javax.swing.plaf.metal.MetalTheme
Returns:
the desktop color

getWindowBackgroundColor

public abstract javax.swing.plaf.ColorUIResource getWindowBackgroundColor()

Return the window background color.

This color is used as the background color of windows of all sorts.

Returns:
the window background color

getInactiveWindowBorderColor

public abstract javax.swing.plaf.ColorUIResource getInactiveWindowBorderColor()

Return the inactive window border color.

This color is used for the border of inactive frames.

Returns:
the inactive window border color

getNormalBorderColor

public abstract javax.swing.plaf.ColorUIResource getNormalBorderColor()

Return the normal border color.

This color is used for borders of all sorts: control borders, window, menu etc. borders.

Returns:
the normal border color

getDisabledBorderColor

public abstract javax.swing.plaf.ColorUIResource getDisabledBorderColor()

Return the disabled border color.

This color is used for borders of all sorts where the component to which the border is applied is disabled.

Returns:
the disabled border color

getDefaultButtonBorderColor

public abstract javax.swing.plaf.ColorUIResource getDefaultButtonBorderColor()

Return the default button border color.

This color is used for the border of default buttons.

Returns:
the default button border color

getNormalControlBackgroundColor

public abstract javax.swing.plaf.ColorUIResource getNormalControlBackgroundColor()

Return the normal control background color.

This color is used for the background of normal unselected and not disabled controls such as buttons and scroll bar thumbs

Returns:
the normal control background color

getSelectedControlBackgroundColor

public abstract javax.swing.plaf.ColorUIResource getSelectedControlBackgroundColor()

Return the selected control background color.

This color is used for the background of selected controls and controls over which the mouse pointer hovers.

Returns:
the selected control background color

getSelectedControlBackgroundShadowColor

public abstract javax.swing.plaf.ColorUIResource getSelectedControlBackgroundShadowColor()

Return the selected control background shadow color.

This color is used for the shadow in the background of selected controls.

Returns:
the selected control background shadow color

getProgressBarBackgroundColor

public abstract javax.swing.plaf.ColorUIResource getProgressBarBackgroundColor()

Return the progress bar background color.

This color is used for the background of progress bars and for the tracks of scroll bars.

Returns:
the progress bar background color

getPressedScrollBarTrackBackgroundColor

public abstract javax.swing.plaf.ColorUIResource getPressedScrollBarTrackBackgroundColor()

Return the pressed scroll bar track background color.

This color is used for the background of scroll bar tracks when the track is pressed (i.e. you clicked the left mouse button while the mouse pointer was over the track have not released it yet.).

Returns:
the pressed scroll bar track background color

getTextInputBackgroundColor

public abstract javax.swing.plaf.ColorUIResource getTextInputBackgroundColor()

Return the text input background color.

This color is used for the background of controls where text can be typed in (text fields, text areas etc.)

Returns:
the text input background color

getTextColor

public abstract javax.swing.plaf.ColorUIResource getTextColor()

Return the text color.

All text - no matter where it is printed on - is printed in this color.)

Returns:
the text color

isDark

public abstract boolean isDark()
Is this theme a dark theme.
The information whether a theme is dark can be useful for component plugin writers needing to come up with new colors that fit into the theme.

Returns:
true if this theme is a dark theme, false otherwise