|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.shape.AbstractChartShape
com.ijchart.xychart.shape.AbstractTextChartShape
public abstract class AbstractTextChartShape
Title: IJChart
Description: a chart library for the Java(tm) platform.
Abstract class for draw text ChartShape.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static TextDirection |
DEFAULT_TEXT_DIRECTION
The default text direction. |
static HorizontalAlignment |
DEFAULT_TEXT_HORIZONTAL_ALIGNMENT
The default text horizontal alignment. |
static TextPosition |
DEFAULT_TEXT_POSITION
The default text position. |
static VerticalAlignment |
DEFAULT_TEXT_VERTICAL_ALIGNMENT
The default text vertical alignment. |
Fields inherited from class com.ijchart.xychart.shape.AbstractChartShape |
---|
DEFAULT_DRAW_TYPE, DEFAULT_SHAPE_ID, DEFAULT_VISIBLE, transformedShape |
Constructor Summary | |
---|---|
protected |
AbstractTextChartShape()
No argument constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.lang.String |
getText()
Returns the text. |
TextDirection |
getTextDirection()
Returns the text direction. |
java.awt.Font |
getTextFont()
Returns the text font. |
HorizontalAlignment |
getTextHorizontalAlign()
Returns the text horizontal alignment. |
java.awt.Paint |
getTextPaint()
Get the ChartShape text Paint. |
TextPosition |
getTextPosition()
Returns the text position. |
VerticalAlignment |
getTextVerticalAlign()
Returns the text vertical alignment. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isDrawText()
Returns a flag that controls whether or not the text is drawn. |
void |
setDrawText(boolean flag)
Sets a flag that controls whether or not the text is drawn and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setText(java.lang.String text)
Sets the text,and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setTextDirection(TextDirection direction)
Sets the text direction and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setTextFont(java.awt.Font font)
Sets the text font and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setTextHorizontalAlign(HorizontalAlignment horizontalAlign)
Sets the text horizontal alignment and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setTextPaint(java.awt.Paint paint)
Sets the shape text Paint and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setTextPosition(TextPosition position)
Sets the text position and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setTextVerticalAlign(VerticalAlignment verticalAlign)
Sets the text vertical alignment and sends a ChartShapeChangeEvent to all registered listeners. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ijchart.xychart.shape.IChartShape |
---|
draw, getShapeType, getTopLeftPoint, translate |
Field Detail |
---|
public static final HorizontalAlignment DEFAULT_TEXT_HORIZONTAL_ALIGNMENT
public static final VerticalAlignment DEFAULT_TEXT_VERTICAL_ALIGNMENT
public static final TextPosition DEFAULT_TEXT_POSITION
public static final TextDirection DEFAULT_TEXT_DIRECTION
Constructor Detail |
---|
protected AbstractTextChartShape()
Method Detail |
---|
public void setTextPaint(java.awt.Paint paint)
ChartShapeChangeEvent
to all registered listeners.
paint
- Paint
The ChartShape text Paint(null not permitted).public java.awt.Paint getTextPaint()
public void setDrawText(boolean flag)
ChartShapeChangeEvent
to all registered listeners.
flag
- booleanpublic boolean isDrawText()
public java.lang.String getText()
public java.awt.Font getTextFont()
public HorizontalAlignment getTextHorizontalAlign()
public void setTextHorizontalAlign(HorizontalAlignment horizontalAlign)
ChartShapeChangeEvent
to all registered listeners.
horizontalAlign
- HorizontalAlignment
The text horizontal alignment (null not permitted).public VerticalAlignment getTextVerticalAlign()
public void setTextVerticalAlign(VerticalAlignment verticalAlign)
ChartShapeChangeEvent
to all registered listeners.
verticalAlign
- VerticalAlignment
The text vertical alignment (null not permitted).public void setText(java.lang.String text)
ChartShapeChangeEvent
to all registered listeners.
text
- String
The text (null permitted).public void setTextFont(java.awt.Font font)
ChartShapeChangeEvent
to all registered listeners.
font
- Font
The text font (null not permitted).public void setTextPosition(TextPosition position)
ChartShapeChangeEvent
to all registered listeners.
position
- TextPosition
The text position (null not permitted).public TextPosition getTextPosition()
public TextDirection getTextDirection()
public void setTextDirection(TextDirection direction)
ChartShapeChangeEvent
to all registered listeners.
direction
- TextDirection
The text direction (null not permitted).public int hashCode()
hashCode
in class AbstractChartShape
public boolean equals(java.lang.Object obj)
equals
in class AbstractChartShape
obj
-
the reference object with which to compare.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractChartShape
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable interface. Subclasses
that override the clone method can also
throw this exception to indicate that an instance cannot
be cloned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |