gishur.gui2.painter
Class InfoStyle

java.lang.Object
  |
  +--gishur.gui2.Style
        |
        +--gishur.gui2.painter.InfoStyle

public class InfoStyle
extends Style

A Style that creates InfoPainters.

Version:
1.0
Author:
Thomas Wolf

Field Summary
static int BACK_COLOR
          Default-Color-Constant.
static java.awt.Color BLUE_BOX_COLOR
          Default Box Color Blue-Style
static java.awt.Color BLUE_LINE_COLOR
          Default Line Color Blue-Style
static byte BLUE_STYLE
          Color-Style constant.
static java.awt.Color BLUE_TITLE_COLOR
          Default Title Color Blue-Style
static int BOX_COLOR
          Default-Color-Constant.
static int BOX_LINE_COLOR
          Default-Color-Constant.
static int BOX_TEXT_COLOR
          Default-Color-Constant.
static java.awt.Color GREEN_BOX_COLOR
          Default Box Color Green-Style
static java.awt.Color GREEN_LINE_COLOR
          Default Line Color Green-Style
static byte GREEN_STYLE
          Color-Style constant.
static java.awt.Color GREEN_TITLE_COLOR
          Default Title Color Green-Style
static int LINE_COLOR
          Default-Color-Constant.
static java.awt.Color RED_BOX_COLOR
          Default Box Color Red-Style
static java.awt.Color RED_LINE_COLOR
          Default Line Color Red-Style
static byte RED_STYLE
          Color-Style constant.
static java.awt.Color RED_TITLE_COLOR
          Default Title Color Red-Style
static int TITLE_COLOR
          Default-Color-Constant.
static int TITLE_TEXT_COLOR
          Default-Color-Constant.
static java.awt.Color YELLOW_BACK_COLOR
          Default Background Color
 
Constructor Summary
InfoStyle()
          Default constructor.
InfoStyle(byte color_style)
          Constructs a new InfoStyle with the given color-layout.
InfoStyle(byte color_style, byte level)
          Constructs a new InfoStyle with the given color-layout and level-height.
 
Method Summary
protected  Painter createNewPainter()
          Creates a new Painter object.
static java.awt.Color getDefaultColor(byte style, int colorid)
          Returns the default colors for the given style.
 java.awt.Color getDefaultColor(int colorid)
          Returns the default colors for the set style.
protected  java.lang.String stylePrefix()
          Returns the style prefix string used for reading properties by all Painters that are created by this Style.
 
Methods inherited from class gishur.gui2.Style
createPainter, validatePainterCreation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RED_TITLE_COLOR

public static final java.awt.Color RED_TITLE_COLOR
Default Title Color Red-Style

GREEN_TITLE_COLOR

public static final java.awt.Color GREEN_TITLE_COLOR
Default Title Color Green-Style

BLUE_TITLE_COLOR

public static final java.awt.Color BLUE_TITLE_COLOR
Default Title Color Blue-Style

YELLOW_BACK_COLOR

public static final java.awt.Color YELLOW_BACK_COLOR
Default Background Color

RED_BOX_COLOR

public static final java.awt.Color RED_BOX_COLOR
Default Box Color Red-Style

GREEN_BOX_COLOR

public static final java.awt.Color GREEN_BOX_COLOR
Default Box Color Green-Style

BLUE_BOX_COLOR

public static final java.awt.Color BLUE_BOX_COLOR
Default Box Color Blue-Style

RED_LINE_COLOR

public static final java.awt.Color RED_LINE_COLOR
Default Line Color Red-Style

GREEN_LINE_COLOR

public static final java.awt.Color GREEN_LINE_COLOR
Default Line Color Green-Style

BLUE_LINE_COLOR

public static final java.awt.Color BLUE_LINE_COLOR
Default Line Color Blue-Style

RED_STYLE

public static final byte RED_STYLE
Color-Style constant.

GREEN_STYLE

public static final byte GREEN_STYLE
Color-Style constant.

BLUE_STYLE

public static final byte BLUE_STYLE
Color-Style constant.

BACK_COLOR

public static final int BACK_COLOR
Default-Color-Constant.

LINE_COLOR

public static final int LINE_COLOR
Default-Color-Constant.

TITLE_COLOR

public static final int TITLE_COLOR
Default-Color-Constant.

TITLE_TEXT_COLOR

public static final int TITLE_TEXT_COLOR
Default-Color-Constant.

BOX_COLOR

public static final int BOX_COLOR
Default-Color-Constant.

BOX_LINE_COLOR

public static final int BOX_LINE_COLOR
Default-Color-Constant.

BOX_TEXT_COLOR

public static final int BOX_TEXT_COLOR
Default-Color-Constant.
Constructor Detail

InfoStyle

public InfoStyle(byte color_style,
                 byte level)
Constructs a new InfoStyle with the given color-layout and level-height.
Parameters:
color_style - layout constant (one of {RED_STYLE, GREEN_STYLE,BLUE_STYLE})
level - the level of the created InfoPainters.

InfoStyle

public InfoStyle(byte color_style)
Constructs a new InfoStyle with the given color-layout.
Parameters:
color_style - layout constant (one of {RED_STYLE, GREEN_STYLE,BLUE_STYLE})

InfoStyle

public InfoStyle()
Default constructor.
Method Detail

getDefaultColor

public java.awt.Color getDefaultColor(int colorid)
Returns the default colors for the set style.

getDefaultColor

public static java.awt.Color getDefaultColor(byte style,
                                             int colorid)
Returns the default colors for the given style.
Parameters:
style - the style constant
colorid - the color id

stylePrefix

protected java.lang.String stylePrefix()
Returns the style prefix string used for reading properties by all Painters that are created by this Style.
Overrides:
stylePrefix in class Style
Returns:
the style prefix string used for reading properties.

createNewPainter

protected Painter createNewPainter()
Creates a new Painter object.
Overrides:
createNewPainter in class Style
Returns:
new Painter instance.