| Overview | Package | Class | Tree | Index | Help | NetCharts Pro (Applets) 7.0 | ||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object | +--netcharts.graphics.NFAbstractAxis
| Field Summary | |
| static int | DATE
Date label format |
| static int | DECIMAL
Java1.1 decimal label format |
| char | decSymbol
The decimal symbol. |
| static int | FLOAT
Numeric label format |
| int | groupSize
Size of number grouping. |
| char | groupSymbol
The number grouping symbol. |
| static int | INTEGER
Integer label format |
| static int | SIMPLEDATE
Java1.1 simple date label format |
| Method Summary | |
| boolean | autoGeneratedLabel(int i)
Determine if the given label was automatically generated. |
| void | clearTicLabels()
Clears the tic labels. |
| java.awt.Color | getColor()
Get the axis color |
| char | getDecimalSymbol()
Returns the current decimal symbol |
| int | getGroupSize()
Returns the current grouping size |
| char | getGroupSymbol()
Returns the current grouping symbol |
| java.lang.String | getLabel(double val)
Returns a string label for the given value, based on the current axis format settings. |
| java.lang.String | getLabel(double val,
java.lang.String formatStr)
Returns a string label for the given value, based on the current axis format settings. |
| java.lang.String | getLabel(java.lang.Object val)
Returns a string label for the given value, which can be any of the following types:
|
| java.lang.String | getLabel(java.lang.Object val,
java.lang.String formatStr)
Returns a string label for the given value, which can be any of the following types:
|
| java.awt.Color | getMajorTicColor()
Get the major tic color |
| double | getMax()
Returns the max axis value |
| double | getMin()
Returns the min axis value |
| java.awt.Color | getMinorTicColor()
Get the minor tic color |
| java.awt.Point | getNthPoint(int i)
Returns the Nth tic position in screen coordinates. |
| boolean | getShowAxis()
Returns true if axis is showing, false if not. |
| boolean | getShowTics()
Returns true if tics are showing, false if not. |
| NFSpacing | getSpacing()
Returns the current ticSpacing for the axis, which may be null. |
| double | getStepSize()
Returns the step size |
| NFLabel | getTicLabel()
Gets the tic label attribute |
| java.util.Vector | getTicLabels()
Get the tic labels to be displayed. |
| NFLabel | getTitleLabel()
Sets label parameters to be used this axis title. |
| double | getValue(java.lang.Object obj)
Returns a numeric value of the object given, which may be any of the following types:
|
| java.awt.Point | mapValue(double v)
Returns a screen position along the axis corresponding to the given value, which may be within (min,max) or not. |
| java.awt.Point | mapValue(java.lang.Object obj)
Returns a screen position based on the current (min,max) setting and the value of the object given, which may be any of the following types:
|
| double | reasonableStep(double min,
double max)
Compute a reasonable step size for the current axis relative to the amount of screen space it will be using, given the min and max values for the data set. |
| void | setActiveLabels(java.util.Vector labels)
Set the Axis ActiveLabels. |
| void | setAxis(int x1,
int y1,
int dx,
int dy)
Specifies the screen coordinates for the axis. |
| void | setColor(java.awt.Color c)
Set the axis color |
| void | setMajorTicColor(java.awt.Color c)
Set the major tic color |
| void | setMinorTicColor(java.awt.Color c)
Set the minor tic color |
| void | setNumberFormat(int groupSize,
char groupSymbol,
char decSymbol)
This method can be used to set the group size, symbol and decimal symbol to be used when formatting whole numbers. |
| void | setScale(double scale)
Set the scale factor. |
| void | setSpacing(NFSpacing spacing)
Defines the tic spacing using a NFSpacing object. |
| void | setTicDivisions(double min,
double max,
double ticStepSize)
Computes tic labels and position based on the axis min, max and stepsize. |
| void | setTicDivisions(double min,
double max,
int numTics)
Computes tic labels and position based on the axis min, max and number of tics. |
| void | setTicDivisions(java.lang.Object min,
java.lang.Object max,
java.lang.Object ticStepSize)
Computes tic labels and position based on the axis min, max and stepsize, given as any of the following types:
|
| void | setTicLabel(NFLabel ticLabel)
Sets label parameters to be used for each of the axis labels. |
| void | setTicLabels(java.util.Vector labels)
Set the tic labels to be displayed |
| void | setTicLabels(java.util.Vector labels,
java.lang.String alParam)
Set the tic labels to be displayed and the associated ActiveLabel parameter. |
| void | setTicLocations(java.util.Vector v)
Set the tic locations. |
| void | setTitleLabel(NFLabel titleLabel)
Sets label parameters to be used this axis title. |
| void | setup()
This method should be called whenever the variables affecting tic generation are modified. |
| void | showAxis(boolean showAxis)
Toggles the axis display. |
| void | showAxisAndLine(boolean showAxis,
boolean showAxisLine)
Toggles the axis or axis line display. |
| void | showAxisLine(boolean showAxisLine)
Toggles the axis line display. |
| void | showAxisTitle(boolean showAxisTitle)
Toggles the axis title display. |
| void | showTicLabels(boolean showTicLabels)
Toggles the tic label display. |
| void | showTics(boolean showTics)
Toggles the tics display. |
| void | showTicsAndLabels(boolean showTics,
boolean showTicLabels)
Toggles the tics or tic label display. |
| Field Detail |
public static final int INTEGER
public static final int FLOAT
public static final int DATE
public static final int SIMPLEDATE
public static final int DECIMAL
protected int groupSize
protected char groupSymbol
protected char decSymbol
| Method Detail |
public void setAxis(int x1,
int y1,
int dx,
int dy)
x1
- The X coordinate.
y1
- The Y coordinate.
dx
- The change in the X coordinate.
dy
- The change in the Y coordinate.
public void setTicDivisions(double min,
double max,
int numTics)
min
- The minimum.
max
- The maximum.
numTics
- The number of tics.
public void setTicDivisions(java.lang.Object min,
java.lang.Object max,
java.lang.Object ticStepSize)
min
- The minimum.
max
- The maximum.
ticStepSize
- The size of the tic step.
public void setTicDivisions(double min,
double max,
double ticStepSize)
min
- The minimum.
max
- The maximum.
ticStepSize
- The size of the tic step.public double getValue(java.lang.Object obj)
obj
- The object to get the value from.public double getMin()
public double getMax()
public double getStepSize()
public double reasonableStep(double min,
double max)
min
- The minimum.
max
- The maximum.public java.lang.String getLabel(double val)
val
- The value to convert.
public java.lang.String getLabel(double val,
java.lang.String formatStr)
val
- The value to convert.
formatStr
- The format string to use.public java.lang.String getLabel(java.lang.Object val)
The label is based on the current axis format settings.
val
- The value to convert.
public java.lang.String getLabel(java.lang.Object val,
java.lang.String formatStr)
The label is based on the current axis format settings.
val
- The value to convert.
formatStr
- The format string to use.
public void setNumberFormat(int groupSize,
char groupSymbol,
char decSymbol)
groupSize
- The grouping size.
groupSymbol
- The grouping symbol.
decSymbol
- The decimal symbol.public char getGroupSymbol()
public int getGroupSize()
public char getDecimalSymbol()
public java.awt.Point getNthPoint(int i)
i
- The index of the point.public java.awt.Point mapValue(java.lang.Object obj)
obj
- The Object to map.public abstract java.awt.Point mapValue(double v)
v
- The value to map to the axis.public void setup()
public void setTicLocations(java.util.Vector v)
locations
- The locations to set.public NFSpacing getSpacing()
public void setSpacing(NFSpacing spacing)
spacing
- The spacnig to set.public void setTicLabels(java.util.Vector labels)
labels
- The labels to set.public java.util.Vector getTicLabels()
public void setTicLabels(java.util.Vector labels,
java.lang.String alParam)
labels
- The labels to set.
alParam
- The parameter to use in the generation of ChartEvents.public void clearTicLabels()
public void setScale(double scale)
scale
- The scale factor.public void setTicLabel(NFLabel ticLabel)
ticLabel
- The NFLbael to use to draw the tic labels.public void setTitleLabel(NFLabel titleLabel)
titleLabel
- The title label.public NFLabel getTitleLabel()
public NFLabel getTicLabel()
public boolean getShowAxis()
public void showAxis(boolean showAxis)
showAxis
- Whether to display the axis or not.public void showAxisLine(boolean showAxisLine)
showAxisLine
- Whether to display the axis line or not.public void showAxisTitle(boolean showAxisTitle)
showAxisTitle
- Whether to display the axis title or not.
public void showAxisAndLine(boolean showAxis,
boolean showAxisLine)
showAxis
- Whether to display the axis or not.
showAxisLine
- Whether to display the axis line or not.public boolean getShowTics()
public void showTics(boolean showTics)
showTics
- Whether to show the tics or not.public void showTicLabels(boolean showTicLabels)
showTicLabels
- Whether to show the tic labels or not.
public void showTicsAndLabels(boolean showTics,
boolean showTicLabels)
showTics
- Whether to show the tics or not.
showTicLabels
- Whether to show the tic labels or not.public void setColor(java.awt.Color c)
The
- axis color to set.public java.awt.Color getColor()
public void setMajorTicColor(java.awt.Color c)
The
- major tic color to set.public java.awt.Color getMajorTicColor()
public void setMinorTicColor(java.awt.Color c)
The
- minor tic color to set.public java.awt.Color getMinorTicColor()
protected boolean autoGeneratedLabel(int i)
i
- The label index.public void setActiveLabels(java.util.Vector labels)
labels
- The new ActiveLabels.| Overview | Package | Class | Tree | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2010 |
Last Modified: Jun 29, 2010 |