public interface GJAxisSupportInterface
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(double v)
Returns a string for axis labels formatted by an internal formatter
|
java.lang.String |
formatXAxisLabel(double v)
Returns a string for x-axis labels formatted by an internal formatter
|
java.lang.String |
formatYAxisLabel(double v)
Returns a string for y-axis labels formatted by an internal formatter
|
java.awt.geom.Rectangle2D |
getAxesBounds()
Returns the bounds of the axes (xLeft, yBottom, width, height)
|
java.awt.Color |
getAxisColor()
Returns the axis painting color
|
java.awt.event.MouseAdapter |
getAxisMouseHandler()
Returns the mouse handler for this axis
|
float |
getAxisStrokeWeight()
Returns the stroke thickness for axes
|
GJAxisPanel |
getBottomAxisPanel()
Returns the panel for drawing the bottom axis.
|
java.util.ArrayList<Category> |
getCategoricalLabels(GJAxisPanel.Orientation o)
Returns the categorical data on the specified axis
|
GJAxisPanel |
getLeftAxisPanel()
Returns the panel for drawing the left axis.
|
java.awt.Color |
getMajorGridColor()
Returns the major grid painting color
|
float |
getMajorGridStrokeWeight()
Returns the stroke thickness for major grids
|
double |
getMajorXHint()
Returns the value for the hint
|
double |
getMajorYHint()
Returns the value for the hint
|
int |
getMinorCountXHint()
Returns a hint for the number of minor grids to paint per major grid
division for the x-axis.
|
int |
getMinorCountYHint()
Returns a hint for the number of minor grids to paint per major grid
division for the y-axis.
|
java.awt.Color |
getMinorGridColor()
Returns the minor grid painting color
|
float |
getMinorGridStrokeWeight()
Returns the stroke thickness for minor grids
|
java.awt.geom.Point2D |
getOrigin()
Returns the origin through which internal axes will be painted.
|
double |
getOriginX()
Returns the origin for the y-dimension
|
double |
getOriginY()
Returns the origin for the x-dimension
|
GJAxisPanel |
getRightAxisPanel()
Returns the panel for drawing the right axis.
|
GJAxisPanel |
getTopAxisPanel()
Returns the panel for drawing the top axis.
|
double |
getXAxisLabelRotation(double v)
Returns the rotation for x-axis labels at the location specified by v
|
java.lang.String |
getXLabel()
Returns the string for the x-axis label
|
double |
getXLeft()
Returns the value displayed at the left of the x-axis
|
double |
getXMax()
Returns the maximum value for the x-axis display
|
double |
getXMin()
Returns the minimum value for the x-axis display
|
double |
getXRight()
Returns the value displayed at the right of the x-axis
|
double |
getYAxisLabelRotation(double v)
Returns the rotation for y-axis labels at the location specified by v
|
double |
getYBottom()
Returns the value displayed at the bottom of the y-axis
|
java.lang.String |
getYLabel()
Returns the string for the y-axis label
|
double |
getYMax()
Returns the maximum value for the x-axis display
|
double |
getYMin()
Returns the minimum value for the y-axis display
|
double |
getYTop()
Returns the value displayed at the top of the y-axis
|
boolean |
isBottomAxisLabelled()
Returns true if the bottom axis is labelled
|
boolean |
isBottomAxisPainted() |
boolean |
isCategorical(GJAxisPanel.Orientation o)
Returns true if the data on the specified axis contains categorical
values.
|
boolean |
isInnerAxisLabelled()
Returns the flag for painting the inner axis labels
|
boolean |
isInnerAxisPainted()
Returns true if the inner axis is painted
|
boolean |
isLeftAxisLabelled()
Returns true if the left axis is labelled
|
boolean |
isLeftAxisPainted() |
boolean |
isMajorGridPainted()
Returns true if the major grid is painted
|
boolean |
isMinorGridPainted()
Returns true if the minor grid is painted
|
boolean |
isRightAxisLabelled()
Returns true if the right axis is labelled
|
boolean |
isRightAxisPainted() |
boolean |
isTopAxisLabelled()
Returns true if the top axis is labelled
|
boolean |
isTopAxisPainted() |
boolean |
isXReversed()
Returns true if the x-axis and data are painted in reverse
|
boolean |
isYReversed()
Returns true if the y-axis and data are painted in reverse
|
void |
setAxesBounds(java.awt.geom.Rectangle2D r)
Sets the bounds of the axes (xLeft, yBottom, width, height)
|
void |
setAxisColor(java.awt.Color axisColor)
Sets the color for painting the axis
|
void |
setAxisStrokeWeight(float axisStroke)
Sets the width of lines for the axes
|
void |
setBottomAxisLabelled(boolean flag)
Sets the bottom axis is labelling flag
|
void |
setBottomAxisPainted(boolean flag)
Sets the flag for painting the bottom axis
|
void |
setInnerAxisLabelled(boolean flag)
Sets the flag for painting the inner axis labels
|
void |
setInnerAxisPainted(boolean flag)
Sets the flag for painting the inner axis
|
void |
setLeftAxisLabelled(boolean flag)
Sets the left axis is labelling flag
|
void |
setLeftAxisPainted(boolean flag)
Sets the flag for painting the left axis
|
void |
setMajorGridColor(java.awt.Color majorGridColor)
Sets the color for painting the major grid
|
void |
setMajorGridPainted(boolean flag)
Sets the flag for painting the major grid
|
void |
setMajorGridStrokeWeight(float majorGridStrokeWeight)
Sets the stroke thickness for major grids
|
void |
setMajorXHint()
Automatically sets the hint
|
void |
setMajorXHint(double hint)
Sets the hint to the specified value
|
void |
setMajorYHint()
Automatically sets the hint
|
void |
setMajorYHint(double hint)
Sets the hint to the specified value
|
void |
setMinorCountXHint(int minorCountX)
Provides a hint to how many minor grid lines should be painted.
|
void |
setMinorCountYHint(int minorCountY)
Provides a hint to how many minor grid lines should be painted.
|
void |
setMinorGridColor(java.awt.Color minorGridColor)
Sets the color for painting the minor grid
|
void |
setMinorGridPainted(boolean flag)
Sets the flag for painting the minor grid
|
void |
setMinorGridStrokeWeight(float gridStroke)
Sets the stroke thickness for minor grids
|
void |
setOrigin(java.awt.geom.Point2D p)
Sets the origin - through which internal axes will be painted.
|
void |
setOriginX(double v)
Sets the origin for the x-dimension
|
void |
setOriginY(double v)
Sets the origin for the y-dimension
|
void |
setReverseX(boolean flag)
Sets the axis reversal flag for the x-axis.
|
void |
setReverseY(boolean flag)
Sets the axis reversal flag for the x-axis.
|
void |
setRightAxisLabelled(boolean flag)
Sets the right axis is labelling flag
|
void |
setRightAxisPainted(boolean flag)
Sets the flag for painting the right axis
|
void |
setTopAxisLabelled(boolean flag)
Sets the top axis is labelling flag
|
void |
setTopAxisPainted(boolean flag)
Sets the flag for painting the top axis
|
void |
setXLabel(java.lang.String s)
Sets the string for the x-axis label
|
void |
setXLeft(double val)
Sets the value displayed at the left of the x-axis
|
void |
setXRight(double val)
Sets the value displayed at the right of the x-axis
|
void |
setYBottom(double val)
Sets the value displayed at the bottom of the y-axis
|
void |
setYLabel(java.lang.String s)
Sets the string for the x-axis label
|
void |
setYTop(double val)
Sets the value displayed at the top of the y-axis
|
boolean isTopAxisPainted()
boolean isLeftAxisPainted()
boolean isRightAxisPainted()
boolean isBottomAxisPainted()
void setTopAxisPainted(boolean flag)
flag
- the setting to usevoid setLeftAxisPainted(boolean flag)
flag
- the setting to usevoid setRightAxisPainted(boolean flag)
flag
- the setting to usevoid setBottomAxisPainted(boolean flag)
flag
- the setting to useGJAxisPanel getTopAxisPanel()
GJAxisPanel getLeftAxisPanel()
GJAxisPanel getRightAxisPanel()
GJAxisPanel getBottomAxisPanel()
java.lang.String getXLabel()
java.lang.String getYLabel()
void setXLabel(java.lang.String s)
s
- the Stringvoid setYLabel(java.lang.String s)
s
- the Stringboolean isXReversed()
void setReverseX(boolean flag)
flag
- boolean isYReversed()
void setReverseY(boolean flag)
flag
- double getXMin()
double getXMax()
double getYMin()
double getYMax()
double getXLeft()
void setXLeft(double val)
val
- the valuedouble getXRight()
void setXRight(double val)
val
- the valuedouble getYTop()
void setYTop(double val)
val
- the valuedouble getYBottom()
void setYBottom(double val)
val
- the valuejava.awt.geom.Point2D getOrigin()
void setOrigin(java.awt.geom.Point2D p)
p
- a Point2D objectdouble getOriginY()
double getOriginX()
void setOriginX(double v)
v
- a doublevoid setOriginY(double v)
v
- a doubleint getMinorCountXHint()
int getMinorCountYHint()
boolean isLeftAxisLabelled()
boolean isRightAxisLabelled()
boolean isTopAxisLabelled()
boolean isBottomAxisLabelled()
void setLeftAxisLabelled(boolean flag)
flag
- the label flagvoid setRightAxisLabelled(boolean flag)
flag
- the label flagvoid setTopAxisLabelled(boolean flag)
flag
- the label flagvoid setBottomAxisLabelled(boolean flag)
flag
- the label flagboolean isMajorGridPainted()
void setMajorGridPainted(boolean flag)
flag
- the boolean valueboolean isMinorGridPainted()
void setMinorGridPainted(boolean flag)
flag
- the boolean valueboolean isInnerAxisPainted()
void setInnerAxisPainted(boolean flag)
flag
- the boolean valueboolean isInnerAxisLabelled()
void setInnerAxisLabelled(boolean flag)
flag
- the boolean valuejava.awt.Color getAxisColor()
void setAxisColor(java.awt.Color axisColor)
axisColor
- the colorjava.awt.Color getMajorGridColor()
void setMajorGridColor(java.awt.Color majorGridColor)
majorGridColor
- the colorjava.awt.Color getMinorGridColor()
void setMinorGridColor(java.awt.Color minorGridColor)
minorGridColor
- the colorjava.lang.String format(double v)
v
- the value to formatjava.lang.String formatXAxisLabel(double v)
v
- the value to formatjava.lang.String formatYAxisLabel(double v)
v
- the value to formatdouble getXAxisLabelRotation(double v)
v
- the locationdouble getYAxisLabelRotation(double v)
v
- the locationboolean isCategorical(GJAxisPanel.Orientation o)
o
- a GJAxisPanel.Orientation valuejava.util.ArrayList<Category> getCategoricalLabels(GJAxisPanel.Orientation o)
o
- a GJAxisPanel.Orientation valuejava.awt.event.MouseAdapter getAxisMouseHandler()
java.awt.geom.Rectangle2D getAxesBounds()
void setAxesBounds(java.awt.geom.Rectangle2D r)
r
- a Rectangle2Dvoid setMinorCountXHint(int minorCountX)
minorCountX
- number for the x-axisvoid setMinorCountYHint(int minorCountY)
minorCountY
- number for the y-axisvoid setMajorXHint()
double getMajorXHint()
void setMajorXHint(double hint)
hint
- the valuevoid setMajorYHint()
double getMajorYHint()
void setMajorYHint(double hint)
hint
- the valuefloat getAxisStrokeWeight()
void setAxisStrokeWeight(float axisStroke)
axisStroke
- the stroke thickness in pixelsfloat getMinorGridStrokeWeight()
void setMinorGridStrokeWeight(float gridStroke)
gridStroke
- the thickness in pixelsfloat getMajorGridStrokeWeight()
void setMajorGridStrokeWeight(float majorGridStrokeWeight)
majorGridStrokeWeight
- the thickness in pixels