com.oxymel.ofc.charts
Class HorizontalNumberAxis
java.lang.Object
|
+--com.oxymel.ofc.charts.Axis
|
+--com.oxymel.ofc.charts.HorizontalAxis
|
+--com.oxymel.ofc.charts.HorizontalNumberAxis
- public class HorizontalNumberAxis
- extends HorizontalAxis
This class manages the horizontal axis with graduations
Field Summary |
static int |
AXIS_POSITION_BOTTOM
Axis position "Bottom" indicates that HorizontalNumberAxis is
positioned at the "lowest point" of the VerticalNumberAxis (value=1). |
static int |
AXIS_POSITION_CENTER
Axis position "Center" indicates that HorizontalNumberAxis is
positioned at the "0" of the VerticalNumberAxis (value=0). |
static int |
AXIS_POSITION_TOP
Axis position "top" indicates that HorizontalNumberAxis is
positioned at the "highest point" of the VerticalNumberAxis (value=2). |
Method Summary |
int |
getAxisPosition()
Returns the position of the X axis on the Y axis : |
void |
moveValueWithNbPixels(int valueToMove,
int nbPixelsOfMove)
Sets which value to offset, the number of pixels and the direction. |
void |
setAngleToWriteValues(int angleToWriteValues)
Sets the angle used to write values for the X axis (must be between 0° and 90°). |
void |
setAxisPosition(int axisPosition)
Sets the position of the X axis on the Y axis :
0 : Center, default value 1 : Bottom 2 : Top |
void |
setIntermediaryGapIndicatorVisible(boolean isIntermediaryGapIndicatorVisible)
Sets intermediary gap mark visibility |
void |
setMinMaxValue(int minValue,
int maxValue)
Sets the minimum and maximum values on the axis.
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AXIS_POSITION_CENTER
public static int AXIS_POSITION_CENTER
- Axis position "Center" indicates that
HorizontalNumberAxis
is
positioned at the "0" of the VerticalNumberAxis
(value=0).
AXIS_POSITION_BOTTOM
public static int AXIS_POSITION_BOTTOM
- Axis position "Bottom" indicates that
HorizontalNumberAxis
is
positioned at the "lowest point" of the VerticalNumberAxis
(value=1).
AXIS_POSITION_TOP
public static int AXIS_POSITION_TOP
- Axis position "top" indicates that
HorizontalNumberAxis
is
positioned at the "highest point" of the VerticalNumberAxis
(value=2).
HorizontalNumberAxis
public HorizontalNumberAxis(java.lang.String label)
- Constructor
- Parameters:
label
- Axis Label
setIntermediaryGapIndicatorVisible
public void setIntermediaryGapIndicatorVisible(boolean isIntermediaryGapIndicatorVisible)
- Sets intermediary gap mark visibility
- Parameters:
isIntermediaryGapIndicatorVisible
- If true intermediary gap mark is visible otherwise it is not
setMinMaxValue
public void setMinMaxValue(int minValue,
int maxValue)
- Sets the minimum and maximum values on the axis.
This feature can be used to explicitly set the minimum value and
maximum value, by default they are automatically computed according
to the data given as input to draw the graphic.
Fixing these values externally may be useful to give the same look to
several graphics.
- Parameters:
minValue
- min of value pastmaxValue
- max of value past
setAxisPosition
public void setAxisPosition(int axisPosition)
- Sets the position of the X axis on the Y axis :
- 0 : Center, default value
- 1 : Bottom
- 2 : Top
- Parameters:
axisPosition
- position of the axis
getAxisPosition
public int getAxisPosition()
- Returns the position of the X axis on the Y axis :
- Parameters:
axisPosition
- position of the axis
setAngleToWriteValues
public void setAngleToWriteValues(int angleToWriteValues)
- Sets the angle used to write values for the X axis (must be between 0° and 90°).
- Parameters:
angleToWriteValues
- value of angle used to write values
moveValueWithNbPixels
public void moveValueWithNbPixels(int valueToMove,
int nbPixelsOfMove)
- Sets which value to offset, the number of pixels and the direction.
- Parameters:
valueToMove
- value to offset. Can be :
-
NumberAxis.MOVE_ORIGIN_VALUE
: to offset the origin of the axis
-
NumberAxis.MOVE_FIRST_VALUE
: to offset the lowest value on the axis
-
NumberAxis.MOVE_LAST_VALUE
: to offset the highest value on the axisnbPixelsOfMove
- the number of pixels. The sign specifies the direction of the offset
Copyright © 2005 Oxymel SA All Rights Reserved.