org.rosuda.ibase.toolkit
Class PlotManager

java.lang.Object
  extended by org.rosuda.ibase.toolkit.PlotManager

public class PlotManager
extends java.lang.Object

Plot manager is a container of all plot objects to be painted on the associated PoGraSS canvas.


Constructor Summary
PlotManager(PGSCanvas cv)
          construct a new plot manager for the given plot
 
Method Summary
 void add(PlotObject po)
           
 int count()
           
 void dispose()
           
 void drawLayer(PoGraSS g, int layer, int layers)
          actual painting method
 PlotObject get(int id)
           
 int getCurrentID()
           
 PlotObject getCurrentObject()
           
 Axis getXAxis()
          get axis object of the plot - simply calls PGSCanvas.getXAxis
 Axis getYAxis()
          get axis object of the plot - simply calls PGSCanvas.getYAxis
 void rm(PlotObject po)
           
 void setCurrentID(int newID)
           
 int setCurrentObject(PlotObject po)
           
 void update()
           
 void update(int layer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotManager

public PlotManager(PGSCanvas cv)
construct a new plot manager for the given plot

Parameters:
cv - parent plot
Method Detail

getXAxis

public Axis getXAxis()
get axis object of the plot - simply calls PGSCanvas.getXAxis


getYAxis

public Axis getYAxis()
get axis object of the plot - simply calls PGSCanvas.getYAxis


drawLayer

public void drawLayer(PoGraSS g,
                      int layer,
                      int layers)
actual painting method


dispose

public void dispose()

add

public void add(PlotObject po)

rm

public void rm(PlotObject po)

getCurrentID

public int getCurrentID()

setCurrentID

public void setCurrentID(int newID)

getCurrentObject

public PlotObject getCurrentObject()

setCurrentObject

public int setCurrentObject(PlotObject po)

update

public void update(int layer)

update

public void update()

get

public PlotObject get(int id)

count

public int count()