|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject org.freehep.swing.graphics.GraphicalSelectionEvent
GraphicalSelectionEvent is an event which is generated when an user makes a graphical selection. This event contains information about the source, the type of selection which was made, and the selection type.
Field Summary | |
protected int |
actionCode
An integer which describes what should be done with this selection. |
static int |
DEFAULT_MODE
This indicates that the component should switch to the default selection mode. |
static int |
NEXT_MODE
This indicates that the component should switch to the next selection mode. |
static int |
NO_ACTION
This action code indicates no action. |
static int |
PICK
This indicates that the selection should be used to select event objects. |
static int |
PICK_ADD
This indicates that the selection should be used to select event objects and that these objects should be selected in addition to any previously selected objects. |
static int |
PREVIOUS_MODE
This indicates that the component should switch to the previous selection mode. |
protected Object |
selection
The Object which describes the graphical selection which has been made. |
static int |
UNPICK
This indicates that the selection should be used to select event objects and that these objects should be deselected. |
static int |
ZOOM
This action code indicates that the view should be zoomed with the given parameters in the same view. |
static int |
ZOOM_NEW_VIEW
This action code indicates that the view should be cloned and the zoom applied to the clone. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
GraphicalSelectionEvent(Object source,
int actionCode,
Object selection,
AffineTransform transform)
The constructor requires the source object, the selection type, and the actual selection. |
Method Summary | |
int |
getActionCode()
Return the action code for this event. |
Object |
getSelection()
Get the Object which describes the graphical selection. |
AffineTransform |
getTransform()
Return an AffineTransform which is appropriate for this selection. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NO_ACTION
public static final int ZOOM
public static final int ZOOM_NEW_VIEW
public static final int PICK
public static final int PICK_ADD
public static final int UNPICK
public static final int NEXT_MODE
public static final int PREVIOUS_MODE
public static final int DEFAULT_MODE
protected int actionCode
protected Object selection
Constructor Detail |
public GraphicalSelectionEvent(Object source, int actionCode, Object selection, AffineTransform transform)
source
- the Object which generates this eventselection
- the selection itselfactionCode
- integer giving action to be donetransform
- an AffineTransform which will, for example,
zoom into a selected regionMethod Detail |
public Object getSelection()
public AffineTransform getTransform()
public int getActionCode()
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |