public abstract class RoutingInteractionHandler extends Object implements DelegatingInteractionHandler
Modifier and Type | Field and Description |
---|---|
protected List |
handlers |
protected InteractionHandler |
interactionHandler |
Constructor and Description |
---|
RoutingInteractionHandler(String name)
Creates a DelegatingInteractionHandler.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
protected List handlers
protected InteractionHandler interactionHandler
public RoutingInteractionHandler(String name)
public void add(InteractionHandler h)
public void add(InteractionHandler h, boolean selected)
public void setInteractionHandler(InteractionHandler interactionHandler)
public InteractionHandler getInteractionHandler()
getInteractionHandler
in interface DelegatingInteractionHandler
public Icon getIcon(int size)
getIcon
in interface InteractionHandler
public boolean isSupportedBy(GraphicsPanel panel)
isSupportedBy
in interface InteractionHandler
public void changeCursor(RecordPlot plot, InputEvent event)
changeCursor
in interface InteractionHandler
public String getID()
getID
in interface WiredRegistry.ID
public void setRecord(RecordPlot plot, Object record)
setRecord
in interface InteractionHandler
public void setSelected(RecordPlot plot, boolean selected)
setSelected
in interface InteractionHandler
public void setSize(RecordPlot plot, int width, int height)
setSize
in interface InteractionHandler
public void reset(RecordPlot plot, InputEvent event)
reset
in interface InteractionHandler
public void mouseButton1Clicked(RecordPlot plot, MouseEvent event)
mouseButton1Clicked
in interface InteractionHandler
public void mouseButton1Pressed(RecordPlot plot, MouseEvent event)
mouseButton1Pressed
in interface InteractionHandler
public void mouseButton1Released(RecordPlot plot, MouseEvent event)
mouseButton1Released
in interface InteractionHandler
public void mouseButton1DragStarted(RecordPlot plot, MouseEvent event)
mouseButton1DragStarted
in interface InteractionHandler
public void mouseButton1Dragged(RecordPlot plot, MouseEvent event)
mouseButton1Dragged
in interface InteractionHandler
public void mouseButton1DragEnded(RecordPlot plot, MouseEvent event)
mouseButton1DragEnded
in interface InteractionHandler
public void mouseMoved(RecordPlot plot, MouseEvent event)
mouseMoved
in interface InteractionHandler
public void mouseEntered(RecordPlot plot, MouseEvent event)
mouseEntered
in interface InteractionHandler
public void mouseExited(RecordPlot plot, MouseEvent event)
mouseExited
in interface InteractionHandler
public void mouseWheelMoved(RecordPlot plot, MouseWheelEvent event)
mouseWheelMoved
in interface InteractionHandler
public boolean escKeyPressed(RecordPlot plot, KeyEvent event)
escKeyPressed
in interface InteractionHandler
public boolean escKeyReleased(RecordPlot plot, KeyEvent event)
escKeyReleased
in interface InteractionHandler
public boolean altKeyPressed(RecordPlot plot, KeyEvent event)
altKeyPressed
in interface InteractionHandler
public boolean altKeyReleased(RecordPlot plot, KeyEvent event)
altKeyReleased
in interface InteractionHandler
public boolean ctrlKeyPressed(RecordPlot plot, KeyEvent event)
ctrlKeyPressed
in interface InteractionHandler
public boolean ctrlKeyReleased(RecordPlot plot, KeyEvent event)
ctrlKeyReleased
in interface InteractionHandler
public boolean shiftKeyPressed(RecordPlot plot, KeyEvent event)
shiftKeyPressed
in interface InteractionHandler
public boolean shiftKeyReleased(RecordPlot plot, KeyEvent event)
shiftKeyReleased
in interface InteractionHandler
public boolean metaKeyPressed(RecordPlot plot, KeyEvent event)
metaKeyPressed
in interface InteractionHandler
public boolean metaKeyReleased(RecordPlot plot, KeyEvent event)
metaKeyReleased
in interface InteractionHandler
public boolean ctrlMetaKeyPressed(RecordPlot plot, KeyEvent event)
ctrlMetaKeyPressed
in interface InteractionHandler
public boolean ctrlMetaKeyReleased(RecordPlot plot, KeyEvent event)
ctrlMetaKeyReleased
in interface InteractionHandler
public boolean otherKeyPressed(RecordPlot plot, KeyEvent event)
otherKeyPressed
in interface InteractionHandler
public boolean otherKeyReleased(RecordPlot plot, KeyEvent event)
otherKeyReleased
in interface InteractionHandler
public boolean keyTyped(RecordPlot plot, KeyEvent event)
keyTyped
in interface InteractionHandler
public int getWidth()
getWidth
in interface InteractionHandler
public int getHeight()
getHeight
in interface InteractionHandler
public Component getControl()
public String getName()
getName
in interface InteractionHandler
public void save(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
save
in interface org.freehep.xml.io.XMLIO
public void restore(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
restore
in interface org.freehep.xml.io.XMLIO
Copyright © 1996-2014 FreeHEP. All Rights Reserved.