|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.threerings.tudey.tools.EditorTool
public abstract class EditorTool
A tool to use in the scene editor.
| Nested Class Summary | |
|---|---|
protected static class |
EditorTool.DirectionalConstraint
The directional constraints. |
protected static class |
EditorTool.Filter
Determines which kinds of entries we want to affect. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected JToggleButton |
_button
The tool's button. |
protected SceneEditor |
_editor
A reference to the creating editor. |
protected MessageBundle |
_msgs
The editor message bundle. |
protected Ray3D |
_pick
Used for picking. |
protected TudeySceneModel |
_scene
A reference to the scene. |
protected static float |
FINE_ROTATION_INCREMENT
The fine rotation increment. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
EditorTool(SceneEditor editor)
Creates the tool. |
|
| Method Summary | |
|---|---|
void |
activate()
Notes that the tool has been activated. |
boolean |
allowsMouseCamera()
Determines whether this tool (currently) allows the user to move the camera using the mouse (without holding down the control key). |
void |
composite()
Adds this object's Dependencys and Enqueueables to the compositor in
preparation for rendering. |
void |
deactivate()
Notes that the tool has been deactivated. |
void |
entryAdded(TudeySceneModel.Entry entry)
Notes that an entry has been added to the scene. |
void |
entryRemoved(TudeySceneModel.Entry oentry)
Notes that an entry has been removed from the scene. |
void |
entryUpdated(TudeySceneModel.Entry oentry,
TudeySceneModel.Entry nentry)
Notes that an entry has been updated within the scene. |
protected boolean |
getMousePlaneIntersection(Vector3f result)
Finds the point at which the mouse ray intersects the grid plane. |
void |
init()
Initializes the tool after the renderer has been initialized. |
void |
mouseClicked(MouseEvent event)
|
void |
mouseDragged(MouseEvent event)
|
void |
mouseEntered(MouseEvent event)
|
void |
mouseExited(MouseEvent event)
|
void |
mouseMoved(MouseEvent event)
|
void |
mousePressed(MouseEvent event)
|
void |
mouseReleased(MouseEvent event)
|
void |
mouseWheelMoved(MouseWheelEvent event)
|
void |
sceneChanged(TudeySceneModel scene)
Notes that the scene object has changed. |
void |
setButton(JToggleButton button)
Configures the tool with a reference to its button. |
void |
tick(float elapsed)
Updates the state of this object based on the elapsed time in seconds. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SceneEditor _editor
protected MessageBundle _msgs
protected JToggleButton _button
protected TudeySceneModel _scene
protected Ray3D _pick
protected static final float FINE_ROTATION_INCREMENT
| Constructor Detail |
|---|
public EditorTool(SceneEditor editor)
| Method Detail |
|---|
public void setButton(JToggleButton button)
public void init()
public void activate()
public void deactivate()
public void sceneChanged(TudeySceneModel scene)
public boolean allowsMouseCamera()
public void tick(float elapsed)
Tickable
tick in interface Tickablepublic void composite()
CompositableDependencys and Enqueueables to the compositor in
preparation for rendering.
composite in interface Compositablepublic void entryAdded(TudeySceneModel.Entry entry)
TudeySceneModel.Observer
entryAdded in interface TudeySceneModel.Observer
public void entryUpdated(TudeySceneModel.Entry oentry,
TudeySceneModel.Entry nentry)
TudeySceneModel.Observer
entryUpdated in interface TudeySceneModel.Observerpublic void entryRemoved(TudeySceneModel.Entry oentry)
TudeySceneModel.Observer
entryRemoved in interface TudeySceneModel.Observerpublic void mouseClicked(MouseEvent event)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent event)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent event)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent event)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent event)
mouseExited in interface MouseListenerpublic void mouseDragged(MouseEvent event)
mouseDragged in interface MouseMotionListenerpublic void mouseMoved(MouseEvent event)
mouseMoved in interface MouseMotionListenerpublic void mouseWheelMoved(MouseWheelEvent event)
mouseWheelMoved in interface MouseWheelListenerprotected boolean getMousePlaneIntersection(Vector3f result)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||