Chart FX 7 for Java Desktop

com.softwarefx.chartfx.desktop
Class AxisSectionBase

java.lang.Object
  extended by com.softwarefx.chartfx.desktop.AxisSectionBase
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Axis, AxisSection

public abstract class AxisSectionBase
extends Object
implements Serializable

Provides access to the AxisSectionBase, which is the base class for both the Axis and AxisSection.

This Base Class is not intended to be used directly by the programmer; however, derived classes can be used for axis customization. For example, the Axis Class is derived from the AxisSectionBase and its members are accessible through the use of the Chart.getAxisX() and Chart.getAxisY() properties. Furthermore, AxisSectionBase is the based Class which AxisSection is derived from.

The members of AxisSectionBase Class are used to customize the Grids, setTextColor(java.awt.Color), and Link of the related Axis and AxisSection.

See Also:
Serialized Form

Constructor Summary
AxisSectionBase()
           
 
Method Summary
 Grids getGrids()
          Gets the Grids.
 Color getTextColor()
          Gets the TextColor.
 void setGrids(Grids value)
          Allows customization of grid lines by providing access to the supported members of the Grids Class .
 void setTextColor(Color value)
          Sets the color for text of a selected BaseAxisSection object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisSectionBase

public AxisSectionBase()
Method Detail

getGrids

public Grids getGrids()

Gets the Grids. For more detail see setGrids(com.softwarefx.chartfx.desktop.Grids).


getTextColor

public Color getTextColor()

Gets the TextColor. For more detail see setTextColor(java.awt.Color).


setGrids

public void setGrids(Grids value)

Allows customization of grid lines by providing access to the supported members of the Grids Class .

Remarks:
  • This property provides customization of the chart Plot Area, by using the Grids.setInterlaced(boolean) and Grids.setInterlacedColor(java.awt.Color) properties of the Grids Class .

  • Lines across the Axes can be added at the major and minor steps by setting Grids.getMajor() and Grids.getMinor() Gridlines.

  • Lines across the Axes can be added at specific points by adding a CustomGridLine.

  • Below, the Minor gridline of the Axis Y is set to visible:

  • See Also:
    Grids.getMajor(), Grids.getMinor(), Grids.setInterlaced(boolean), Grids.setInterlacedColor(java.awt.Color), Grids, GridLine, CustomGridLine

    setTextColor

    public void setTextColor(Color value)

    Sets the color for text of a selected BaseAxisSection object.

    Remarks:
  • The setTextColor(java.awt.Color) property is used to set a color for the specified AxisSection labels. Please refer to the TextColor property of the Title object to customize the color for the axis title.

  • For more information regarding the Color type, please refer to the Java API .

  • Below, the Y axis section textcolor is set to red:

  • See Also:
    setTextColor(java.awt.Color), Axis.getSections(), Axis, AxisY, AxisX, AxisSection

    http://www.softwarefx.com

    2008 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
    All other names are trademarks or registered trademarks of their respective owners.