|
|||||||||
| 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.stage.tools.editor.SceneInfoPanel
public class SceneInfoPanel
The scene info panel presents the user with options to select the scene layer to edit, and whether to display tile coordinates and locations in the scene view.
| Nested Class Summary |
|---|
| 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 JComboBox |
_colorClasses
The scene type selector. |
protected JComboBox |
_colorIds
The scene type selector. |
protected EditorContext |
_ctx
The giver of life. |
protected DirectionButton |
_dirbutton
The object grip direction button. |
protected StageScene |
_scene
The scene we're controlling. |
protected JTextField |
_scenename
The scene name entry field. |
protected JComboBox |
_scenetype
The scene type selector. |
protected EditorScenePanel |
_svpanel
The scene panel, which we hackily repaint when default colors change. |
| 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 | |
|---|---|
SceneInfoPanel(EditorContext ctx,
EditorModel model,
EditorScenePanel svpanel)
Constructs the scene info panel. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
protected void |
configureColorIds(String cclass)
Show which color Ids are available for the currently selected colorization class, and select the selected one. |
protected JPanel |
createLabel(String label,
JComponent comp)
|
protected void |
recomputeColorClasses()
Prior to the color classes popup popping up, recompute the possible values. |
protected void |
setNewDefaultColor()
Called when a _colorIds color is selected. |
void |
setScene(StageScene scene)
Called when the scene in the editor changes. |
| 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 EditorContext _ctx
protected StageScene _scene
protected JTextField _scenename
protected JComboBox _scenetype
protected JComboBox _colorClasses
protected JComboBox _colorIds
protected EditorScenePanel _svpanel
protected DirectionButton _dirbutton
| Constructor Detail |
|---|
public SceneInfoPanel(EditorContext ctx,
EditorModel model,
EditorScenePanel svpanel)
| Method Detail |
|---|
protected JPanel createLabel(String label,
JComponent comp)
public void setScene(StageScene scene)
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerprotected void recomputeColorClasses()
protected void configureColorIds(String cclass)
protected void setNewDefaultColor()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||