|
ESPRESSCHART 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectquadbase.ChartAPI.TextString
public class TextString
TextString
This class provides a simple implementation of the quadbase.util.ITextString interface. This is used to specify floating text in a chart component.
ITextString,
IFloatingTextSet| Constructor Summary | |
|---|---|
TextString(java.lang.String text,
java.awt.Font font,
java.awt.Color color,
int angle,
float xratio,
float yratio)
Create a new TextString object |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object textString)
Returns true if the given object equals this one. |
int |
getAngle()
Get the text angle |
java.awt.Color |
getColor()
Get the text color |
java.awt.Font |
getFont()
Get the text font |
java.awt.Dimension |
getOffset()
Get the offset |
Position |
getPosition()
Get the text position |
java.lang.String |
getText()
Deprecated. |
java.lang.String |
getValue()
Get the text string value |
float |
getxratio()
Deprecated. |
float |
getyratio()
Deprecated. |
void |
setAngle(int angle)
Set the text angle in degree measured anticlockwise |
void |
setColor(java.awt.Color c)
Set the text color |
void |
setFont(java.awt.Font f)
Set the text font |
void |
setOffset(java.awt.Dimension offset)
Set the offset |
void |
setPosition(Position pos)
Set the text position |
void |
setText(java.lang.String s)
Deprecated. |
void |
setValue(java.lang.String value)
Set the text string value |
void |
setxratio(float xratio)
Deprecated. |
void |
setyratio(float yratio)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextString(java.lang.String text,
java.awt.Font font,
java.awt.Color color,
int angle,
float xratio,
float yratio)
text - text stringfont - font sizecolor - text colorangle - text angle in degrees, measured anticlockwisexratio - x postion of text ralative to window width, from 0 to 1yratio - y postion of text ralative to window width, from 0 to 1| Method Detail |
|---|
public java.lang.String getText()
public void setText(java.lang.String s)
public float getxratio()
public float getyratio()
public void setxratio(float xratio)
public void setyratio(float yratio)
public java.lang.String getValue()
getValue in interface ITextStringpublic void setValue(java.lang.String value)
setValue in interface ITextStringvalue - The string value to set.public java.awt.Dimension getOffset()
getOffset in interface ITextStringpublic void setOffset(java.awt.Dimension offset)
setOffset in interface ITextStringoffset - The Dimension object containing the horizontal and vertical
offsets.public Position getPosition()
getPosition in interface ITextStringpublic void setPosition(Position pos)
setPosition in interface ITextStringpos - The position object.
Note that the x and y values in the position object should be between 0 and 1.
Positionpublic final java.awt.Color getColor()
getColor in interface ITextpublic final void setColor(java.awt.Color c)
setColor in interface ITextc - The Color object.public final java.awt.Font getFont()
getFont in interface ITextpublic final void setFont(java.awt.Font f)
setFont in interface ITextf - The input Font object.public final int getAngle()
getAngle in interface ITextpublic final void setAngle(int angle)
setAngle in interface ITextangle - The angle, in degrees, of the text string.public final boolean equals(java.lang.Object textString)
ITextString
equals in interface ITextStringequals in class java.lang.ObjecttextString - an object of type ITextString
|
ESPRESSCHART 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||