rero.gui.background
Class BackgroundProperties

java.lang.Object
  extended byrero.gui.background.BackgroundProperties
All Implemented Interfaces:
ClientStateListener

public class BackgroundProperties
extends Object
implements ClientStateListener


Field Summary
protected  Color bgColor
           
protected  int bgStyle
           
protected  float bgTint
           
protected  int bgType
           
protected  Image image
           
protected  boolean isRelative
           
protected  Image transform
           
protected  String type
           
 
Constructor Summary
BackgroundProperties(String type, Color defaultColor, int defaultType)
           
BackgroundProperties(String _type, Color defaultColor, int defaultType, int defaultStyle, float defaultTint)
           
BackgroundProperties(String type, int defaultType)
           
 
Method Summary
 Color getColor()
           
 Image getImage(Component c)
           
 int getStyle()
           
 float getTint()
           
 Image getTransformedImage()
           
 int getType()
           
 void init(Color defaultColor, int defaultType, int defaultStyle, float defaultTint)
           
 boolean isRelative()
           
 void propertyChanged(String property, String parms)
          when the property gets changed you will be notified!
 void setTransformedImage(Image i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected String type

bgType

protected int bgType

bgStyle

protected int bgStyle

image

protected Image image

transform

protected Image transform

bgColor

protected Color bgColor

bgTint

protected float bgTint

isRelative

protected boolean isRelative
Constructor Detail

BackgroundProperties

public BackgroundProperties(String type,
                            int defaultType)

BackgroundProperties

public BackgroundProperties(String type,
                            Color defaultColor,
                            int defaultType)

BackgroundProperties

public BackgroundProperties(String _type,
                            Color defaultColor,
                            int defaultType,
                            int defaultStyle,
                            float defaultTint)
Method Detail

isRelative

public boolean isRelative()

getType

public int getType()

getStyle

public int getStyle()

getColor

public Color getColor()

getTint

public float getTint()

propertyChanged

public void propertyChanged(String property,
                            String parms)
Description copied from interface: ClientStateListener
when the property gets changed you will be notified!

Specified by:
propertyChanged in interface ClientStateListener

init

public void init(Color defaultColor,
                 int defaultType,
                 int defaultStyle,
                 float defaultTint)

getImage

public Image getImage(Component c)

getTransformedImage

public Image getTransformedImage()

setTransformedImage

public void setTransformedImage(Image i)