|
GeoSoft API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object ZoomInteraction
A default zoom interaction. The following actions are implemented:
ZoomInteraction
class lacks the G
prefix as it is an optional extension to G and not part of the core
classes.
Constructor Summary | |
ZoomInteraction(GScene scene)
Create a new zoom interaction on the specifed scene. |
|
ZoomInteraction(GScene scene,
GStyle style)
Create a new zoom interaction on the specifed scene. |
Method Summary | |
void |
actionPerformed(ActionEvent event)
Timer trigged event when the user keeps pressing a mouse button. |
void |
event(GScene scene,
int eventType,
int x,
int y)
Handle mouse events in the canvas. |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZoomInteraction(GScene scene, GStyle style)
scene
- Scene of this zoom interaction.style
- Style for the interaction rubber bandGWindow.startInteraction(GInteraction)
,
GWindow.stopInteraction()
public ZoomInteraction(GScene scene)
scene
- Scene of this zoom interaction.GWindow.startInteraction(GInteraction)
,
GWindow.stopInteraction()
Method Detail |
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- Not used.public void event(GScene scene, int eventType, int x, int y)
event
in interface GInteraction
eventType
- Event trigging this method.scene
- The scene of this event.x
- X position of cursor.y
- Y position of cursor.GWindow
|
GeoSoft API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |