org.rosuda.ibase.toolkit
Class PlotComponent

java.lang.Object
  extended by org.rosuda.ibase.toolkit.PlotComponent
Direct Known Subclasses:
PGSCanvas

public abstract class PlotComponent
extends java.lang.Object

PlotComponent units graphic-, mouse- and keyboard interactivity

Version:
$Id: PlotComponent.java 2312 2006-04-27 22:16:43Z urbaneks $

Field Summary
static int AWTGrDevID
           
 int GrDevID
           
static int JOGLGrDevID
           
 int layers
           
static int SWINGGrDevID
           
 
Constructor Summary
PlotComponent(int gd)
           
PlotComponent(int gd, int _layers)
           
 
Method Summary
 void addKeyListener(java.awt.event.KeyListener l)
           
 void addMouseListener(java.awt.event.MouseListener l)
           
 void addMouseMotionListener(java.awt.event.MouseMotionListener l)
           
protected abstract  void beginPaint(PoGraSS p)
           
protected abstract  void endPaint(PoGraSS p)
           
 java.awt.Rectangle getBounds()
           
 java.awt.Component getComponent()
           
 int getHeight()
           
 java.awt.Point getLocation()
           
 java.awt.Container getParent()
           
 java.awt.Dimension getSize()
           
 int getWidth()
           
 QueryPopup newQueryPopup(java.awt.Window win, SVarSet vs, java.lang.String ct)
           
 QueryPopup newQueryPopup(java.awt.Window win, SVarSet vs, java.lang.String ct, int w, int cid)
           
 void paintLayer(int layers)
           
abstract  void paintPoGraSS(PoGraSS p)
           
 void repaint()
           
 void setBackground(java.awt.Color c)
           
 void setCursor(java.awt.Cursor c)
           
 void setSize(java.awt.Dimension d)
           
 void setSize(int w, int h)
           
 void setToolTipText(java.lang.String s)
           
 void setUpdateRoot(int root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AWTGrDevID

public static final int AWTGrDevID
See Also:
Constant Field Values

SWINGGrDevID

public static final int SWINGGrDevID
See Also:
Constant Field Values

JOGLGrDevID

public static final int JOGLGrDevID
See Also:
Constant Field Values

GrDevID

public final int GrDevID

layers

public int layers
Constructor Detail

PlotComponent

public PlotComponent(int gd,
                     int _layers)
Parameters:
gd - 0 == AWT, 1 == SWING, 2 == JOGL
layers -

PlotComponent

public PlotComponent(int gd)
Method Detail

paintLayer

public void paintLayer(int layers)

paintPoGraSS

public abstract void paintPoGraSS(PoGraSS p)

beginPaint

protected abstract void beginPaint(PoGraSS p)

endPaint

protected abstract void endPaint(PoGraSS p)

repaint

public void repaint()

setUpdateRoot

public void setUpdateRoot(int root)

newQueryPopup

public QueryPopup newQueryPopup(java.awt.Window win,
                                SVarSet vs,
                                java.lang.String ct,
                                int w,
                                int cid)

newQueryPopup

public QueryPopup newQueryPopup(java.awt.Window win,
                                SVarSet vs,
                                java.lang.String ct)

setToolTipText

public void setToolTipText(java.lang.String s)

getComponent

public java.awt.Component getComponent()

getBounds

public java.awt.Rectangle getBounds()

setSize

public void setSize(int w,
                    int h)

getSize

public java.awt.Dimension getSize()

setBackground

public void setBackground(java.awt.Color c)

addMouseListener

public void addMouseListener(java.awt.event.MouseListener l)

addMouseMotionListener

public void addMouseMotionListener(java.awt.event.MouseMotionListener l)

addKeyListener

public void addKeyListener(java.awt.event.KeyListener l)

getLocation

public java.awt.Point getLocation()

setCursor

public void setCursor(java.awt.Cursor c)

setSize

public void setSize(java.awt.Dimension d)

getWidth

public int getWidth()

getHeight

public int getHeight()

getParent

public java.awt.Container getParent()