com.ijchart.xychart.constant
Class TextPosition

java.lang.Object
  extended by com.ijchart.xychart.constant.TextPosition
All Implemented Interfaces:
java.io.Serializable

public final class TextPosition
extends java.lang.Object
implements java.io.Serializable

Title: IJChart

Description: a chart library for the Java(tm) platform.

Define the text position with IChartShape.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.
See Also:
Serialized Form

Field Summary
static TextPosition INSIDE
           The text in IChartShape internal.
static TextPosition NONE
           Text is not display.
static TextPosition OUTSIDE_BOTTOM
           The text in the bottom side of the external IChartShape.
static TextPosition OUTSIDE_LEFT
           The text in the left side of the external IChartShape.
static TextPosition OUTSIDE_RIGHT
           The text in the right side of the external IChartShape.
static TextPosition OUTSIDE_TOP
           The text in the top of the external IChartShape.
 
Method Summary
 boolean equals(java.lang.Object obj)
           Override equals method.
 TextPosition getOppositePosition(ChartOrientation orientation)
           Returns the opposite position.
 int hashCode()
           Returns a hash code value for the object.
 java.lang.String toString()
           Override toString method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final TextPosition NONE
Text is not display.


INSIDE

public static final TextPosition INSIDE
The text in IChartShape internal.


OUTSIDE_TOP

public static final TextPosition OUTSIDE_TOP
The text in the top of the external IChartShape.


OUTSIDE_BOTTOM

public static final TextPosition OUTSIDE_BOTTOM
The text in the bottom side of the external IChartShape.


OUTSIDE_LEFT

public static final TextPosition OUTSIDE_LEFT
The text in the left side of the external IChartShape.


OUTSIDE_RIGHT

public static final TextPosition OUTSIDE_RIGHT
The text in the right side of the external IChartShape.

Method Detail

getOppositePosition

public TextPosition getOppositePosition(ChartOrientation orientation)
Returns the opposite position.

Parameters:
orientation - ChartOrientation The chart orientation (null not permitted).
Returns:
TextPosition The new position (not null).

equals

public boolean equals(java.lang.Object obj)
Override equals method.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object
Returns:
boolean

toString

public java.lang.String toString()
Override toString method.

Overrides:
toString in class java.lang.Object
Returns:
String

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.