public class ClickToSetLocation extends AbstractInteractionHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
showHairLines |
| Constructor and Description |
|---|
ClickToSetLocation()
Create a click to set location handler.
|
ClickToSetLocation(boolean showHairLines)
Create a click to set location handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLocationListener(LocationListener listener)
Add a location listener, to be informed when the location changes.
|
void |
changeCursor(RecordPlot plot,
InputEvent event)
Called to allow the InteractionHandler to change the cursor.
|
String |
getDescription()
Returns a one line description.
|
Icon |
getIcon(int size)
Returns associated icon
|
boolean |
isSupportedBy(GraphicsPanel panel)
Returns true if this Interaction Handler is supported by this Graphics
Panel.
|
void |
mouseButton1Clicked(RecordPlot plot,
MouseEvent event)
Called when mouse button 1 is clicked
|
void |
mouseEntered(RecordPlot plot,
MouseEvent event)
Called when the mouse is entering the component
|
void |
mouseExited(RecordPlot plot,
MouseEvent event)
Called when the mouse is exitting the component
|
void |
mouseMoved(RecordPlot plot,
MouseEvent event)
Called when the mouse is moved
|
void |
removeLocationListener(LocationListener listener)
Remove a location listener.
|
void |
reset(RecordPlot plot,
InputEvent event)
Called to reset the interaction handler in its initial state.
|
void |
setLocation(RecordPlot plot,
int x,
int y,
boolean xIsFixed,
boolean yIsFixed)
Sets (and fixes) the location of this handler.
|
String |
toString() |
altKeyPressed, altKeyReleased, ctrlKeyPressed, ctrlKeyReleased, ctrlMetaKeyPressed, ctrlMetaKeyReleased, equals, escKeyPressed, escKeyReleased, getHeight, getID, getName, getWidth, hashCode, keyTyped, metaKeyPressed, metaKeyReleased, mouseButton1DragEnded, mouseButton1Dragged, mouseButton1DragStarted, mouseButton1Pressed, mouseButton1Released, mouseWheelMoved, otherKeyPressed, otherKeyReleased, restore, save, setRecord, setSelected, setSize, shiftKeyPressed, shiftKeyReleasedpublic ClickToSetLocation()
public ClickToSetLocation(boolean showHairLines)
public void addLocationListener(LocationListener listener)
public void removeLocationListener(LocationListener listener)
public Icon getIcon(int size)
InteractionHandlergetIcon in interface InteractionHandlergetIcon in class AbstractInteractionHandlerpublic String getDescription()
InteractionHandlerpublic boolean isSupportedBy(GraphicsPanel panel)
InteractionHandlerpublic void changeCursor(RecordPlot plot, InputEvent event)
InteractionHandlerpublic void reset(RecordPlot plot, InputEvent event)
InteractionHandlerreset in interface InteractionHandlerreset in class AbstractInteractionHandlerpublic void mouseMoved(RecordPlot plot, MouseEvent event)
InteractionHandlermouseMoved in interface InteractionHandlermouseMoved in class AbstractInteractionHandlerpublic void mouseEntered(RecordPlot plot, MouseEvent event)
InteractionHandlermouseEntered in interface InteractionHandlermouseEntered in class AbstractInteractionHandlerpublic void mouseExited(RecordPlot plot, MouseEvent event)
InteractionHandlermouseExited in interface InteractionHandlermouseExited in class AbstractInteractionHandlerpublic void mouseButton1Clicked(RecordPlot plot, MouseEvent event)
InteractionHandlermouseButton1Clicked in interface InteractionHandlermouseButton1Clicked in class AbstractInteractionHandlerpublic void setLocation(RecordPlot plot, int x, int y, boolean xIsFixed, boolean yIsFixed)
Copyright © 1996-2014 FreeHEP. All Rights Reserved.