hep.wired.services
Interface RecordPlot

All Superinterfaces:
org.freehep.swing.undo.UndoableEditProcessor
All Known Implementing Classes:
WiredPlot

public interface RecordPlot
extends org.freehep.swing.undo.UndoableEditProcessor

Defines a single event display plot.

Version:
$Id: RecordPlot.java 8598 2006-08-14 20:38:02Z duns $
Author:
Mark Donszelmann

Method Summary
 void addChangeListener(ChangeListener listener)
          Adds a change listener
 RecordPlot copy(String name, Object record, boolean supportUndo)
          Returns a copy of this plot, attached to the given objects, from the given parameters.
 void drawShape(Shape shape)
          Draws the shape for feedback/interactivity purposes
 GraphicsPanel getGraphicsPanel()
          Returns the associated Graphics Panel.
 int getHeight()
          Returns height of plot.
 InteractionHandler getInteractionHandler()
          Return the current interaction handler.
 String getName()
          Returns the name of the plot.
 Object getRecord()
          Returns the current Object.
 UndoableEditSupport getUndoableEditSupport()
          Returns the undo support object, or null if undo was not switched on.
 int getWidth()
          Returns width of plot.
 int getX()
          Returns X of plot.
 int getY()
          Returns Y of plot.
 void removeChangeListener(ChangeListener listener)
          Removbes a change listener
 void repaint()
          Repaint the plot
 boolean requestFocusInWindow()
          Requests focus in plot
 void setCursor(Cursor c)
          Sets the cursor of plot
 void setInteractionHandler(InteractionHandler interactionHandler)
          Sets the interaction handler on the plot.
 void setRecord(Object record)
          Sets the plot to use this Object.
 void setSelected(boolean selected)
          Called when this plot is selected/unselected.
 boolean supports(InteractionHandler interactionHandler)
          Returns true if this plot (and its projection) supports the given interactionHandler.
 
Methods inherited from interface org.freehep.swing.undo.UndoableEditProcessor
beginUpdate, endUpdate, postEdit, supports
 

Method Detail

addChangeListener

void addChangeListener(ChangeListener listener)
Adds a change listener


removeChangeListener

void removeChangeListener(ChangeListener listener)
Removbes a change listener


copy

RecordPlot copy(String name,
                Object record,
                boolean supportUndo)
Returns a copy of this plot, attached to the given objects, from the given parameters.


getUndoableEditSupport

UndoableEditSupport getUndoableEditSupport()
Returns the undo support object, or null if undo was not switched on.


getName

String getName()
Returns the name of the plot.


getGraphicsPanel

GraphicsPanel getGraphicsPanel()
Returns the associated Graphics Panel.


setSelected

void setSelected(boolean selected)
Called when this plot is selected/unselected.


supports

boolean supports(InteractionHandler interactionHandler)
Returns true if this plot (and its projection) supports the given interactionHandler.


setInteractionHandler

void setInteractionHandler(InteractionHandler interactionHandler)
Sets the interaction handler on the plot.


getInteractionHandler

InteractionHandler getInteractionHandler()
Return the current interaction handler.


setRecord

void setRecord(Object record)
Sets the plot to use this Object.


getRecord

Object getRecord()
Returns the current Object.


drawShape

void drawShape(Shape shape)
Draws the shape for feedback/interactivity purposes


getX

int getX()
Returns X of plot.


getY

int getY()
Returns Y of plot.


getWidth

int getWidth()
Returns width of plot.


getHeight

int getHeight()
Returns height of plot.


setCursor

void setCursor(Cursor c)
Sets the cursor of plot


requestFocusInWindow

boolean requestFocusInWindow()
Requests focus in plot


repaint

void repaint()
Repaint the plot



Copyright © 1996-2013 FreeHEP. All Rights Reserved.