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) |
String |
getDescription() |
Icon |
getIcon(int size) |
boolean |
isSupportedBy(GraphicsPanel panel) |
void |
mouseButton1Clicked(RecordPlot plot,
MouseEvent event) |
void |
mouseEntered(RecordPlot plot,
MouseEvent event) |
void |
mouseExited(RecordPlot plot,
MouseEvent event) |
void |
mouseMoved(RecordPlot plot,
MouseEvent event) |
void |
removeLocationListener(LocationListener listener)
Remove a location listener.
|
void |
reset(RecordPlot plot,
InputEvent event) |
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)
getIcon in interface InteractionHandlergetIcon in class AbstractInteractionHandlerpublic String getDescription()
public boolean isSupportedBy(GraphicsPanel panel)
public void changeCursor(RecordPlot plot, InputEvent event)
public void reset(RecordPlot plot, InputEvent event)
reset in interface InteractionHandlerreset in class AbstractInteractionHandlerpublic void mouseMoved(RecordPlot plot, MouseEvent event)
mouseMoved in interface InteractionHandlermouseMoved in class AbstractInteractionHandlerpublic void mouseEntered(RecordPlot plot, MouseEvent event)
mouseEntered in interface InteractionHandlermouseEntered in class AbstractInteractionHandlerpublic void mouseExited(RecordPlot plot, MouseEvent event)
mouseExited in interface InteractionHandlermouseExited in class AbstractInteractionHandlerpublic void mouseButton1Clicked(RecordPlot plot, MouseEvent event)
mouseButton1Clicked 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.