org.rosuda.ibase.toolkit
Class PlotTextVector
java.lang.Object
org.rosuda.ibase.toolkit.PlotObject
org.rosuda.ibase.toolkit.PlotText
org.rosuda.ibase.toolkit.PlotTextVector
public class PlotTextVector
- extends PlotText
Method Summary |
void |
add(double X,
double Y,
double aX,
double aY,
int maxW,
int maxH,
java.lang.String text,
double rotation)
Adds the specified values. |
void |
add(double X,
double Y,
double aX,
double aY,
int maxW,
java.lang.String text)
|
void |
add(double X,
double Y,
double aX,
double aY,
int maxW,
java.lang.String text,
double rotation)
|
void |
add(double X,
double Y,
double aX,
double aY,
java.lang.String text)
|
void |
add(double X,
double Y,
double aX,
double aY,
java.lang.String text,
double rotation)
|
void |
add(double X,
double Y,
java.lang.String text)
|
void |
finishAdd()
Puts the vectors' contents into arrays. |
Methods inherited from class org.rosuda.ibase.toolkit.PlotText |
clear, draw, getAX, getAY, getDX, getDY, getX, getY, recalc, set, set, set, set, setAX, setAX, setAY, setAY, toString |
Methods inherited from class org.rosuda.ibase.toolkit.PlotObject |
dispose, gerDrawColor, gerFillColor, getLayer, getXPos, getYPos, isVisible, setClip, setCoordinates, setCoordinates, setDrawColor, setFillColor, setLayer, setVisible, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PlotTextVector
public PlotTextVector(PlotManager p)
- create a new PlotTextVector and add it to the specified
PlotManager
PlotTextVector
public PlotTextVector(PlotManager p,
int coordX,
int coordY)
- create a new PlotTextVector, add it to the specified
PlotManager
and set coordinate system types
add
public void add(double X,
double Y,
double aX,
double aY,
int maxW,
int maxH,
java.lang.String text,
double rotation)
- Adds the specified values.
finishAdd()
needs to be called after the last
call of add!
The text specified by text
will be displayed at the point
(X
,Y
) aligned according to aX
and
aY
. If aX/aY is set to 0 the text's left/bottom border will be
placed at X/Y, if set to 1 the right/top border will be placed at X/Y.
If maxW is nonnegative and the text's width exceeds maxW it will be
abbreviated.
- Parameters:
X
- horizontal coordinate of anchor pointY
- vertical coordinate of anchor pointaX
- horizontal alignmentaY
- vertical alignmentmaxW
- maximal width of displayed textrotation
- angle to rotate texttext
- string to be displayed
add
public void add(double X,
double Y,
double aX,
double aY,
int maxW,
java.lang.String text,
double rotation)
add
public void add(double X,
double Y,
double aX,
double aY,
int maxW,
java.lang.String text)
add
public void add(double X,
double Y,
double aX,
double aY,
java.lang.String text)
add
public void add(double X,
double Y,
double aX,
double aY,
java.lang.String text,
double rotation)
add
public void add(double X,
double Y,
java.lang.String text)
finishAdd
public void finishAdd()
- Puts the vectors' contents into arrays. Needs to be called after all
text elements have been added.