|
|||||||||
| 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.Layers
public class Layers
The Layer display widget.
| Nested Class Summary |
|---|
| 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 Action |
_addLayerAction
An action for adding a new layer. |
protected Action |
_mergeVisibleLayersAction
An action for merging the visible layers. |
protected Action |
_removeLayerAction
An action for removing the currently selected layer. |
protected JTable |
_table
The table. |
protected com.threerings.tudey.tools.LayerTableModel |
_tableModel
The table model. |
| 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 | |
|---|---|
Layers(SceneEditor editor)
Create the layer display tool. |
|
| Method Summary | |
|---|---|
protected boolean |
confirm(String title,
String message)
Utility to ask for confirmation of a layer operation. |
List<Boolean> |
getLayerVisibility()
Get a view of layer visibility. |
int |
getSelectedLayer()
Get the currently selected layer. |
List<Integer> |
getVisibleLayers()
Get a list of the currently visible layers. |
protected void |
mergeVisible()
|
void |
sceneChanged(TudeySceneModel scene)
Notes that the scene object has changed. |
void |
selectLayer(boolean next)
Select the next or previous layer, and update the visibility of all layers so that only the selected layer (and the base (0)) are visible. |
void |
setSelectedLayer(int layer)
Set the currently selected layer. |
| Methods inherited from class com.threerings.tudey.tools.EditorTool |
|---|
activate, allowsMouseCamera, composite, deactivate, entryAdded, entryRemoved, entryUpdated, 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 JTable _table
protected com.threerings.tudey.tools.LayerTableModel _tableModel
protected Action _addLayerAction
protected Action _removeLayerAction
protected Action _mergeVisibleLayersAction
| Constructor Detail |
|---|
public Layers(SceneEditor editor)
| Method Detail |
|---|
public int getSelectedLayer()
public void setSelectedLayer(int layer)
public void selectLayer(boolean next)
public List<Boolean> getLayerVisibility()
public List<Integer> getVisibleLayers()
public void sceneChanged(TudeySceneModel scene)
EditorTool
sceneChanged in class EditorToolprotected void mergeVisible()
protected boolean confirm(String title,
String message)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||