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, shiftKeyReleased
public ClickToSetLocation()
public ClickToSetLocation(boolean showHairLines)
public void addLocationListener(LocationListener listener)
public void removeLocationListener(LocationListener listener)
public Icon getIcon(int size)
getIcon
in interface InteractionHandler
getIcon
in class AbstractInteractionHandler
public String getDescription()
public boolean isSupportedBy(GraphicsPanel panel)
public void changeCursor(RecordPlot plot, InputEvent event)
public void reset(RecordPlot plot, InputEvent event)
reset
in interface InteractionHandler
reset
in class AbstractInteractionHandler
public void mouseMoved(RecordPlot plot, MouseEvent event)
mouseMoved
in interface InteractionHandler
mouseMoved
in class AbstractInteractionHandler
public void mouseEntered(RecordPlot plot, MouseEvent event)
mouseEntered
in interface InteractionHandler
mouseEntered
in class AbstractInteractionHandler
public void mouseExited(RecordPlot plot, MouseEvent event)
mouseExited
in interface InteractionHandler
mouseExited
in class AbstractInteractionHandler
public void mouseButton1Clicked(RecordPlot plot, MouseEvent event)
mouseButton1Clicked
in interface InteractionHandler
mouseButton1Clicked
in class AbstractInteractionHandler
public void setLocation(RecordPlot plot, int x, int y, boolean xIsFixed, boolean yIsFixed)
Copyright © 1996-2014 FreeHEP. All Rights Reserved.