Style Intelligence v12.0

inetsoft.graph
Class PlotSpec

java.lang.Object
  extended by inetsoft.graph.PlotSpec
All Implemented Interfaces:
Serializable, Cloneable

public class PlotSpec
extends Object
implements Cloneable, Serializable

This class contains the plot painting attributes.
The background image is always drawn in the original orientation regardless the rotation of the coordiante. If the background image is mapped to the scale positions (with the x/y min/max set), the mapping is to the horizontal and vertical axis regardless of the rotation.

See Also:
Serialized Form

Constructor Summary
PlotSpec()
           
 
Method Summary
 double getAlpha()
          Get the alpha of the background image or color.
 Color getBackground()
          Get the plot background color.
 Image getBackgroundImage()
          Get the plot background image.
 Color getXBandColor()
          Get the banding color for vertical bands.
 double getXBandSize()
          Get the vertical band size as the multiple of unit (default) size.
 double getXMax()
          Get the x max position the bottom of the background image corresponds to the x scale.
 double getXMin()
          Get the x min position the bottom of the background image corresponds to the x scale.
 Color getYBandColor()
          Get the banding color for horizontal bands.
 double getYBandSize()
          Get the horizontal band size as the multiple of unit (default) size.
 double getYMax()
          Get the y max position the bottom of the background image corresponds to the y scale.
 double getYMin()
          Get the y min position the bottom of the background image corresponds to the y scale.
 boolean isLockAspect()
          Check if the image's aspect ratio should be locked.
 void setAlpha(double alpha)
          Set the alpha of the background image or color.
 void setBackground(Color bg)
          Set the plot background color.
 void setBackgroundImage(Image img)
          Set the plot background image.
 void setLockAspect(boolean lock)
          Set if the image's aspect ratio should be locked.
 void setXBandColor(Color color)
          Set the banding color for vertical bands.
 void setXBandSize(double multiple)
          Set the vertical band size as the multiple of unit (default) size.
 void setXMax(double xmax)
          Set the x max position the bottom of the background image corresponds to the x scale.
 void setXMin(double xmin)
          Set the x min position the bottom of the background image corresponds to the x scale.
 void setYBandColor(Color color)
          Set the banding color for horizontal bands.
 void setYBandSize(double multiple)
          Set the horizontal band size as the multiple of unit (default) size.
 void setYMax(double ymax)
          Set the y max position the bottom of the background image corresponds to the y scale.
 void setYMin(double ymin)
          Set the y min position the bottom of the background image corresponds to the y scale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotSpec

public PlotSpec()
Method Detail

setBackground

public void setBackground(Color bg)
Set the plot background color.


getBackground

public Color getBackground()
Get the plot background color.


setBackgroundImage

public void setBackgroundImage(Image img)
Set the plot background image.


getBackgroundImage

public Image getBackgroundImage()
Get the plot background image.


setLockAspect

public void setLockAspect(boolean lock)
Set if the image's aspect ratio should be locked.


isLockAspect

public boolean isLockAspect()
Check if the image's aspect ratio should be locked.


setXMin

public void setXMin(double xmin)
Set the x min position the bottom of the background image corresponds to the x scale.


getXMin

public double getXMin()
Get the x min position the bottom of the background image corresponds to the x scale.


setXMax

public void setXMax(double xmax)
Set the x max position the bottom of the background image corresponds to the x scale.


getXMax

public double getXMax()
Get the x max position the bottom of the background image corresponds to the x scale.


setYMin

public void setYMin(double ymin)
Set the y min position the bottom of the background image corresponds to the y scale.


getYMin

public double getYMin()
Get the y min position the bottom of the background image corresponds to the y scale.


setYMax

public void setYMax(double ymax)
Set the y max position the bottom of the background image corresponds to the y scale.


getYMax

public double getYMax()
Get the y max position the bottom of the background image corresponds to the y scale.


setAlpha

public void setAlpha(double alpha)
Set the alpha of the background image or color.

Parameters:
alpha - a value between 0 and 1.

getAlpha

public double getAlpha()
Get the alpha of the background image or color.


setXBandColor

public void setXBandColor(Color color)
Set the banding color for vertical bands.


getXBandColor

public Color getXBandColor()
Get the banding color for vertical bands.


setYBandColor

public void setYBandColor(Color color)
Set the banding color for horizontal bands.


getYBandColor

public Color getYBandColor()
Get the banding color for horizontal bands.


setXBandSize

public void setXBandSize(double multiple)
Set the vertical band size as the multiple of unit (default) size.


getXBandSize

public double getXBandSize()
Get the vertical band size as the multiple of unit (default) size.


setYBandSize

public void setYBandSize(double multiple)
Set the horizontal band size as the multiple of unit (default) size.


getYBandSize

public double getYBandSize()
Get the horizontal band size as the multiple of unit (default) size.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.