|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.javagl.swogl.interaction.ArcballCameraControl
public class ArcballCameraControl
This class allows a default control over an
ArcballCameraBehavior
.
Constructor Summary | |
---|---|
ArcballCameraControl(ArcballCameraBehavior arcballCameraBehavior)
Creates a new ArcballCameraControl that controls the given ArcballCameraBehavior |
Method Summary | |
---|---|
void |
attachTo(javax.swing.JComponent component)
|
void |
detachFrom(javax.swing.JComponent component)
|
boolean |
isEnabled()
|
void |
setEnabled(boolean enabled)
|
void |
setMovingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> movingCondition)
Set the Condition which states whether mouse events should cause moving |
void |
setRotatingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> rotatingCondition)
Set the Condition which states whether mouse events should cause rotation |
void |
setZoomingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> zoomingCondition)
Set the Condition which states whether mouse events should cause zooming |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArcballCameraControl(ArcballCameraBehavior arcballCameraBehavior)
arcballCameraBehavior
- The ArcballCameraBehaviorMethod Detail |
---|
public void setRotatingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> rotatingCondition)
rotatingCondition
- The rotatingCondition to setpublic void setMovingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> movingCondition)
movingCondition
- The movingCondition to setpublic void setZoomingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> zoomingCondition)
zoomingCondition
- The zoomingCondition to setpublic void attachTo(javax.swing.JComponent component)
attachTo
in interface de.javagl.swogl.interaction.Control
public void detachFrom(javax.swing.JComponent component)
detachFrom
in interface de.javagl.swogl.interaction.Control
public void setEnabled(boolean enabled)
setEnabled
in interface de.javagl.swogl.interaction.Control
public boolean isEnabled()
isEnabled
in interface de.javagl.swogl.interaction.Control
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |