org.eclipse.birt.chart.style
Class SimpleStyle

java.lang.Object
  extended byorg.eclipse.birt.chart.style.SimpleStyle
All Implemented Interfaces:
IStyle

public final class SimpleStyle
extends java.lang.Object
implements IStyle

A default implementaitn for IStyle.


Constructor Summary
SimpleStyle()
          The constructor.
SimpleStyle(FontDefinition font, ColorDefinition color, ColorDefinition backcolor, Image backimage, Insets padding)
          The constructor.
SimpleStyle(IStyle src)
          The constructor.
 
Method Summary
 SimpleStyle copy()
          Returns a copy of current instance.
 ColorDefinition getBackgroundColor()
          Returns the background color of current style.
 Image getBackgroundImage()
          Returns the background image of current style.
 ColorDefinition getColor()
          Returns the color of current style.
 FontDefinition getFont()
          Returns the font of current style.
 Insets getPadding()
          Returns the padding of current style.
 void setBackgroundColor(ColorDefinition backcolor)
          Sets the background color of current style.
 void setBackgroundImage(Image backimage)
          Sets the background image of current style.
 void setColor(ColorDefinition color)
          Sets the color of current style.
 void setFont(FontDefinition font)
          Sets the font of current style.
 void setPadding(Insets padding)
          Sets the padding of current style.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStyle

public SimpleStyle()
The constructor.


SimpleStyle

public SimpleStyle(FontDefinition font,
                   ColorDefinition color,
                   ColorDefinition backcolor,
                   Image backimage,
                   Insets padding)
The constructor.

Parameters:
font -
backcolor -
backimage -
padding -

SimpleStyle

public SimpleStyle(IStyle src)
The constructor.

Parameters:
src -
Method Detail

copy

public SimpleStyle copy()
Returns a copy of current instance.

Returns:

setFont

public void setFont(FontDefinition font)
Sets the font of current style.

Parameters:
font -

setColor

public void setColor(ColorDefinition color)
Sets the color of current style.

Parameters:
color -

setBackgroundColor

public void setBackgroundColor(ColorDefinition backcolor)
Sets the background color of current style.

Parameters:
backcolor -

setBackgroundImage

public void setBackgroundImage(Image backimage)
Sets the background image of current style.

Parameters:
backimage -

setPadding

public void setPadding(Insets padding)
Sets the padding of current style.

Parameters:
padding -

getFont

public FontDefinition getFont()
Description copied from interface: IStyle
Returns the font of current style.

Specified by:
getFont in interface IStyle
Returns:

getBackgroundColor

public ColorDefinition getBackgroundColor()
Description copied from interface: IStyle
Returns the background color of current style.

Specified by:
getBackgroundColor in interface IStyle
Returns:

getBackgroundImage

public Image getBackgroundImage()
Description copied from interface: IStyle
Returns the background image of current style.

Specified by:
getBackgroundImage in interface IStyle
Returns:

getPadding

public Insets getPadding()
Description copied from interface: IStyle
Returns the padding of current style.

Specified by:
getPadding in interface IStyle
Returns:

getColor

public ColorDefinition getColor()
Description copied from interface: IStyle
Returns the color of current style.

Specified by:
getColor in interface IStyle
Returns:


Copyright © 2005-2007 Actuate Corp. All rights reserved.