OFC Charts 3.1


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).
 
Fields inherited from class com.oxymel.ofc.charts.HorizontalAxis
LABEL_POSITION_HORIZONTAL_RIGHT_CENTER, LABEL_POSITION_HORIZONTAL_TOP, LABEL_POSITION_VERTICAL_LEFT_CENTER, LABEL_POSITION_VERTICAL_RIGHT_CENTER, VALUES_WRITE_MODE_HORIZONTAL_ALIGN, VALUES_WRITE_MODE_VERTICAL_ALIGN
 
Constructor Summary
HorizontalNumberAxis(java.lang.String label)
          Constructor
 
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 com.oxymel.ofc.charts.HorizontalAxis
disableArrow, getLabel, setArrowLength, setFullAxisColor, setLabelPosition, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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).
Constructor Detail

HorizontalNumberAxis

public HorizontalNumberAxis(java.lang.String label)
Constructor
Parameters:
label - Axis Label
Method Detail

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 past
maxValue - max of value past

setAxisPosition

public void setAxisPosition(int axisPosition)
Sets the position of the X axis on the Y axis :
Parameters:
axisPosition - position of the axis

getAxisPosition

public int getAxisPosition()
Returns the position of the X axis on the Y 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 axis
    nbPixelsOfMove - the number of pixels. The sign specifies the direction of the offset

OFC Charts 3.1


Copyright © 2005 Oxymel SA All Rights Reserved.