org.rosuda.klimt.plots
Class MCPCanvas
java.lang.Object
org.rosuda.ibase.toolkit.PlotComponent
org.rosuda.ibase.toolkit.PGSCanvas
org.rosuda.klimt.plots.MCPCanvas
- All Implemented Interfaces:
- ActionListener, KeyListener, MouseListener, MouseMotionListener, Printable, EventListener, Commander, Dependent
public class MCPCanvas
- extends PGSCanvas
- implements Dependent, MouseListener, MouseMotionListener, KeyListener, ActionListener, Commander
implementation of misclassification plot.
- Version:
- $Id: MCPCanvas.java,v 1.16 2005/12/05 06:14:39 urbaneks Exp $
| Methods inherited from class org.rosuda.ibase.toolkit.PGSCanvas |
beginPaint, 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 |
MCPCanvas
public MCPCanvas(Frame f,
TreeRegistry tman,
SMarker mark)
- creates a new MCP canvas
- Parameters:
f - frame owning this canvas or null if nonevar - source variablemark - associated marker
Notifying
public void Notifying(NotifyMsg msg,
Object o,
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 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(MouseEvent ev)
- Specified by:
mouseClicked in interface MouseListener
mousePressed
public void mousePressed(MouseEvent ev)
- Specified by:
mousePressed in interface MouseListener
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased in interface MouseListener
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEntered in interface MouseListener
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited in interface MouseListener
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged in interface MouseMotionListener
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMoved in interface MouseMotionListener
keyTyped
public void keyTyped(KeyEvent e)
- Specified by:
keyTyped in interface KeyListener
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressed in interface KeyListener
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleased in interface KeyListener
run
public Object run(Object o,
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 commandcmd - command string
- Returns:
- any object, the actual interpretation is up to the calling object
actionPerformed
public void actionPerformed(ActionEvent e)
- action listener methods reroutes all request to the commander interface
- Specified by:
actionPerformed in interface ActionListener