org.ujac.chart
Class ChartItemPosition

java.lang.Object
  extended by org.ujac.chart.ChartItemPosition

public class ChartItemPosition
extends Object

Name: ChartItemPosition
Description: A class defining chart item positions.

Author:
lauerc

Field Summary
static short ABSOLUTE
          Constant telling that the item should be placed at an absolutely defined position.
static short BOTTOM
          Constant telling that the item should be placed at the bottom side.
static short CENTER
          Constant telling that the item should be centered horizontally.
static short LEFT
          Constant telling that the item should be placed at the left side.
static short MIDDLE
          Constant telling that the item should be centered vertically.
static short RIGHT
          Constant telling that the item should be placed at the right side.
static short TOP
          Constant telling that the item should be placed at the top side.
 
Constructor Summary
ChartItemPosition(double x, double y)
          Constructs a ChartItemPosition instance with specific attributes.
ChartItemPosition(double x, short verticalPositionMode)
          Constructs a ChartItemPosition instance with specific attributes.
ChartItemPosition(short horizontalPositionMode, double y)
          Constructs a ChartItemPosition instance with specific attributes.
ChartItemPosition(short horizontalPositionMode, short verticalPositionMode)
          Constructs a ChartItemPosition instance with specific attributes.
 
Method Summary
 short getHorizontalPositionMode()
          Gets the horizontal position mode.
 short getVerticalPositionMode()
          Gets the vertical position mode.
 double getX()
          Gets the absolute horizontal position.
 double getY()
          Gets the absolute vertical position mode.
 void setHorizontalPositionMode(short horizontalPositionMode)
          Setter method for the the property horizontalPositionMode.
 void setVerticalPositionMode(short verticalPositionMode)
          Setter method for the the property verticalPositionMode.
 void setX(double x)
          Sets the absolute horizontal position.
 void setY(double y)
          Sets the absolute horizontal position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ABSOLUTE

public static final short ABSOLUTE
Constant telling that the item should be placed at an absolutely defined position.

See Also:
Constant Field Values

LEFT

public static final short LEFT
Constant telling that the item should be placed at the left side.

See Also:
Constant Field Values

CENTER

public static final short CENTER
Constant telling that the item should be centered horizontally.

See Also:
Constant Field Values

RIGHT

public static final short RIGHT
Constant telling that the item should be placed at the right side.

See Also:
Constant Field Values

TOP

public static final short TOP
Constant telling that the item should be placed at the top side.

See Also:
Constant Field Values

MIDDLE

public static final short MIDDLE
Constant telling that the item should be centered vertically.

See Also:
Constant Field Values

BOTTOM

public static final short BOTTOM
Constant telling that the item should be placed at the bottom side.

See Also:
Constant Field Values
Constructor Detail

ChartItemPosition

public ChartItemPosition(short horizontalPositionMode,
                         short verticalPositionMode)
Constructs a ChartItemPosition instance with specific attributes.

Parameters:
horizontalPositionMode - The hozizontal position mode.
verticalPositionMode - The vertical position mode.

ChartItemPosition

public ChartItemPosition(double x,
                         short verticalPositionMode)
Constructs a ChartItemPosition instance with specific attributes.

Parameters:
x - The hozizontal position.
verticalPositionMode - The vertical position mode.

ChartItemPosition

public ChartItemPosition(short horizontalPositionMode,
                         double y)
Constructs a ChartItemPosition instance with specific attributes.

Parameters:
horizontalPositionMode - The hozizontal position mode.
y - The vertical position mode.

ChartItemPosition

public ChartItemPosition(double x,
                         double y)
Constructs a ChartItemPosition instance with specific attributes.

Parameters:
x - The hozizontal position.
y - The vertical position mode.
Method Detail

getHorizontalPositionMode

public short getHorizontalPositionMode()
Gets the horizontal position mode.

Returns:
The horizontal position mode.

setHorizontalPositionMode

public void setHorizontalPositionMode(short horizontalPositionMode)
Setter method for the the property horizontalPositionMode.

Parameters:
horizontalPositionMode - The value to set for the property horizontalPositionMode.

getVerticalPositionMode

public short getVerticalPositionMode()
Gets the vertical position mode.

Returns:
The vertical position mode.

setVerticalPositionMode

public void setVerticalPositionMode(short verticalPositionMode)
Setter method for the the property verticalPositionMode.

Parameters:
verticalPositionMode - The value to set for the property verticalPositionMode.

getX

public double getX()
Gets the absolute horizontal position.

Returns:
The absolute horizontal position.

setX

public void setX(double x)
Sets the absolute horizontal position.

Parameters:
x - The absolute horizontal position.

getY

public double getY()
Gets the absolute vertical position mode.

Returns:
The absolute vertical position.

setY

public void setY(double y)
Sets the absolute horizontal position.

Parameters:
y - The absolute horizontal position.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.