|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsyn3d.base.ActiveNode
syn3d.nodes.ShapeNode
public class ShapeNode
Nested Class Summary | |
---|---|
protected class |
ShapeNode.PropertiesPanel
|
Field Summary | |
---|---|
protected static java.util.List |
actions
|
protected java.awt.Color |
baseColor
|
protected ColorMapper |
baseColorMapper
|
protected DataSource |
baseColorMapperSource
|
static int |
FILLED_MODE
|
static int |
FLAT_MODE
|
protected java.awt.Color |
highlightColor
|
protected ColorMapper |
highlightColorMapper
|
protected DataSource |
highlightColorMapperSource
|
protected boolean |
highlighted
|
protected static javax.swing.Icon |
icon
|
protected int |
mode
|
static int |
SHADING_MODE
|
static int |
WIREFRAME_MODE
|
Fields inherited from class syn3d.base.ActiveNode |
---|
children, name, parent |
Constructor Summary | |
---|---|
ShapeNode(ActiveNode parent)
|
Method Summary | |
---|---|
void |
configure()
|
void |
configure(boolean showName)
|
protected ShapeNode.PropertiesPanel |
createPanel(boolean showName)
Factory for subclasses |
void |
doAction(java.lang.Object action)
When the user has selected an action in the list return by getActions(), this method is called. |
void |
duplicateProperties(ShapeNode node)
Utility method to set this shape properties to the same as another shape |
java.util.List |
getActions()
Returns a list of possible actions on this node. |
java.awt.Color |
getBaseColor()
|
java.awt.Color |
getHighlightColor()
|
javax.swing.Icon |
getIcon()
Utility method to specialize the swing tree renderer. |
int |
getMode()
|
void |
highlight(boolean on,
java.lang.Object parameter)
Highlights this node some way. |
void |
notificationEnd(java.lang.Object referer)
This callback is called after all notifications were processed. |
void |
restoreReferences(ActiveNode parent)
Restore a serialized object to the scene graph. |
boolean |
saveChildren()
The scene/swing tree is serialized from root to leaf, hierachically. |
void |
setBaseColor(java.awt.Color baseColor)
|
void |
setHighlightColor(java.awt.Color highlightColor)
|
void |
setMode(int mode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SHADING_MODE
public static final int FLAT_MODE
public static final int FILLED_MODE
public static final int WIREFRAME_MODE
protected int mode
protected boolean highlighted
protected java.awt.Color baseColor
protected java.awt.Color highlightColor
protected transient DataSource baseColorMapperSource
protected transient DataSource highlightColorMapperSource
protected ColorMapper baseColorMapper
protected ColorMapper highlightColorMapper
protected static java.util.List actions
protected static javax.swing.Icon icon
Constructor Detail |
---|
public ShapeNode(ActiveNode parent)
Method Detail |
---|
public java.util.List getActions()
ActiveNode
getActions
in class ActiveNode
public void doAction(java.lang.Object action)
ActiveNode
doAction
in class ActiveNode
action
- An action previously declared by the getActions method.public void configure()
public void configure(boolean showName)
public javax.swing.Icon getIcon()
ActiveNode
getIcon
in class ActiveNode
public void highlight(boolean on, java.lang.Object parameter)
ActiveNode
highlight
in class ActiveNode
on
- true indicates to highlight this node, false to revert it back to normalparameter
- A parameter set from the 3D underlying model in case of a picking operation,
or the node's 3D object in case of a user selection in the Scene Treepublic void restoreReferences(ActiveNode parent)
ActiveNode
restoreReferences
in class ActiveNode
parent
- The active node to attach this one to once it has been successfully de-serializedpublic boolean saveChildren()
ActiveNode
saveChildren
in class ActiveNode
protected ShapeNode.PropertiesPanel createPanel(boolean showName)
public void notificationEnd(java.lang.Object referer)
EndNotificationListener
notificationEnd
in interface EndNotificationListener
public java.awt.Color getBaseColor()
public void setBaseColor(java.awt.Color baseColor)
baseColor
- The baseColor to set.public java.awt.Color getHighlightColor()
public void setHighlightColor(java.awt.Color highlightColor)
highlightColor
- The highlightColor to set.public int getMode()
public void setMode(int mode)
mode
- The mode to set.public void duplicateProperties(ShapeNode node)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |