|
|||||||||
| 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
com.threerings.tudey.tools.GlobalEditor
public class GlobalEditor
The global editor tool.
| Nested Class Summary | |
|---|---|
protected static class |
GlobalEditor.EditableGlobals
Allows us to edit the scene's globals. |
| Nested classes/interfaces inherited from class com.threerings.tudey.tools.EditorTool |
|---|
EditorTool.DirectionalConstraint, EditorTool.Filter |
| 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 JFileChooser |
_chooser
The file chooser for importing and exporting global files. |
protected EditorPanel |
_epanel
The panel that we use to edit the scene's globals. |
protected HashIntMap<TudeySceneModel.GlobalEntry> |
_globals
The current set of globals. |
protected boolean |
_ignoreAdd
Notes that we should ignore an add/update/remove because we're the one effecting it. |
protected boolean |
_ignoreRemove
Notes that we should ignore an add/update/remove because we're the one effecting it. |
protected boolean |
_ignoreUpdate
Notes that we should ignore an add/update/remove because we're the one effecting it. |
protected static Preferences |
_prefs
The package preferences. |
| Fields inherited from class com.threerings.tudey.tools.EditorTool |
|---|
_button, _editor, _msgs, _pick, _scene, 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 | |
|---|---|
GlobalEditor(SceneEditor editor)
Creates the global editor tool. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
|
boolean |
allowsMouseCamera()
Determines whether this tool (currently) allows the user to move the camera using the mouse (without holding down the control key). |
void |
edit(TudeySceneModel.GlobalEntry entry)
Requests to start editing the specified entry. |
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 void |
exportGlobals()
Attempts to export the set of globals. |
protected void |
importGlobals()
Attempts to import a set of globals. |
void |
sceneChanged(TudeySceneModel scene)
Notes that the scene object has changed. |
void |
stateChanged(ChangeEvent event)
|
| Methods inherited from class com.threerings.tudey.tools.EditorTool |
|---|
activate, composite, deactivate, getMousePlaneIntersection, init, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setButton, tick |
| 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 EditorPanel _epanel
protected JFileChooser _chooser
protected HashIntMap<TudeySceneModel.GlobalEntry> _globals
protected boolean _ignoreAdd
protected boolean _ignoreUpdate
protected boolean _ignoreRemove
protected static Preferences _prefs
| Constructor Detail |
|---|
public GlobalEditor(SceneEditor editor)
| Method Detail |
|---|
public void edit(TudeySceneModel.GlobalEntry entry)
public void stateChanged(ChangeEvent event)
stateChanged in interface ChangeListenerpublic void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerpublic boolean allowsMouseCamera()
EditorTool
allowsMouseCamera in class EditorToolpublic void sceneChanged(TudeySceneModel scene)
EditorTool
sceneChanged in class EditorToolpublic void entryAdded(TudeySceneModel.Entry entry)
TudeySceneModel.Observer
entryAdded in interface TudeySceneModel.ObserverentryAdded in class EditorTool
public void entryUpdated(TudeySceneModel.Entry oentry,
TudeySceneModel.Entry nentry)
TudeySceneModel.Observer
entryUpdated in interface TudeySceneModel.ObserverentryUpdated in class EditorToolpublic void entryRemoved(TudeySceneModel.Entry oentry)
TudeySceneModel.Observer
entryRemoved in interface TudeySceneModel.ObserverentryRemoved in class EditorToolprotected void importGlobals()
protected void exportGlobals()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||