com.jgoodies.metamorphosis
Class Style

java.lang.Object
  extended by com.jgoodies.metamorphosis.Style

final class Style
extends Object

This class provides information about the choose UI style, e.g. which icon or border style should be applied.

Author:
Karsten Lentzsch

Nested Class Summary
(package private) static class Style.IconStyle
           
 
Field Summary
(package private) static Style ADVANCED
           
(package private) static Style ADVANCEDX
           
private static List<Style> ALL
           
(package private) static Style current
           
(package private) static Style ELEGANT
           
(package private) static Style ELEGANTX
           
private  boolean forceBetterColorTheme
           
private  boolean forceSystemLookAndFeel
           
(package private) static Style FRANKEN
           
private  Style.IconStyle iconStyle
           
private  String name
           
private  boolean reduceBorders
           
(package private) static Style ROOKIE
           
(package private) static Style STANDARD
           
(package private) static Style STANDARDX
           
private  boolean useEclipseBorder
           
private  boolean useEclipseGradient
           
private  boolean useExtendedLookAndFeel
           
 
Constructor Summary
Style(String name, Style.IconStyle iconStyle, boolean reduceBorders, boolean forceBetterColorTheme, boolean forceSystemLookAndFeel, boolean useExtendedLookAndFeel, boolean useEclipseBorder, boolean useEclipseGradient)
           
 
Method Summary
 boolean forceBetterColorTheme()
           
 boolean forceSystemLookAndFeel()
           
static Style getCurrent()
           
 String getDescription()
           
 Style.IconStyle iconStyle()
           
 boolean reduceBorders()
           
static void setCurrent(Style newStyle)
           
 String toString()
           
 boolean useEclipseBorder()
           
 boolean useEclipseGradient()
           
 boolean useExtendedLookAndFeel()
           
static Style valueOf(String styleName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL

private static final List<Style> ALL

FRANKEN

static final Style FRANKEN

ROOKIE

static final Style ROOKIE

STANDARD

static final Style STANDARD

ADVANCED

static final Style ADVANCED

ELEGANT

static final Style ELEGANT

STANDARDX

static final Style STANDARDX

ADVANCEDX

static final Style ADVANCEDX

ELEGANTX

static final Style ELEGANTX

current

static Style current

name

private final String name

iconStyle

private final Style.IconStyle iconStyle

reduceBorders

private final boolean reduceBorders

forceBetterColorTheme

private final boolean forceBetterColorTheme

forceSystemLookAndFeel

private final boolean forceSystemLookAndFeel

useExtendedLookAndFeel

private final boolean useExtendedLookAndFeel

useEclipseBorder

private final boolean useEclipseBorder

useEclipseGradient

private final boolean useEclipseGradient
Constructor Detail

Style

Style(String name,
      Style.IconStyle iconStyle,
      boolean reduceBorders,
      boolean forceBetterColorTheme,
      boolean forceSystemLookAndFeel,
      boolean useExtendedLookAndFeel,
      boolean useEclipseBorder,
      boolean useEclipseGradient)
Method Detail

getCurrent

public static Style getCurrent()

setCurrent

public static void setCurrent(Style newStyle)

valueOf

public static Style valueOf(String styleName)

iconStyle

public Style.IconStyle iconStyle()

reduceBorders

public boolean reduceBorders()

forceBetterColorTheme

public boolean forceBetterColorTheme()

forceSystemLookAndFeel

public boolean forceSystemLookAndFeel()

useExtendedLookAndFeel

public boolean useExtendedLookAndFeel()

useEclipseBorder

public boolean useEclipseBorder()

useEclipseGradient

public boolean useEclipseGradient()

toString

public String toString()
Overrides:
toString in class Object

getDescription

public String getDescription()


Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.