All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.chart.PlotArea

java.lang.Object
   |
   +----jclass.chart.PlotArea

public class PlotArea
extends Object
implements Serializable, HTMLHandler
PlotArea is a utility class used inside JCChart to represent the background of the ChartArea.

Properties

Name Description
Background The Background property determines the background color used to draw inside the chart region. Note that the Background is inherited from the parent ChartRegion.
Foreground The Foreground property determines the color used to draw the axis bounding box controlled by JCChartArea. Note that the Foreground property is inherited from the parent ChartRegion.
Top The Top property determines the location of the top of the PlotArea.
TopIsDefault The TopIsDefault property determines whether the top position of the chart region is calculated by Chart (true) or taken from the Top property (false).
Left The Left property determines the location of the left of the PlotArea
LeftIsDefault The LeftIsDefault property determines whether the left position of the chart region is calculated by Chart (true) or taken from the Left property (false).
Bottom The Bottom property determines the location of the bottom of the PlotArea
BottomIsDefault The BottomIsDefault property determines whether the Bottom of the chart region is calculated by Chart (true) or taken from the Bottom property (false).
Right The Right property determines the Right of the PlotArea.
RightIsDefault The RightIsDefault property determines whether the Right of the chart region is calculated by Chart (true) or taken from the Right property (false).


Constructor Index

 o PlotArea()
 o PlotArea(ChartRegion)
Constructor that connects the PlotArea to a parent ChartRegion.

Method Index

 o getBackground()
Gets the value of the Background property.
 o getBottom()
Gets the value of the Bottom property.
 o getBottomIsDefault()
Gets the value of the BottomIsDefault property.
 o getForeground()
Gets the value of the Foreground property.
 o getLeft()
Gets the value of the Left property.
 o getLeftIsDefault()
Gets the value of the LeftIsDefault property.
 o getParent()
Gets ChartArea that contains this Plot Area
 o getRight()
Gets the value of the Right property.
 o getRightIsDefault()
Gets the value of the RightIsDefault property.
 o getTop()
Gets the value of the Top property.
 o getTopIsDefault()
Gets the value of the TopIsDefault property.
 o loadParams(String, JCChart)
Load JCChart parameters from HTML file
 o saveParams(String, HTMLSaveDriver)
Save JCChart parameters as HTML tags
 o setBackground(Color)
Sets the value of the Background property.
 o setBottom(int)
Sets the value of the Bottom property.
 o setBottomIsDefault(boolean)
Sets the value of the BottomIsDefault property.
 o setForeground(Color)
Sets the value of the Foreground property.
 o setLeft(int)
Sets the value of the Left property.
 o setLeftIsDefault(boolean)
Sets the value of the LeftIsDefault property.
 o setRight(int)
Sets the value of the Right property.
 o setRightIsDefault(boolean)
Sets the value of the RightIsDefault property.
 o setTop(int)
Sets the value of the Top property.
 o setTopIsDefault(boolean)
Sets the value of the TopIsDefault property.

Constructors

 o PlotArea
 public PlotArea()
 o PlotArea
 public PlotArea(ChartRegion p)
Constructor that connects the PlotArea to a parent ChartRegion.

Parameters:
p - Parent chart region.

Methods

 o getForeground
 public Color getForeground()
Gets the value of the Foreground property. The Foreground property determines the color used to draw the axis bounding box controlled by JCChartArea. Note that the Foreground property is inherited from the parent ChartRegion.

Returns:
Color used to draw the axis bounding box.
 o setForeground
 public void setForeground(Color c)
Sets the value of the Foreground property. The Foreground property determines the color used to draw the axis bounding box controlled by JCChartArea. Note that the Foreground property is inherited from the parent ChartRegion.

Parameters:
c - Color used to draw the axis bounding box.
See Also:
setAxisBoundingBox
 o getBackground
 public Color getBackground()
Gets the value of the Background property. The Background property determines the foreground color used to draw inside the chart region. Note that the Background property is inherited from the parent ChartRegion.

Returns:
Background color used to draw the chart region.
 o setBackground
 public void setBackground(Color c)
Sets the value of the Background property. The Background property determines the foreground color used to draw inside the chart region. Note that the Background property is inherited from the parent ChartRegion.

Parameters:
c - Background color used to draw the chart region.
 o setTop
 public void setTop(int t)
Sets the value of the Top property. The Top property determines the location of the top of the ChartRegion.

Parameters:
t - top value in pixels.
 o getTop
 public int getTop()
Gets the value of the Top property. The Top property determines the location of the top of the ChartRegion.

Returns:
top value in pixels.
 o setTopIsDefault
 public void setTopIsDefault(boolean d)
Sets the value of the TopIsDefault property. The TopIsDefault property determines whether the top position of the chart region is calculated by Chart (true) or taken from the Top property (false).

Parameters:
d - true if the position is to be calculated, false otherwise.
 o getTopIsDefault
 public boolean getTopIsDefault()
Gets the value of the TopIsDefault property. The TopIsDefault property determines whether the top position of the chart region is calculated by Chart (true) or taken from the Top property (false).

Returns:
true if the position is to be calculated, false otherwise.
 o setLeft
 public void setLeft(int t)
Sets the value of the Left property. The Left property determines the location of the left of the ChartRegion.

Parameters:
t - left value in pixels.
 o getLeft
 public int getLeft()
Gets the value of the Left property. The Left property determines the location of the left of the ChartRegion.

Returns:
left value in pixels.
 o setLeftIsDefault
 public void setLeftIsDefault(boolean d)
Sets the value of the LeftIsDefault property. The LeftIsDefault property determines whether the left position of the chart region is calculated by Chart (true) or taken from the Left property (false).

Parameters:
d - true if the position is to be calculated, false otherwise.
 o getLeftIsDefault
 public boolean getLeftIsDefault()
Gets the value of the LeftIsDefault property. The LeftIsDefault property determines whether the left position of the chart region is calculated by Chart (true) or taken from the Left property (false).

Returns:
true if the position is to be calculated, false otherwise.
 o setBottom
 public void setBottom(int t)
Sets the value of the Bottom property. The Bottom property determines the Bottom of the ChartRegion.

Parameters:
t - Bottom value in pixels.
 o getBottom
 public int getBottom()
Gets the value of the Bottom property. The Bottom property determines the location of the Bottom of the ChartRegion.

Returns:
Bottom value in pixels.
 o setBottomIsDefault
 public void setBottomIsDefault(boolean d)
Sets the value of the BottomIsDefault property. The BottomIsDefault property determines whether the Bottom of the chart region is calculated by Chart (true) or taken from the Bottom property (false).

Parameters:
d - true if the Bottom is to be calculated, false otherwise.
 o getBottomIsDefault
 public boolean getBottomIsDefault()
Gets the value of the BottomIsDefault property. The BottomIsDefault property determines whether the Bottom of the chart region is calculated by Chart (true) or taken from the Bottom property (false).

Returns:
true if the Bottom is to be calculated, false otherwise.
 o setRight
 public void setRight(int t)
Sets the value of the Right property. The Right property determines the Right of the ChartRegion.

Parameters:
t - Right value in pixels.
 o getRight
 public int getRight()
Gets the value of the Right property. The Right property determines the location of the Right of the ChartRegion.

Returns:
Right value in pixels.
 o setRightIsDefault
 public void setRightIsDefault(boolean d)
Sets the value of the RightIsDefault property. The RightIsDefault property determines whether the Right of the chart region is calculated by Chart (true) or taken from the Right property (false).

Parameters:
d - true if the Right is to be calculated, false otherwise.
 o getRightIsDefault
 public boolean getRightIsDefault()
Gets the value of the RightIsDefault property. The RightIsDefault property determines whether the Right of the chart region is calculated by Chart (true) or taken from the Right property (false).

Returns:
true if the Right is to be calculated, false otherwise.
 o getParent
 public ChartRegion getParent()
Gets ChartArea that contains this Plot Area

Returns:
the parent ChartRegion
 o saveParams
 public void saveParams(String name,
                        HTMLSaveDriver comp)
Save JCChart parameters as HTML tags

Parameters:
name - the PARAM NAME
chart - the JCChart component
 o loadParams
 public void loadParams(String name,
                        JCChart comp)
Load JCChart parameters from HTML file

Parameters:
name - the PARAM NAME
chart - the JCChart component

All Packages  Class Hierarchy  This Package  Previous  Next  Index