public class ContentTransformer extends Object
Constructor and Description |
---|
ContentTransformer(DefaultUniverse univ,
BehaviorCallback callback)
Constructs a new ContentTransformer.
|
Modifier and Type | Method and Description |
---|---|
void |
init(Content c,
int x,
int y)
This method should be called to initiate a new transformation, e.g.
|
void |
rotate(MouseEvent e)
Rotate the selected Content suitably to the specified MouseEvent.
|
void |
translate(MouseEvent e)
Translate the selected Content suitably to the specified MouseEvent.
|
public ContentTransformer(DefaultUniverse univ, BehaviorCallback callback)
univ
- callback
- public void init(Content c, int x, int y)
c
- x
- y
- public void translate(MouseEvent e)
e
- public void rotate(MouseEvent e)
e
- Copyright © 2015–2021 Fiji. All rights reserved.