megamek.client.ui.AWT.boardview3d
Class MapViewTransform
java.lang.Object
megamek.client.ui.AWT.boardview3d.ViewTransform
megamek.client.ui.AWT.boardview3d.MapViewTransform
class MapViewTransform
- extends ViewTransform
FIXME: this doesn't yet work exactly as intended. Either rewrite using a
custom behaviour, or adapt PlayerViewTransform, which is now correct
(but ugly).
|
Field Summary |
(package private) TransformGroup |
wheel
|
|
Method Summary |
(package private) void |
center()
|
void |
centerOnHex(Coords c,
IHex hex)
|
(package private) java.lang.String |
getName()
|
(package private) Node |
makeViewRelative(Node obj,
double centerDistance)
|
(package private) void |
reset()
|
protected void |
setup()
Create transformation chain and mouse behaviors for a top-down map perspective |
void |
transformChanged(int type,
Transform3D trans)
|
(package private) void |
zoom(int steps)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wheel
TransformGroup wheel
MapViewTransform
MapViewTransform()
getName
java.lang.String getName()
- Specified by:
getName in class ViewTransform
centerOnHex
public void centerOnHex(Coords c,
IHex hex)
- Specified by:
centerOnHex in class ViewTransform
center
void center()
zoom
void zoom(int steps)
- Specified by:
zoom in class ViewTransform
reset
void reset()
- Specified by:
reset in class ViewTransform
setup
protected void setup()
- Create transformation chain and mouse behaviors for a top-down map perspective
- Specified by:
setup in class ViewTransform
makeViewRelative
Node makeViewRelative(Node obj,
double centerDistance)
- Specified by:
makeViewRelative in class ViewTransform
transformChanged
public void transformChanged(int type,
Transform3D trans)