lt.monarch.chart.style
Class PaintStyle<Tag extends AbstractPaintTags>

java.lang.Object
  extended by lt.monarch.chart.style.AbstractStyle<Tag>
      extended by lt.monarch.chart.style.PaintStyle<Tag>
All Implemented Interfaces:
java.io.Serializable

public class PaintStyle<Tag extends AbstractPaintTags>
extends AbstractStyle<Tag>

Color style class.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  Style style
           
 
Fields inherited from class lt.monarch.chart.style.AbstractStyle
dirty
 
Constructor Summary
Constructor and Description
PaintStyle(Style style)
          Default color style constructor
 
Method Summary
Modifier and Type Method and Description
 void dispose()
          Disposes style object
 java.awt.Color getBackground()
          Gets background (toFill) color from stylesheet
 java.awt.Color getBackground(Tag tag)
          Gets null background (toFill) color from stylesheet
 BackgroundImageStyle<Tag> getBackgroundImageStyle()
          Gets background image object
 BackgroundImageStyle<Tag> getBackgroundImageStyle(Tag tag)
          Gets background image object
 java.awt.Composite getComposite()
          Gets the composite from the stylesheet
 java.awt.Composite getComposite(Tag tag)
          Gets the composite from the stylesheet
 java.awt.Color getForeground()
          Gets foreground (outline) color from stylesheet
 java.awt.Color getForeground(Tag tag)
          Gets null foreground (outline) color from stylesheet
 GradientStyle<Tag> getGradientStyle()
          Gets gradient object
 GradientStyle<Tag> getGradientStyle(Tag tag)
          Gets gradient object
 HatchStyle<Tag> getHatchStyle()
          Gets gradient object
 HatchStyle<Tag> getHatchStyle(Tag tag)
          Gets hatch object
 PaintMode getPaintMode()
          Gets paint mode of the object
 PaintMode getPaintMode(Tag tag)
          Gets paint mode of the object
 java.awt.RenderingHints getRenderingHints()
          Gets rendering hints from stylesheet
 java.awt.RenderingHints getRenderingHints(Tag tag)
          Gets rendering hints from stylesheet
 int[] getShadowOffset()
          Gets shadow offset.
 java.awt.Stroke getStroke()
          Get stroke from stylesheet
 java.awt.Stroke getStroke(Tag tag)
          Get stroke from stylesheet
 Style getStyleSheet()
          Gets stylesheet
 int getTransparencyValue()
          Gets the transparency value for the chart object
 int getTransparencyValue(Tag tag)
          Gets the transparency value for the chart object
 boolean isFocused(int index)
          Is the specified data point focused
 void setBackground(java.awt.Color color)
          Sets background (toFill) color to stylesheet
 void setBackground(int color)
          Sets background (toFill) color to stylesheet
 void setBackground(Tag tag, java.awt.Color color)
          Sets null value background (toFill) color to stylesheet
 void setBackground(Tag tag, int color)
          Sets null value background (toFill) color to stylesheet
 void setComposite(java.awt.Composite composite)
          Sets composite to stylesheet
 void setComposite(Tag tag, java.awt.Composite composite)
          Sets composite to stylesheet
 void setForeground(java.awt.Color color)
          Sets foreground (outline) color to stylesheet
 void setForeground(int color)
          Sets foreground (outline) color to stylesheet
 void setForeground(Tag tag, java.awt.Color color)
          Sets null foreground (outline) color to stylesheet
 void setForeground(Tag tag, int color)
          Sets null foreground (outline) color to stylesheet
 void setPaintMode(PaintMode paintMode)
          Sets object paint mode
 void setPaintMode(Tag tag, PaintMode paintMode)
          Sets object paint mode
 void setRenderingHints(java.awt.RenderingHints hints)
          Sets rendering hints to stylesheet
 void setRenderingHints(Tag tag, java.awt.RenderingHints hints)
          Sets rendering hints to stylesheet
 void setShadowOffset(int xOffset, int yOffset)
          Sets shadow offset.
 void setStroke(java.awt.Stroke stroke)
          Sets stroke to stylesheet
 void setStroke(Tag tag, java.awt.Stroke stroke)
          Sets stroke to stylesheet
 void setStyle(Style style)
          Sets paint Style.
 void setTransparencyValue(int transparencyValue)
          Sets the transparency value for the chart object
 void setTransparencyValue(Tag tag, int transparencyValue)
          Sets the transparency value for the chart object
 
Methods inherited from class lt.monarch.chart.style.AbstractStyle
finalize
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

style

protected Style style
Constructor Detail

PaintStyle

public PaintStyle(Style style)
Default color style constructor

Parameters:
style -
Method Detail

setStyle

public void setStyle(Style style)
Sets paint Style.

Parameters:
style -

setForeground

public void setForeground(java.awt.Color color)
Sets foreground (outline) color to stylesheet

Parameters:
color - foreground color

setForeground

public void setForeground(int color)
Sets foreground (outline) color to stylesheet

Parameters:
color - foreground color

setBackground

public void setBackground(java.awt.Color color)
Sets background (toFill) color to stylesheet

Parameters:
color - background color

setBackground

public void setBackground(int color)
Sets background (toFill) color to stylesheet

Parameters:
color - background color

getForeground

public java.awt.Color getForeground()
Gets foreground (outline) color from stylesheet

Returns:
foreground color

getBackground

public java.awt.Color getBackground()
Gets background (toFill) color from stylesheet

Returns:
gets background color

setBackground

public void setBackground(Tag tag,
                          java.awt.Color color)
Sets null value background (toFill) color to stylesheet

Parameters:
tag - tag from enumeration specifying the usage of the color
color - null background color

setBackground

public void setBackground(Tag tag,
                          int color)
Sets null value background (toFill) color to stylesheet

Parameters:
tag - tag from enumeration specifying the usage of the color
color - null background color

getBackground

public java.awt.Color getBackground(Tag tag)
Gets null background (toFill) color from stylesheet

Parameters:
tag - tag from enumeration specifying the usage of the color
Returns:
gets null background color

setForeground

public void setForeground(Tag tag,
                          java.awt.Color color)
Sets null foreground (outline) color to stylesheet

Parameters:
tag - tag from enumeration specifying the usage of the color
color - null foreground color

setForeground

public void setForeground(Tag tag,
                          int color)
Sets null foreground (outline) color to stylesheet

Parameters:
tag - tag from enumeration specifying the usage of the color
color - null foreground color

getForeground

public java.awt.Color getForeground(Tag tag)
Gets null foreground (outline) color from stylesheet

Parameters:
tag - tag from enumeration specifying the usage of the color
Returns:
null foreground color

isFocused

public boolean isFocused(int index)
Is the specified data point focused

Parameters:
index - index of the data point
Returns:
is the point focused

dispose

public void dispose()
Description copied from class: AbstractStyle
Disposes style object

Overrides:
dispose in class AbstractStyle<Tag extends AbstractPaintTags>

setStroke

public void setStroke(java.awt.Stroke stroke)
Sets stroke to stylesheet

Parameters:
stroke - stroke to set

setStroke

public void setStroke(Tag tag,
                      java.awt.Stroke stroke)
Sets stroke to stylesheet

Parameters:
tag - painting tag which specifies what tag to use
stroke - stroke to set

getStroke

public java.awt.Stroke getStroke()
Get stroke from stylesheet

Returns:
stroke object

getStroke

public java.awt.Stroke getStroke(Tag tag)
Get stroke from stylesheet

Parameters:
tag - painting tag which specifies what tag to use
Returns:
stroke object

getRenderingHints

public java.awt.RenderingHints getRenderingHints()
Gets rendering hints from stylesheet

Returns:
rendering hints

setRenderingHints

public void setRenderingHints(java.awt.RenderingHints hints)
Sets rendering hints to stylesheet

Parameters:
hints - rendering hints to set

getRenderingHints

public java.awt.RenderingHints getRenderingHints(Tag tag)
Gets rendering hints from stylesheet

Parameters:
tag - painting tag which specifies what tag to use
Returns:
rendering hints

setRenderingHints

public void setRenderingHints(Tag tag,
                              java.awt.RenderingHints hints)
Sets rendering hints to stylesheet

Parameters:
tag - painting tag which specifies what tag to use
hints - rendering hints to set

getComposite

public java.awt.Composite getComposite()
Gets the composite from the stylesheet

Returns:
alpha composite

setComposite

public void setComposite(java.awt.Composite composite)
Sets composite to stylesheet

Parameters:
composite - alpha composite

getComposite

public java.awt.Composite getComposite(Tag tag)
Gets the composite from the stylesheet

Parameters:
tag - painting tag which specifies what tag to use
Returns:
alpha composite

setComposite

public void setComposite(Tag tag,
                         java.awt.Composite composite)
Sets composite to stylesheet

Parameters:
tag - painting tag which specifies what tag to use
composite - alpha composite

setShadowOffset

public void setShadowOffset(int xOffset,
                            int yOffset)
Sets shadow offset. Default is +2 and -2 respectively for x and y.

Parameters:
xOffset - shadow x offset
yOffset - shadow y offset

getShadowOffset

public int[] getShadowOffset()
Gets shadow offset.

Returns:
shadow x and y offset

setTransparencyValue

public final void setTransparencyValue(Tag tag,
                                       int transparencyValue)
Sets the transparency value for the chart object

Parameters:
tag - painting tag
transparencyValue - Transparency value from 0 to 255

getTransparencyValue

public final int getTransparencyValue(Tag tag)
Gets the transparency value for the chart object

Parameters:
tag - painting tag
Returns:
transparencyValue Transparency value from 0 to 255

setTransparencyValue

public final void setTransparencyValue(int transparencyValue)
Sets the transparency value for the chart object

Parameters:
transparencyValue - Transparency value from 0 to 255

getTransparencyValue

public final int getTransparencyValue()
Gets the transparency value for the chart object

Returns:
transparencyValue Transparency value from 0 to 255

getGradientStyle

public GradientStyle<Tag> getGradientStyle(Tag tag)
Gets gradient object

Parameters:
tag - painting tag
Returns:
the gradient object

getGradientStyle

public GradientStyle<Tag> getGradientStyle()
Gets gradient object

Returns:
the gradient object

getBackgroundImageStyle

public BackgroundImageStyle<Tag> getBackgroundImageStyle(Tag tag)
Gets background image object

Parameters:
tag - painting tag
Returns:
the background image object

getBackgroundImageStyle

public BackgroundImageStyle<Tag> getBackgroundImageStyle()
Gets background image object

Returns:
the background image object

getHatchStyle

public HatchStyle<Tag> getHatchStyle(Tag tag)
Gets hatch object

Parameters:
tag - hatch tag
Returns:
the hatch object

getHatchStyle

public HatchStyle<Tag> getHatchStyle()
Gets gradient object

Returns:
the gradient object

getStyleSheet

public Style getStyleSheet()
Gets stylesheet

Returns:
the stylesheet

getPaintMode

public PaintMode getPaintMode()
Gets paint mode of the object

Returns:
object paint mode

setPaintMode

public void setPaintMode(PaintMode paintMode)
Sets object paint mode

Parameters:
paintMode - object paint mode

getPaintMode

public PaintMode getPaintMode(Tag tag)
Gets paint mode of the object

Parameters:
tag - paint mode object tag
Returns:
object paint mode

setPaintMode

public void setPaintMode(Tag tag,
                         PaintMode paintMode)
Sets object paint mode

Parameters:
tag - paint mode object tag
paintMode - object paint mode