Chart FX 7 for Java Server

com.softwarefx.chartfx.server
Class AxisSectionBase

java.lang.Object
  extended by com.softwarefx.chartfx.server.AxisSectionBase
Direct Known Subclasses:
Axis, AxisSection

public abstract class AxisSectionBase
extends Object

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.


Constructor Summary
AxisSectionBase()
           
 
Method Summary
 Grids getGrids()
          Allows customization of grid lines by providing access to the supported members of the Grids Class .
 Link getLink()
          Gets the Link object for a selected BaseAxisSection item.
 Color getTextColor()
          Gets the TextColor.
 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()

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

    getLink

    public Link getLink()

    Gets the Link object for a selected BaseAxisSection item.

    Remarks:
  • Developers may obtain the Link object for an axis section item using this property. Using the supported Link Class members, developers may configure the Link.setUrl(java.lang.String) and Link.setTarget(java.lang.String) for the object.

  • See Also:
    Link.setUrl(java.lang.String), PointAttributes.getLink(), Link, PointAttributes

    getTextColor

    public Color getTextColor()

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


    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.