|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jrefinery.chart.Axis
com.jrefinery.chart.WindAxis
public abstract class WindAxis
| Field Summary | |
|---|---|
protected boolean |
autoRange
|
protected int |
autoTickIndex
|
protected boolean |
autoTickValue
|
protected java.awt.Paint |
gridPaint
The paint used to draw grid lines. |
protected java.awt.Stroke |
gridStroke
The stroke used to draw grid lines. |
protected boolean |
showGridLines
Flag that indicates whether or not grid lines are showing for this axis. |
| Fields inherited from class com.jrefinery.chart.Axis |
|---|
fixedDimension, label, labelFont, labelInsets, labelPaint, listeners, plot, tickLabelFont, tickLabelInsets, tickLabelPaint, tickLabelsVisible, tickMarkStroke, tickMarksVisible, ticks, visible |
| Fields inherited from interface com.jrefinery.chart.AxisConstants |
|---|
DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, DEFAULT_TICK_STROKE |
| Constructor Summary | |
|---|---|
WindAxis(java.lang.String label)
Standard constructor - initialises the attributes for a ValueAxis. |
|
WindAxis(java.lang.String label,
java.awt.Font labelFont,
java.awt.Paint labelPaint,
java.awt.Insets labelInsets,
boolean showTickLabels,
java.awt.Font tickLabelFont,
java.awt.Paint tickLabelPaint,
java.awt.Insets tickLabelInsets,
boolean showTickMarks,
java.awt.Stroke tickMarkStroke,
boolean autoRange,
boolean autoTickValue,
boolean showGridLines,
java.awt.Stroke gridStroke,
java.awt.Paint gridPaint)
Full constructor - initialises the attributes for a ValueAxis. |
|
| Method Summary | |
|---|---|
protected abstract void |
autoAdjustRange()
Automatically determines the maximum and minimum values on the axis to 'fit' the data; |
boolean |
getAutoTickValue()
Returns true if the tick value is calculated automatically, and false otherwise. |
java.awt.Paint |
getGridPaint()
Returns the Paint used to color the grid lines (if visible). |
java.awt.Stroke |
getGridStroke()
Returns the Stroke used to draw the grid lines (if visible). |
boolean |
isAutoRange()
Returns true if the axis range is automatically adjusted to fit the data, and false otherwise. |
boolean |
isShowGridLines()
Returns true if the grid lines are visible for this axis, and false otherwise. |
void |
setAutoRange(boolean auto)
Sets a flag that determines whether or not the axis range is automatically adjusted to fit the data, and notifies registered listeners that the axis has been modified. |
void |
setAutoTickValue(boolean flag)
Sets a flag indicating whether or not the tick value is calculated automatically, and notifies registered listeners that the axis has been modified. |
void |
setGridPaint(java.awt.Paint paint)
Sets the Paint used to color the grid lines (if visible) and notifies registered listeners that the axis has been modified. |
void |
setGridStroke(java.awt.Stroke stroke)
Sets the Stroke used to draw the grid lines (if visible) and notifies registered listeners that the axis has been modified. |
void |
setShowGridLines(boolean show)
Sets the visibility of the grid lines and notifies registered listeners that the axis has been modified. |
abstract double |
translateValueToJava2D(double dataValue,
java.awt.geom.Rectangle2D plotArea)
Converts a value from the data source to a Java2D user-space co-ordinate relative to the specified plotArea. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean autoRange
protected boolean autoTickValue
protected int autoTickIndex
protected boolean showGridLines
protected java.awt.Stroke gridStroke
protected java.awt.Paint gridPaint
| Constructor Detail |
|---|
public WindAxis(java.lang.String label,
java.awt.Font labelFont,
java.awt.Paint labelPaint,
java.awt.Insets labelInsets,
boolean showTickLabels,
java.awt.Font tickLabelFont,
java.awt.Paint tickLabelPaint,
java.awt.Insets tickLabelInsets,
boolean showTickMarks,
java.awt.Stroke tickMarkStroke,
boolean autoRange,
boolean autoTickValue,
boolean showGridLines,
java.awt.Stroke gridStroke,
java.awt.Paint gridPaint)
label - The axis label;labelFont - The font for displaying the axis label;labelPaint - The paint used to draw the axis label;labelInsets - Determines the amount of blank space around the label;showTickLabels - Flag indicating whether or not tick labels are visible;tickLabelFont - The font used to display tick labels;tickLabelPaint - The paint used to draw tick labels;tickLabelInsets - Determines the amount of blank space around tick labels;showTickMarks - Flag indicating whether or not tick marks are visible;tickMarkStroke - The stroke used to draw tick marks (if visible);autoRange - Flag indicating whether or not the axis range is automatically adjusted to
fit the data;autoTickValue - A flag indicating whether or not the tick value is automatically
calculated;tickUnits - The tick units;showGridLines - Flag indicating whether or not grid lines are visible for this axis;gridStroke - The Stroke used to display grid lines (if visible);gridPaint - The Paint used to display grid lines (if visible).public WindAxis(java.lang.String label)
label - The axis label;| Method Detail |
|---|
public boolean isAutoRange()
public void setAutoRange(boolean auto)
auto - Flag indicating whether or not the axis is automatically scaled to fit the data.public boolean getAutoTickValue()
public void setAutoTickValue(boolean flag)
flag - The new value of the flag;public boolean isShowGridLines()
public void setShowGridLines(boolean show)
show - The new setting;public java.awt.Stroke getGridStroke()
public void setGridStroke(java.awt.Stroke stroke)
stroke - The new grid line stroke.public java.awt.Paint getGridPaint()
public void setGridPaint(java.awt.Paint paint)
paint - The new grid paint;protected abstract void autoAdjustRange()
public abstract double translateValueToJava2D(double dataValue,
java.awt.geom.Rectangle2D plotArea)
Note that it is possible for the coordinate to fall outside the plotArea.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||