All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.chart.JCAxisTitle

java.lang.Object
   |
   +----jclass.chart.TrackChange
           |
           +----jclass.chart.ChartRegion
                   |
                   +----jclass.chart.ChartText
                           |
                           +----jclass.chart.JCAxisTitle

public class JCAxisTitle
extends ChartText
JCAxisTitle controls the appearance of an axis title (ie title placement and text).

Properties

The IsShowing property determines whether the associated Axis is currently visible. Default value is true.
Name Method
Font The Font property determines what font is used to render text inside the chart region. Note that the Font property is inherited from the parent ChartCanvas.
Foreground The Foreground property determines the foreground color used to draw inside the chart region. Note that the Foreground property is inherited from the parent ChartCanvas.
Background The Background property determines the foreground color used to draw inside the chart region. Note that the Background property is inherited from the parent ChartCanvas.
X The X property defines the x position of the chart region relative to the parent chart canvas. The default value is calculated.
Y The Y property defines the y position of the chart region relative to the parent chart canvas. The default value is calculated.
Width The Width property defines the width of the chart region. The default value is calculated.
Height The Height property defines the height of the chart region. The default value is calculated.
BorderStyle The BorderStyle property determines the width and style of border drawn around the chart region. By default, no border is drawn, and BorderStyle is null.
Rotation The Rotation property controls the rotation of the label. Valid values include ChartText.DEG_90, ChartText.DEG_180, ChartText.DEG_270 and ChartText.DEG_0. Default value is ChartText.DEG_0.
Adjust The Adjust property determines how text is justified (positioned) in the label. If the contents of the ChartText are a JCString, this has no effect. Valid values include ChartText.LEFT, ChartText.CENTER and ChartText.RIGHT. Default value is ChartText.LEFT.
Text The Text property is a string property that represents the text to be displayed inside the chart label. In some cases, the Text property is used to create a JCString instance. Default value is " " (nothing).
IsShowing
Placement The Placement property controls where the JCAxis title is placed relative to the "opposing" axis. Valid values include JCLegend.NORTH or JCLegend.SOUTH for horizontal axes, and JCLegend.EAST, JCLegend.WEST, JCLegend.NORTHEAST, JCLegend.SOUTHEAST, JCLegend.NORTHWEST or JCLegend.SOUTHEAST for vertical axes. The default value is calculated.
PlacementIsDefault The PlacementIsDefault property determines whether Chart is responsible for calculating a reasonable default placement for the axis title. Default value is true.


Constructor Index

 o JCAxisTitle()
Default constructor for JCAxisTitle.
 o JCAxisTitle(String)
Constructor for JCAxisTitle that sets the contents of the title as a convenience.
 o JCAxisTitle(String, boolean)
Constructor for JCAxisTitle that sets the contents of the title, optionally specifying that the string contents should be interpreted as a JCString.

Method Index

 o getPlacement()
Gets the Placement property of the JCTitleAxis.
 o getPlacementIsDefault()
Gets the value of the PlacementIsDefault property.
 o setPlacement(int)
Sets the Placement property of the JCTitleAxis.
 o setPlacementIsDefault(boolean)
Sets the value of the PlacementIsDefault property.

Constructors

 o JCAxisTitle
 public JCAxisTitle()
Default constructor for JCAxisTitle. Makes an unattached axis title.

 o JCAxisTitle
 public JCAxisTitle(String title)
Constructor for JCAxisTitle that sets the contents of the title as a convenience.

Parameters:
title - String representing the axis title
 o JCAxisTitle
 public JCAxisTitle(String title,
                    boolean jcstring)
Constructor for JCAxisTitle that sets the contents of the title, optionally specifying that the string contents should be interpreted as a JCString.

Parameters:
title - String/Unparsed JCString representing the axis title
jcstring - if true, the string is parsed as a JCString. Otherwise, it is assumed the string is a simple string.

Methods

 o setPlacement
 public synchronized void setPlacement(int place)
Sets the Placement property of the JCTitleAxis. The Placement property controls where the JCAxis title is placed relative to the "opposing" axis. Valid values include JCLegend.NORTH or JCLegend.SOUTH for horizontal axes, and JCLegend.EAST, JCLegend.WEST, JCLegend.NORTHEAST, JCLegend.SOUTHEAST, JCLegend.NORTHWEST or JCLegend.SOUTHEAST for vertical axes.

Parameters:
place - one of NORTH or SOUTH for horizontal axes, and EAST/WEST/NORTHEAST/SOUTHEAST/NORTHWEST/SOUTHEAST for vertical axes.
Throws: IllegalArgumentException
If Placement is not one of NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST or SOUTHWEST.
 o getPlacement
 public int getPlacement()
Gets the Placement property of the JCTitleAxis. The Placement property controls where the JCAxis title is placed relative to the "opposing" axis. Valid values include JCLegend.NORTH or JCLegend.SOUTH for horizontal axes, and JCLegend.EAST, JCLegend.WEST, JCLegend.NORTHEAST, JCLegend.SOUTHEAST, JCLegend.NORTHWEST or JCLegend.SOUTHEAST for vertical axes.

Returns:
one of NORTH or SOUTH for horizontal axes, and EAST/WEST/NORTHEAST/SOUTHEAST/NORTHWEST/SOUTHEAST for vertical axes.
 o setPlacementIsDefault
 public void setPlacementIsDefault(boolean pid)
Sets the value of the PlacementIsDefault property. The PlacementIsDefault property determines whether Chart is responsible for calculating a reasonable default placement for the axis title.

Parameters:
pid - true if the default placement is to be used, false otherwise.
 o getPlacementIsDefault
 public boolean getPlacementIsDefault()
Gets the value of the PlacementIsDefault property. The PlacementIsDefault property determines whether Chart is responsible for calculating a reasonable default placement for the axis title.

Returns:
true if the default placement is to be used, false otherwise.

All Packages  Class Hierarchy  This Package  Previous  Next  Index