public class RotateTranslateScaleBehaviour extends java.lang.Object implements IBehaviour, IMultiTouchEventListener
Constructor and Description |
---|
RotateTranslateScaleBehaviour() |
Modifier and Type | Method and Description |
---|---|
void |
cursorChanged(MultiTouchCursorEvent event)
Cursor is on the table, and moves, or rotates, or changes in some way.
|
void |
cursorClicked(MultiTouchCursorEvent event)
Cursor clicked.
|
void |
cursorPressed(MultiTouchCursorEvent event)
Cursor press arriving on the table.
|
void |
cursorReleased(MultiTouchCursorEvent event)
Cursor left the table.
|
boolean |
isActive()
Checks if is active.
|
boolean |
isRotationEnabled()
Checks if is rotation enabled.
|
boolean |
isScaleEnabled()
Checks if is scale enabled.
|
void |
objectAdded(MultiTouchObjectEvent event)
Object/fiducial is added to the table.
|
void |
objectChanged(MultiTouchObjectEvent event)
Object/fiducial is changed - position or rotation.
|
void |
objectRemoved(MultiTouchObjectEvent event)
Object/fiducial is removed from the table.
|
void |
setActive(boolean active)
Set whether a behaviour executes events
|
void |
setEventSource(IItem newSourceItem)
The item whose multi-touch event dispatcher will generate the events that
this behaviour will respond to.
|
void |
setItemActingOn(IItem item)
The item that the behaviour should operate on.
|
void |
setRotationEnabled(boolean b)
Sets the rotation enabled.
|
void |
setScaleEnabled(boolean b)
Sets the scale enabled.
|
void |
setScaleLimits(float minScale,
float maxScale)
Sets the scale limits.
|
void |
setScaleMaxLimit(float maxScale)
Sets the scale max limit.
|
void |
setScaleMinLimit(float minScale)
Sets the scale min limit.
|
void |
setStage(IStage stage)
Behaviours usually need to know about the stage.
|
public void cursorChanged(MultiTouchCursorEvent event)
IMultiTouchEventListener
cursorChanged
in interface IMultiTouchEventListener
public void cursorClicked(MultiTouchCursorEvent event)
IMultiTouchEventListener
cursorClicked
in interface IMultiTouchEventListener
public void cursorPressed(MultiTouchCursorEvent event)
IMultiTouchEventListener
cursorPressed
in interface IMultiTouchEventListener
public void cursorReleased(MultiTouchCursorEvent event)
IMultiTouchEventListener
cursorReleased
in interface IMultiTouchEventListener
public boolean isActive()
public boolean isRotationEnabled()
public boolean isScaleEnabled()
public void objectAdded(MultiTouchObjectEvent event)
IMultiTouchEventListener
objectAdded
in interface IMultiTouchEventListener
public void objectChanged(MultiTouchObjectEvent event)
IMultiTouchEventListener
objectChanged
in interface IMultiTouchEventListener
public void objectRemoved(MultiTouchObjectEvent event)
IMultiTouchEventListener
objectRemoved
in interface IMultiTouchEventListener
public void setActive(boolean active)
IBehaviour
setActive
in interface IBehaviour
public void setEventSource(IItem newSourceItem)
IBehaviour
setEventSource
in interface IBehaviour
public void setItemActingOn(IItem item)
IBehaviour
setItemActingOn
in interface IBehaviour
public void setRotationEnabled(boolean b)
b
- the new rotation enabledpublic void setScaleEnabled(boolean b)
b
- the new scale enabledpublic void setScaleLimits(float minScale, float maxScale)
minScale
- the min scalemaxScale
- the max scalepublic void setScaleMaxLimit(float maxScale)
maxScale
- the new scale max limitpublic void setScaleMinLimit(float minScale)
minScale
- the new scale min limitpublic void setStage(IStage stage)
IBehaviour
setStage
in interface IBehaviour