org.rosuda.ibase.toolkit
Class PlotTextVector

java.lang.Object
  extended by org.rosuda.ibase.toolkit.PlotObject
      extended by org.rosuda.ibase.toolkit.PlotText
          extended by org.rosuda.ibase.toolkit.PlotTextVector

public class PlotTextVector
extends PlotText


Field Summary
 
Fields inherited from class org.rosuda.ibase.toolkit.PlotObject
CS_ABS, CS_REL, CS_VAR
 
Constructor Summary
PlotTextVector(PlotManager p)
          create a new PlotTextVector and add it to the specified PlotManager
PlotTextVector(PlotManager p, int coordX, int coordY)
          create a new PlotTextVector, add it to the specified PlotManager and set coordinate system types
 
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
 

Constructor Detail

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

Method Detail

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 point
Y - vertical coordinate of anchor point
aX - horizontal alignment
aY - vertical alignment
maxW - maximal width of displayed text
rotation - angle to rotate text
text - 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.