org.rosuda.klimt.plots
Class DevCanvas

java.lang.Object
  extended by org.rosuda.ibase.toolkit.PlotComponent
      extended by org.rosuda.ibase.toolkit.PGSCanvas
          extended by org.rosuda.klimt.plots.DevCanvas
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.print.Printable, java.util.EventListener, Commander, Dependent

public class DevCanvas
extends PGSCanvas
implements Dependent, java.awt.event.MouseListener, java.awt.event.KeyListener, java.awt.event.ActionListener, Commander

implementation of deviation plots

Version:
$Id: DevCanvas.java 1802 2005-12-05 06:14:39Z urbaneks $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.rosuda.ibase.toolkit.PGSCanvas
PGSCanvas.IDlgCL
 
Field Summary
 
Fields inherited from class org.rosuda.ibase.toolkit.PGSCanvas
cancel, desc, inProgress, intDlg, myFrame, pageFormat, paintLayerCounter, pm
 
Fields inherited from class org.rosuda.ibase.toolkit.PlotComponent
AWTGrDevID, GrDevID, JOGLGrDevID, layers, SWINGGrDevID
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
DevCanvas(java.awt.Frame f, SNode t, NodeMarker nm)
          creates a new deviance canvas
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          action listener methods reroutes all request to the commander interface
 java.awt.Dimension getMinimumSize()
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent ev)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent ev)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void Notifying(NotifyMsg msg, java.lang.Object o, java.util.Vector path)
          This method will be called when an even occured.
 void paintPoGraSS(PoGraSS g)
          abstract paint class to be implemented by any descendants.
 java.lang.Object run(java.lang.Object o, java.lang.String cmd)
          default handing of commands "exportPGS" and "exportPS".
 void setNode(SNode n)
           
 
Methods inherited from class org.rosuda.ibase.toolkit.PGSCanvas
beginPaint, dispose, endPaint, finalize, forcedFlush, getData, getFrame, getGlobalNotifier, getPlotManager, getTitle, getXAxis, getYAxis, nextLayer, paintLayer, print, setFrame, setOption, setOption, setOption, setOption, setOption, setOption, setTitle
 
Methods inherited from class org.rosuda.ibase.toolkit.PlotComponent
addKeyListener, addMouseListener, addMouseMotionListener, getBounds, getComponent, getHeight, getLocation, getParent, getSize, getWidth, newQueryPopup, newQueryPopup, paintLayer, repaint, setBackground, setCursor, setSize, setSize, setToolTipText, setUpdateRoot
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DevCanvas

public DevCanvas(java.awt.Frame f,
                 SNode t,
                 NodeMarker nm)
creates a new deviance canvas

Parameters:
f - frame owning this canvas or null if none
t - source tree root variable
Method Detail

setNode

public void setNode(SNode n)

Notifying

public void Notifying(NotifyMsg msg,
                      java.lang.Object o,
                      java.util.Vector path)
Description copied from interface: Dependent
This method will be called when an even occured. Currently SMarker and Axis use this method of notification. There's no generic class for implemention the notification-list yet.

Specified by:
Notifying in interface Dependent
Overrides:
Notifying in class PGSCanvas
o - Object that sent the notification. The actual content is implementation-dependent.
path - This parameter is null for non-cascaded notify - in that case further calls to NotifyAll are not allowed. Otherwise it contains a Vector with all objects notified so far during cascaded notify. To aviod cyclic notifications every instance must either reject cascaded notifications (i.e. no calls to NotifyAll at all) or check for occurence of itself in the chain before calling NotifyAll. The only valid recursive calls in Notifying are NotifyAll(path) and NotifyAll(..,path), because only these two pass the "path" parameter to avoid cyclic loops.

getMinimumSize

public java.awt.Dimension getMinimumSize()

paintPoGraSS

public void paintPoGraSS(PoGraSS g)
Description copied from class: PGSCanvas
abstract paint class to be implemented by any descendants.

Overrides:
paintPoGraSS in class PGSCanvas

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent ev)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent ev)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

run

public java.lang.Object run(java.lang.Object o,
                            java.lang.String cmd)
Description copied from class: PGSCanvas
default handing of commands "exportPGS" and "exportPS". Any descendant should call super.run(o,cmd) to retain this functionality

Specified by:
run in interface Commander
Overrides:
run in class PGSCanvas
Parameters:
o - origin of the command
cmd - command string
Returns:
any object, the actual interpretation is up to the calling object

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
action listener methods reroutes all request to the commander interface

Specified by:
actionPerformed in interface java.awt.event.ActionListener