NetCharts Pro

netcharts.pro.common.rectangular
Class NFAxis

java.lang.Object
  extended by netcharts.pro.common.NFBaseClass
      extended by netcharts.pro.common.rectangular.NFAxis
All Implemented Interfaces:
java.lang.Cloneable, NFDataMapper
Direct Known Subclasses:
NFStripAxis

public class NFAxis
extends NFBaseClass
implements NFDataMapper

The NFAxis object has a tremendous amount of flexibility for manipulating the rectangular axes found in several of the NetCharts rendering engines. Below is an example use:

 NFBarchart bc = new NFBarchart();
 // axis
 NFAxis left = new NFAxis();
 left.setScale(0,100,25);
 left.setTextFont(sansserif);
 left.setTextColor(Color.gray.brighter());
 left.setTicFormat(new NFFormat(NFFormat.FLOAT, "%.3f"));

 NFAxis right = new NFAxis();
 right.setTextFont(sansserif);
 right.setTextColor(Color.blue);
 right.setScale(0,20,2);

 NFAxis bottom = new NFAxis();
 bottom.setTextFont(sansserif);
 bottom.setTicLayoutMode(NFAxis.AUTO);

 bc.setLeftAxis(left);
 bc.setBottomAxis(bottom);
 bc.setRightAxis(right);


Field Summary
static int AUTO
          autoskipstagger tic labels
static int AUTOSKIP
          autoskip tic labels
static int AUTOSTAGGER
          autostagger tic labels
static java.util.Hashtable axisLayoutDirectionMap
          axisLayoutDirectionMap hashtable
static java.util.Hashtable axisModeMap
          axisModeMap hashtable
static int CENTER
          Rotate the label around the center
static int LEFT
          Rotate the label around the left most character
static int LINEAR
          linear axis mode
static int LOG
          logarithmic axis mode
static int NORMAL
          no skip/stagger
static int NORMAL_LAYOUT
          normal axes layout direction
static int OUTWARD
          outward axes layout direction
static int RIGHT
          Rotate the label around the right most character
static int SKIP
          skip tic labels
static int SKIPSTAGGER
          skip and stagger tic labels
static int STAGGER
          stagger tic labels
static java.util.Hashtable ticLabelRotationPointMap
          ticLabelRotationPoint hashtable
static java.util.Hashtable ticModeMap
          ticModeMap hashtable
 
Constructor Summary
NFAxis()
          Constructs a default rectangular axis
NFAxis(java.util.Hashtable state, java.lang.String side)
          Constructs a rectangular axis using CDL parameters
NFAxis(java.util.Hashtable state, java.lang.String side, int modifier)
          Constructs a rectangular axis using CDL parameters
NFAxis(int size, int gap)
          Constructs a rectangular axis for use when multiple axes are used on the same side.
 
Method Summary
 void addScaleSet(double min, double max, double step, double percent)
          Adds a scale to a set of scales.
 java.lang.Object clone()
          Does a deep copy of this axis object
 NFVector getActiveLabels()
          Gets a list of NFActiveLabels for popup/drilldown on tic labels.
 NFRange getAutoScaleRange(NFGraph chart)
          Get the current range of an autoscaled axis.
 NFAxisMargin getAxisMargins()
          Gets the padding to add before and after the plot area of a graph.
 double getAxisScaleBase()
          Gets the logarithmic base for the axis if in LOG mode.
 int getAxisScaleMode()
          Gets the axis scale mode.
 java.util.Vector getCDLVector()
          NFAxis is a compound object representing multiple CDL parameters.
 java.util.Vector getCDLVector(java.util.Vector v)
          NFAxis is a compound object representing multiple CDL parameters.
 boolean getDrawMinorTics()
          Gets tic layout mode skip count.
 int getGap()
          Gets the gap in pixels between this axis and the next in the series.
 int getLayoutDirection()
          Gets the layout direction for the axis series.
 boolean getLayoutDirectionModified()
          Returns whether the layout direction has been modified.
 java.awt.Color getLineColor()
          Gets the axis line color
 java.awt.Color getMajorTicColor()
          Gets the major tic color
 java.awt.Color getMinorTicColor()
          Gets the minor tic color
 int getModifier()
          Get the modifier.
 NFAxisRange getScale()
          Gets the scale of this axis
 NFVector getScaleSets()
          Gets a vector of NFAxisRange objects representing multiple scales in this axis.
 NFRange getScrollRange()
          Gets the scroll range.
 java.lang.String getSide()
          Gets the side this axis represents
 int getSize()
          Gets the size of axis relative to other axes in the series.
 int getSkipCount()
          Gets tic layout mode skip count.
 int getStaggerLevels()
          Gets tic layout stagger levels
 java.awt.Color getTextColor()
          Gets the text color for this axis to be applied to tic labels.
 java.awt.Font getTextFont()
          Gets the text font for this axis to be applied to tic labels.
 NFFormat getTicFormat()
          Gets the axis tic label numerical formatting.
 NFModalLabel getTicLabel()
          Gets the axis tic label style.
 int getTicLabelRotationPoint()
          Gets the tic label rotation point.
 NFVector getTicLabels()
          Gets the list of string values to be used for each tic label.
 int getTicLayoutMode()
          Gets the tic layout mode.
 int getTicLength()
          Gets the length of the tics.
 NFVector getTicLocations()
          Gets the axis tic locations.
 NFActiveLabel getTitleActiveLabel()
          Gets the NFActiveLabel for popup/drilldown on the axis title
 NFLabel getTitleLabel()
          Gets the label element for the axis title.
 NFRegion getTitleRegion()
          Get the background element for the axis title
 boolean getZoom()
          Gets whether this axis should allow zooming.
 void setActiveLabels(NFVector activeLabels)
          Set the active labels for popup/drilldown on tic labels.
 void setAutoScaleRange()
          Turns autoscaling on.
 void setAutoScrollRange()
          Turns on scrolling.
 void setAxisMargins(NFAxisMargin margins)
          Sets the padding to add before and after the plot area of a graph.
 void setAxisScaleBase(double axisScaleBase)
          Sets the logarithmic base for the axis if in LOG mode.
 void setAxisScaleMode(int axisScaleMode)
          Sets the axis scale mode.
 void setDrawMinorTics(boolean drawMinorTics)
          If true (default) minor tics are drawn appropriately.
 void setGap(int gap)
          Sets the gap in pixels between this axis and the next in the series.
 void setLayoutDirection(int direction)
          Sets the layout direction for the axis series.
 void setLineColor(java.awt.Color lineColor)
          Sets the axis line color
 void setMajorTicColor(java.awt.Color majorTicColor)
          Sets the major tic color
 void setMinorTicColor(java.awt.Color minorTicColor)
          Sets the minor tic color
 void setModifier(int modifier)
          Set the modifier.
 void setScale(double min, double max, double step)
          Sets the scale of this axis
 void setScale(NFAxisRange scale)
          Sets the scale of this axis.
 void setScaleSets(NFVector scaleSets)
          Sets a vector of NFAxisRange objects representing multiple scales in this axis.
 void setScrollRange(double scrollMin, double scrollMax)
          Sets the scroll range.
 void setScrollRange(NFRange scrollRange)
          Sets the scroll range.
 void setSide(java.lang.String side)
          Sets the side this axis represents
 void setSize(int size)
          Sets the size of axis relative to other axes in the series.
 void setSkipCount(int skipCount)
          Sets tic layout mode skip count.
 void setStaggerLevels(int staggerLevels)
          Sets tic layout stagger levels
 void setTextColor(java.awt.Color color)
          Sets the text color for this axis to be applied to tic labels.
 void setTextFont(java.awt.Font font)
          Sets the text font for this axis to be applied to tic labels.
 void setTicFormat(NFFormat format)
          Sets the axis tic label numerical formatting.
 void setTicLabel(NFModalLabel ticLabel)
          Sets the axis tic label style.
 void setTicLabelRotationPoint(int labelRotationPoint)
          Sets the tic label rotation point.
 void setTicLabels(NFVector ticLabels)
          Sets a list of string values to be used for each tic label.
 void setTicLayoutMode(int layoutMode)
          Sets the tic layout mode.
 void setTicLength(int ticLength)
          Sets the length of the tics.
 void setTicLocations(NFVector ticLocations)
          Sets the axis tic locations.
 void setTitleActiveLabel(NFActiveLabel titleActiveLabel)
          Sets the NFActiveLabel for popup/drilldown on the axis title
 void setTitleLabel(NFLabel titleLabel)
          Sets the label element for the axis title.
 void setTitleRegion(NFRegion titleRegion)
          Set the background element for the axis title
 void setZoom(boolean zoom)
          Sets whether this axis should allow zooming.
 
Methods inherited from class netcharts.pro.common.NFBaseClass
getModified, getUserObject, setModified, setUserObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORMAL

public static final int NORMAL
no skip/stagger

See Also:
Constant Field Values

SKIP

public static final int SKIP
skip tic labels

See Also:
Constant Field Values

STAGGER

public static final int STAGGER
stagger tic labels

See Also:
Constant Field Values

SKIPSTAGGER

public static final int SKIPSTAGGER
skip and stagger tic labels

See Also:
Constant Field Values

AUTOSKIP

public static final int AUTOSKIP
autoskip tic labels

See Also:
Constant Field Values

AUTOSTAGGER

public static final int AUTOSTAGGER
autostagger tic labels

See Also:
Constant Field Values

AUTO

public static final int AUTO
autoskipstagger tic labels

See Also:
Constant Field Values

LINEAR

public static final int LINEAR
linear axis mode

See Also:
Constant Field Values

LOG

public static final int LOG
logarithmic axis mode

See Also:
Constant Field Values

NORMAL_LAYOUT

public static final int NORMAL_LAYOUT
normal axes layout direction

See Also:
Constant Field Values

OUTWARD

public static final int OUTWARD
outward axes layout direction

See Also:
Constant Field Values

ticModeMap

public static java.util.Hashtable ticModeMap
ticModeMap hashtable


axisModeMap

public static java.util.Hashtable axisModeMap
axisModeMap hashtable


RIGHT

public static final int RIGHT
Rotate the label around the right most character

See Also:
Constant Field Values

LEFT

public static final int LEFT
Rotate the label around the left most character

See Also:
Constant Field Values

CENTER

public static final int CENTER
Rotate the label around the center

See Also:
Constant Field Values

ticLabelRotationPointMap

public static java.util.Hashtable ticLabelRotationPointMap
ticLabelRotationPoint hashtable


axisLayoutDirectionMap

public static java.util.Hashtable axisLayoutDirectionMap
axisLayoutDirectionMap hashtable

Constructor Detail

NFAxis

public NFAxis()
Constructs a default rectangular axis


NFAxis

public NFAxis(int size,
              int gap)
Constructs a rectangular axis for use when multiple axes are used on the same side. The size and gap represent the sizing relative to other axes on the same side.

Parameters:
size - Percentage size of the axis
gap - Pixel gap between this axis and the next one in the series

NFAxis

public NFAxis(java.util.Hashtable state,
              java.lang.String side)
Constructs a rectangular axis using CDL parameters

Parameters:
state - Hashtable containing CDL parameters.
side - One of "Left", "Right", "Bottom", or "Top"

NFAxis

public NFAxis(java.util.Hashtable state,
              java.lang.String side,
              int modifier)
Constructs a rectangular axis using CDL parameters

Parameters:
state - Hashtable containing CDL parameters.
side - One of "Left", "Right", "Bottom", or Top"
modifier - "nth" axis in the series starting from 1
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Does a deep copy of this axis object

Overrides:
clone in class NFBaseClass
Returns:
Object
Throws:
java.lang.CloneNotSupportedException

setSide

public void setSide(java.lang.String side)
Sets the side this axis represents

If the value passed is not a valid side an IllegalArgumentException will be thrown.

Parameters:
side - One of "Left", "Right", "Bottom", or "Top"

getSide

public java.lang.String getSide()
Gets the side this axis represents

Specified by:
getSide in interface NFDataMapper
Returns:
one of "Left", "Right", "Bottom", or "Top". Returns "Left" if not defined.

setSize

public void setSize(int size)
Sets the size of axis relative to other axes in the series. Does not perform any action if there is only one axis on a given side.

Parameters:
size - Percentage size of the axis

getSize

public int getSize()
Gets the size of axis relative to other axes in the series. Does not perform any action if there is only one axis on a given side.

Returns:
percentage size of the axis or 0 if not defined.

setGap

public void setGap(int gap)
Sets the gap in pixels between this axis and the next in the series. Does not perform any action if there is only one axis on a given side.

Parameters:
gap - Pixel gap between this axis and the next one in the series

getGap

public int getGap()
Gets the gap in pixels between this axis and the next in the series. Does not perform any action if there is only one axis on a given side.

Parameters:
pixel - gap between this axis and the next one in the series. Return 0 if not defined.

setLayoutDirection

public void setLayoutDirection(int direction)
Sets the layout direction for the axis series. Does not perform any action if there is only one axis on a given side.

Parameters:
direction - the direction of the layout

getLayoutDirection

public int getLayoutDirection()
Gets the layout direction for the axis series. Does not perform any action if there is only one axis on a given side.

Parameters:
direction - of the layout in the series. Return 0 if not defined.

getLayoutDirectionModified

public boolean getLayoutDirectionModified()
Returns whether the layout direction has been modified.

Returns:
true if the layout direction has been modified, false otherwise.

setTextFont

public void setTextFont(java.awt.Font font)
Sets the text font for this axis to be applied to tic labels.

Parameters:
font - Tic label text font

getTextFont

public java.awt.Font getTextFont()
Gets the text font for this axis to be applied to tic labels.

Returns:
tic label text font or null if not defined.

setTextColor

public void setTextColor(java.awt.Color color)
Sets the text color for this axis to be applied to tic labels.

Parameters:
color - Tic label color

getTextColor

public java.awt.Color getTextColor()
Gets the text color for this axis to be applied to tic labels.

Returns:
tic label color or null if not defined.

setAxisScaleMode

public void setAxisScaleMode(int axisScaleMode)
Sets the axis scale mode. One of LOG, LINEAR

If the mode is not LOG or LINEAR an IllegalArgumentException will be thrown.

If the mode is LOG but the scale min or max is set to zero an IllegalArgumentException will be thrown since log(0) is undefined.

Parameters:
axisScaleMode - One of LOG, LINEAR

getAxisScaleMode

public int getAxisScaleMode()
Gets the axis scale mode.

Returns:
axisScaleMode. One of LOG, LINEAR or LINEAR if not defined.

setAxisScaleBase

public void setAxisScaleBase(double axisScaleBase)
Sets the logarithmic base for the axis if in LOG mode.

Parameters:
axisScaleBase - Logarithmic base. (For example, for base 2, pass 2.0).

getTicLength

public int getTicLength()
Gets the length of the tics. A value of -1 indicates that the tic length should be computed automatically from the tic label size.

Returns:
The length of the tics, or -1 to indicate they will be sized automatically.

setTicLength

public void setTicLength(int ticLength)
Sets the length of the tics. A value of -1 indicates that the tic length should be computed automatically from the tic label size.

Parameters:
ticLength - The length of the tics, or -1 to indicate they will be sized automatically.

getZoom

public boolean getZoom()
Gets whether this axis should allow zooming.

Returns:
Whether this axis should allow zooming.

setZoom

public void setZoom(boolean zoom)
Sets whether this axis should allow zooming.

Parameters:
zoom - Whether this axis should allow zooming.

getAxisScaleBase

public double getAxisScaleBase()
Gets the logarithmic base for the axis if in LOG mode.

Returns:
axisScaleBase or 10 if not defined.

setLineColor

public void setLineColor(java.awt.Color lineColor)
Sets the axis line color

Parameters:
lineColor - Axis line color.

getLineColor

public java.awt.Color getLineColor()
Gets the axis line color

Returns:
lineColor or null if not defined.

setTicLocations

public void setTicLocations(NFVector ticLocations)
Sets the axis tic locations. The contents of the NFVector should be a list of data positions in the range that tics should appear. For example, if the scale is 0-100 and the contents of the ticLocation vector are 17 and 23, tics and tic labels will only appear at 17 and 23.

If the vector contains elements that are not numeric objects or Date objects, an IllegalArgumentException will be thrown.

Parameters:
ticLocations. - NFVector of numeric or date/time information.

getTicLocations

public NFVector getTicLocations()
Gets the axis tic locations. The contents of the NFVector should be a list of data positions in the range that tics should appear. For example, if the scale is 0-100 and the contents of the ticLocation vector are 17 and 23, tics and tic labels will only appear at 17 and 23.

Returns:
ticLocations or null if not defined.

setTicLabel

public void setTicLabel(NFModalLabel ticLabel)
Sets the axis tic label style. Rarely needs to be called - Use axis.setTextFont or axis.setTextColor instead.

Parameters:
ticLabel -

getTicLabel

public NFModalLabel getTicLabel()
Gets the axis tic label style.

Returns:
ticLabel

setTicFormat

public void setTicFormat(NFFormat format)
Sets the axis tic label numerical formatting. Only applies when tic values are automatically generated - if setTicLabels is used, the format is ignored.

Parameters:
format - NFFormat object describing how automatically generated labels are to be formatted.

getTicFormat

public NFFormat getTicFormat()
Gets the axis tic label numerical formatting. Only applies when tic values are automatically generated - if setTicLabels is used, the format is ignored.

Returns:
format or null if not defined.

setTicLabels

public void setTicLabels(NFVector ticLabels)
Sets a list of string values to be used for each tic label.

Parameters:
ticLabels - Vector of strings.

getTicLabels

public NFVector getTicLabels()
Gets the list of string values to be used for each tic label.

Returns:
ticLabels or null if not defined.

setActiveLabels

public void setActiveLabels(NFVector activeLabels)
Set the active labels for popup/drilldown on tic labels.

If the vector contains elements that are not NFActiveLabel objects, an IllegalArgumentException will be thrown.

Parameters:
activeLabels - Vector of NFActiveLabels

getActiveLabels

public NFVector getActiveLabels()
Gets a list of NFActiveLabels for popup/drilldown on tic labels. If no activeLabels are set for the axis, then null is returned.

Parameters:
activeLabels - or null if not defined.

setTitleLabel

public void setTitleLabel(NFLabel titleLabel)
Sets the label element for the axis title. No axis title will be shown if this is null.

Parameters:
titleLabel - Title label object

getTitleLabel

public NFLabel getTitleLabel()
Gets the label element for the axis title. No axis title will be shown if this is null.

Returns:
titleLabel or null if not defined.

setTitleRegion

public void setTitleRegion(NFRegion titleRegion)
Set the background element for the axis title

Parameters:
titleRegion - NFRegion object

getTitleRegion

public NFRegion getTitleRegion()
Get the background element for the axis title

Returns:
titleRegion or null if not defined.

setTitleActiveLabel

public void setTitleActiveLabel(NFActiveLabel titleActiveLabel)
Sets the NFActiveLabel for popup/drilldown on the axis title

Parameters:
titleActiveLabel - ActiveLabel object

getTitleActiveLabel

public NFActiveLabel getTitleActiveLabel()
Gets the NFActiveLabel for popup/drilldown on the axis title

Returns:
titleActiveLabel or null if not defined.

setTicLayoutMode

public void setTicLayoutMode(int layoutMode)
Sets the tic layout mode. This is used to prevent adjacent labels from overlapping on one another. One of
 NORMAL - No explicit layout
 AUTO - Automatically skips or staggers labels that overlap
 AUTOSTAGGER - Automatically staggers labels that overlap
 AUTOSKIP - Automatically skips labels that overlap
 SKIP - Explicitly skip labels using the given skip count
 STAGGER - Explicitly stagger labels using the given stagger levels
 SKIPSTAGGER - Explicitly skip or stagger labels given skip count and stagger levels.

Parameters:
layoutMode. - One of NORMAL, AUTO, AUTOSTAGGER, AUTOSKIP, SKIP, STAGGER, SKIPSTAGGER

getTicLayoutMode

public int getTicLayoutMode()
Gets the tic layout mode. This is used to prevent adjacent labels from overlapping on one another. One of NORMAL - No explicit layout AUTO - Automatically skips or staggers labels that overlap AUTOSTAGGER - Automatically staggers labels that overlap AUTOSKIP - Automatically skips labels that overlap SKIP - Explicitly skip labels using the given skip count STAGGER - Explicitly stagger labels using the given stagger levels SKIPSTAGGER - Explicitly skip or stagger labels given skip count and stagger levels.

Returns:
layoutMode or AUTO if not defined.

setTicLabelRotationPoint

public void setTicLabelRotationPoint(int labelRotationPoint)
Sets the tic label rotation point. One of
 RIGHT - The label is rotated around its right most character
 LEFT - The label is rotated around its left most character
 CENTER - The label is rotated around its center (this is the default)

Parameters:
labelRotationPoint. - One of RIGHT, LEFT, CENTER

getTicLabelRotationPoint

public int getTicLabelRotationPoint()
Gets the tic label rotation point. One of
 RIGHT - The label is rotated around its right most character
 LEFT - The label is rotated around its left most character
 CENTER - The label is rotated around its center (this is the default)
 

Returns:
labelRotationPoint or CENTER if not defined

setSkipCount

public void setSkipCount(int skipCount)
Sets tic layout mode skip count.

Parameters:
skipCount - Number of labels to skip if in SKIP or SKIPSTAGGER mode.

getSkipCount

public int getSkipCount()
Gets tic layout mode skip count.

Returns:
skipCount or 1 if not defined.

setDrawMinorTics

public void setDrawMinorTics(boolean drawMinorTics)
If true (default) minor tics are drawn appropriately.

Parameters:
drawMinorTics - If false, do not draw the minor tics

getDrawMinorTics

public boolean getDrawMinorTics()
Gets tic layout mode skip count.

Returns:
true if the minor tics will be drawn (default) or false otherwise.

setStaggerLevels

public void setStaggerLevels(int staggerLevels)
Sets tic layout stagger levels

Parameters:
staggerLevels - Number of levels to stagger labels if in STAGGER or SKIPSTAGGER mode.
Throws:
If - the stagger levels are < 0, then an exception will be thrown.

getStaggerLevels

public int getStaggerLevels()
Gets tic layout stagger levels

Returns:
staggerLevels or 2 if not defined.

setAutoScrollRange

public void setAutoScrollRange()
Turns on scrolling.


setScrollRange

public void setScrollRange(double scrollMin,
                           double scrollMax)
Sets the scroll range. The scrollMin and scrollMax represent the viewport into the data.

Parameters:
scrollMin - Minimum end of data viewport.
scrollMax - Maximum end of data viewport.

setScrollRange

public void setScrollRange(NFRange scrollRange)
Sets the scroll range.

Parameters:
scrollRange - Sets the minimum and maximum end of the data viewport.

getScrollRange

public NFRange getScrollRange()
Gets the scroll range.

Returns:
scrollRange or null if not defined.

setAutoScaleRange

public void setAutoScaleRange()
Turns autoscaling on. This is done simply by setting the scale to "null".


getAutoScaleRange

public NFRange getAutoScaleRange(NFGraph chart)
Get the current range of an autoscaled axis.

Parameters:
chart - This chart object having the autoscaled axis
Returns:
NFRange Auto scale of given axis

setScale

public void setScale(double min,
                     double max,
                     double step)
Sets the scale of this axis

Parameters:
min - Minimum viewable axis value.
max - Maximum viewable axis value
step - Tic step size.

setScale

public void setScale(NFAxisRange scale)
Sets the scale of this axis. If set to null, causes the axis to autoscale.

Parameters:
scale - Contains the minimum, maximum, and tic step values.

getScale

public NFAxisRange getScale()
Gets the scale of this axis

Parameters:
scale - or null if autoscaling turned on.

addScaleSet

public void addScaleSet(double min,
                        double max,
                        double step,
                        double percent)
Adds a scale to a set of scales. This is used when more than one scale is used within a contiguous axis.

Parameters:
min - Minimum value of the scale.
max - Maximum value of the scale.
step - Tic step value for this scale.
percent - Percentage of overall axis this axis scale should use.

getScaleSets

public NFVector getScaleSets()
Gets a vector of NFAxisRange objects representing multiple scales in this axis.

Returns:
scaleSet

setScaleSets

public void setScaleSets(NFVector scaleSets)
Sets a vector of NFAxisRange objects representing multiple scales in this axis.

Parameters:
scaleSet -

setAxisMargins

public void setAxisMargins(NFAxisMargin margins)
Sets the padding to add before and after the plot area of a graph.

Parameters:
margins - NFAxisMargin object specifying the padding to add before and after the plot area of a graph.

getAxisMargins

public NFAxisMargin getAxisMargins()
Gets the padding to add before and after the plot area of a graph.

Returns:
NFAxisMargin object specifying the padding to add before and after the plot area of a graph.

setMajorTicColor

public void setMajorTicColor(java.awt.Color majorTicColor)
Sets the major tic color

Parameters:
majorTicColor - major tic color.

getMajorTicColor

public java.awt.Color getMajorTicColor()
Gets the major tic color

Returns:
majorTicColor or null if not defined.

setMinorTicColor

public void setMinorTicColor(java.awt.Color minorTicColor)
Sets the minor tic color

Parameters:
minorTicColor - minor tic color.

getMinorTicColor

public java.awt.Color getMinorTicColor()
Gets the minor tic color

Returns:
minorTicColor or null if not defined.

setModifier

public void setModifier(int modifier)
Set the modifier. Represents the "nth" axis in a series. Internal use only

Parameters:
modifier -

getModifier

public int getModifier()
Get the modifier. Represents the "nth" axis in a series. Internal use only

Specified by:
getModifier in interface NFDataMapper
Parameters:
modifier - or 0 if not defined.

getCDLVector

public java.util.Vector getCDLVector()
NFAxis is a compound object representing multiple CDL parameters. This method returns a vector containing CDL representations for all modified attributes described in this NFAxis

Returns:
Vector of NFKeyValue objects

getCDLVector

public java.util.Vector getCDLVector(java.util.Vector v)
NFAxis is a compound object representing multiple CDL parameters. This method returns a vector containing CDL representations for all modified attributes described in this NFAxis

Parameters:
v - vector to append NFKeyValue objects to.
Returns:
Vector of NFKeyValue objects

NetCharts Pro


Visual Mining, Inc.
2099 Gaither Rd.
Suite 220
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2011
All Rights Reserved.

NetCharts Pro TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Jun 28, 2011