de.javagl.swogl.interaction
Class ArcballCameraControl

java.lang.Object
  extended by de.javagl.swogl.interaction.ArcballCameraControl
All Implemented Interfaces:
de.javagl.swogl.interaction.Control

public class ArcballCameraControl
extends java.lang.Object
implements de.javagl.swogl.interaction.Control

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

ArcballCameraControl

public ArcballCameraControl(ArcballCameraBehavior arcballCameraBehavior)
Creates a new ArcballCameraControl that controls the given ArcballCameraBehavior

Parameters:
arcballCameraBehavior - The ArcballCameraBehavior
Method Detail

setRotatingCondition

public void setRotatingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> rotatingCondition)
Set the Condition which states whether mouse events should cause rotation

Parameters:
rotatingCondition - The rotatingCondition to set

setMovingCondition

public void setMovingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> movingCondition)
Set the Condition which states whether mouse events should cause moving

Parameters:
movingCondition - The movingCondition to set

setZoomingCondition

public void setZoomingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> zoomingCondition)
Set the Condition which states whether mouse events should cause zooming

Parameters:
zoomingCondition - The zoomingCondition to set

attachTo

public void attachTo(javax.swing.JComponent component)
Specified by:
attachTo in interface de.javagl.swogl.interaction.Control

detachFrom

public void detachFrom(javax.swing.JComponent component)
Specified by:
detachFrom in interface de.javagl.swogl.interaction.Control

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface de.javagl.swogl.interaction.Control

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface de.javagl.swogl.interaction.Control