OFC Charts 3.1


com.oxymel.ofc.charts
Class HorizontalAxis

java.lang.Object
  |
  +--com.oxymel.ofc.charts.Axis
        |
        +--com.oxymel.ofc.charts.HorizontalAxis
Direct Known Subclasses:
HorizontalCategoryAxis, HorizontalNumberAxis

public abstract class HorizontalAxis
extends com.oxymel.ofc.charts.Axis

This abstract class is the superclass of all classes managing horizontal axis


Field Summary
static int LABEL_POSITION_HORIZONTAL_RIGHT_CENTER
          The label is centered and written horizontally, it is located under the axis (horizontal axis) or on the right (vertical axis).
static int LABEL_POSITION_HORIZONTAL_TOP
          The label is written horizontally on top of the axis
static int LABEL_POSITION_VERTICAL_LEFT_CENTER
          The label is centered and written vertically, it is located on top of the axis (horizontal axis) or on the left (vertical axis).
static int LABEL_POSITION_VERTICAL_RIGHT_CENTER
          The label is centered and written vertically, it is located under the axis (horizontal axis) or on the right (vertical axis).
static int VALUES_WRITE_MODE_HORIZONTAL_ALIGN
          The graduations are written horizontally
static int VALUES_WRITE_MODE_VERTICAL_ALIGN
          The graduations are written vertically
 
Method Summary
 void disableArrow()
          Disables arrow.
 java.lang.String getLabel()
          Gets the axis label
 void setArrowLength(int arrowLength)
          Sets the length of the axis arrow.
 void setFullAxisColor(java.awt.Color color)
          Sets the color for the whole axis.
 void setLabelPosition(int labelPosition)
          Sets the label position
 void setVisible(boolean isVisible)
          Sets the axis visibility.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUES_WRITE_MODE_VERTICAL_ALIGN

public static final int VALUES_WRITE_MODE_VERTICAL_ALIGN
The graduations are written vertically

VALUES_WRITE_MODE_HORIZONTAL_ALIGN

public static final int VALUES_WRITE_MODE_HORIZONTAL_ALIGN
The graduations are written horizontally

LABEL_POSITION_HORIZONTAL_RIGHT_CENTER

public static final int LABEL_POSITION_HORIZONTAL_RIGHT_CENTER
The label is centered and written horizontally, it is located under the axis (horizontal axis) or on the right (vertical axis).

LABEL_POSITION_HORIZONTAL_TOP

public static final int LABEL_POSITION_HORIZONTAL_TOP
The label is written horizontally on top of the axis

LABEL_POSITION_VERTICAL_LEFT_CENTER

public static final int LABEL_POSITION_VERTICAL_LEFT_CENTER
The label is centered and written vertically, it is located on top of the axis (horizontal axis) or on the left (vertical axis).

LABEL_POSITION_VERTICAL_RIGHT_CENTER

public static final int LABEL_POSITION_VERTICAL_RIGHT_CENTER
The label is centered and written vertically, it is located under the axis (horizontal axis) or on the right (vertical axis).
Method Detail

setLabelPosition

public void setLabelPosition(int labelPosition)
Sets the label position
Overrides:
setLabelPosition in class com.oxymel.ofc.charts.Axis
Parameters:
labelPosition - labelPosition

getLabel

public java.lang.String getLabel()
Gets the axis label
Returns:
Axis Label

setArrowLength

public void setArrowLength(int arrowLength)
Sets the length of the axis arrow. The arrow length must be greater than or equal to zero.
Parameters:
arrowLength - arrow lenght to be sets

disableArrow

public void disableArrow()
Disables arrow. Axis is displayed as a line not terminated by an arrow.

setVisible

public void setVisible(boolean isVisible)
Sets the axis visibility.
Parameters:
isVisible - If true the axis is visible otherwise it is not.

setFullAxisColor

public void setFullAxisColor(java.awt.Color color)
Sets the color for the whole axis. It fixes the color for the axis itself, the graduations on the axis (graduation marks and associated texts)
Parameters:
color - the axis color

OFC Charts 3.1


Copyright © 2005 Oxymel SA All Rights Reserved.