|
||||||||||
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)
Attach this control to the given component |
void |
detachFrom(javax.swing.JComponent component)
Detach this control from the given component |
boolean |
isEnabled()
Returns whether this control is enabled |
void |
setEnabled(boolean enabled)
Enable or disable this control |
void |
setMovingCondition(Condition<java.awt.event.MouseEvent> movingCondition)
Set the Condition which states whether mouse events should cause moving |
void |
setRotatingCondition(Condition<java.awt.event.MouseEvent> rotatingCondition)
Set the Condition which states whether mouse events should cause rotation |
void |
setZoomingCondition(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(Condition<java.awt.event.MouseEvent> rotatingCondition)
rotatingCondition
- The rotatingCondition to setpublic void setMovingCondition(Condition<java.awt.event.MouseEvent> movingCondition)
movingCondition
- The movingCondition to setpublic void setZoomingCondition(Condition<java.awt.event.MouseEvent> zoomingCondition)
zoomingCondition
- The zoomingCondition to setpublic void attachTo(javax.swing.JComponent component)
Control
attachTo
in interface Control
component
- The component to attach topublic void detachFrom(javax.swing.JComponent component)
Control
detachFrom
in interface Control
component
- The component to detach frompublic void setEnabled(boolean enabled)
Control
setEnabled
in interface Control
enabled
- Whether this control is enabledpublic boolean isEnabled()
Control
isEnabled
in interface Control
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |