org.rosuda.ibase.toolkit
Class PlotLine

java.lang.Object
  extended by org.rosuda.ibase.toolkit.PlotObject
      extended by org.rosuda.ibase.toolkit.PlotLine

public class PlotLine
extends PlotObject

PlotLine is a PlotObject implementing a singe line.


Field Summary
 
Fields inherited from class org.rosuda.ibase.toolkit.PlotObject
CS_ABS, CS_REL, CS_VAR
 
Constructor Summary
PlotLine(PlotManager p)
          creates a new line
 
Method Summary
 void draw(PoGraSS g)
          draw the line
 void set(double X1, double Y1, double X2, double Y2)
          set both points
 void set(int X1, int Y1, int X2, int Y2)
          set both points
 java.lang.String toString()
          textual info about the line
 
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

PlotLine

public PlotLine(PlotManager p)
creates a new line

Method Detail

set

public void set(int X1,
                int Y1,
                int X2,
                int Y2)
set both points


set

public void set(double X1,
                double Y1,
                double X2,
                double Y2)
set both points


draw

public void draw(PoGraSS g)
draw the line

Overrides:
draw in class PlotObject
Parameters:
g - graphics context for painting

toString

public java.lang.String toString()
textual info about the line

Overrides:
toString in class PlotObject