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

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

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

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.style.AbstractStyle
dirty
 
Constructor Summary
Constructor and Description
BackgroundImageStyle(Style style, java.lang.String tag)
          Background image style
 
Method Summary
Modifier and Type Method and Description
 void dispose()
          Disposes style object
 java.awt.Image getBackgroundImage()
          Gets background image
 ImagePaintMode getImagePaintMode()
          Gets image paint mode
 void setBackgroundImage(java.awt.Image image)
          Sets background image
 void setBackgroundImage(java.lang.String imagePath)
          Sets image background path
 void setBackgroundImage(java.net.URL imageURL)
          Sets image background URL
 void setImagePaintMode(ImagePaintMode mode)
          Sets image paint mode
 
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
 

Constructor Detail

BackgroundImageStyle

public BackgroundImageStyle(Style style,
                            java.lang.String tag)
Background image style

Parameters:
style - stylesheet object
tag - background style tag
Method Detail

setBackgroundImage

public void setBackgroundImage(java.lang.String imagePath)
                        throws java.io.IOException
Sets image background path

Parameters:
imagePath - image location path
Throws:
java.io.IOException - when error occurs while loading image

setBackgroundImage

public void setBackgroundImage(java.net.URL imageURL)
                        throws java.io.IOException
Sets image background URL

Parameters:
imageURL - image location URL
Throws:
java.io.IOException - when error occurs while loading image

setBackgroundImage

public void setBackgroundImage(java.awt.Image image)
Sets background image

Parameters:
image - image

getBackgroundImage

public java.awt.Image getBackgroundImage()
Gets background image

Returns:
image object

setImagePaintMode

public void setImagePaintMode(ImagePaintMode mode)
Sets image paint mode

Parameters:
mode - image paint mode

getImagePaintMode

public ImagePaintMode getImagePaintMode()
Gets image paint mode

Returns:
image paint mode

dispose

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

Overrides:
dispose in class AbstractStyle<Tag extends AbstractPaintTags>