|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.javagl.swogl.interaction.SpaceInteractionControl
public class SpaceInteractionControl
Implementation of a Control
that allows manipulating
SwoglComponents
inside a SwoglContainer
.
It combines a RotatingBehavior
, a MovingBehavior
and a ScalingBehavior
and allows activating them based
on Conditions
that may be set for the incoming
mouse events.
Constructor Summary | |
---|---|
SpaceInteractionControl(de.javagl.swogl.SwoglContainer swoglContainer)
Creates a new space interaction control for the given SwoglContainer. |
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 for passing events to the MovingBehavior |
void |
setRotatingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> rotatingCondition)
Set the condition for passing events to the RotatingBehavior |
void |
setScalingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> scalingCondition)
Set the condition for passing events to the ScalingBehavior |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpaceInteractionControl(de.javagl.swogl.SwoglContainer swoglContainer)
swoglContainer
- The SwoglContainer to operate onMethod Detail |
---|
public void setRotatingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> rotatingCondition)
RotatingBehavior
rotatingCondition
- The rotating condition to setpublic void setScalingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> scalingCondition)
ScalingBehavior
scalingCondition
- The scaling condition to setpublic void setMovingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> movingCondition)
MovingBehavior
movingCondition
- The moving condition 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 |