CubeTwister 2.0alpha142 2012-02-11

ch.randelshofer.cubetwister.doc
Class CubePartModel

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by ch.randelshofer.cubetwister.doc.EntityModel
          extended by ch.randelshofer.cubetwister.doc.CubePartModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.event.UndoableEditListener, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class CubePartModel
extends EntityModel

Model for the properties of a cube part.

Version:
1.0.1 2002-07-29 Removing an outline color which is also the fill color of the part did not fire a change event.
1.0 2001-10-12
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
static java.lang.String PROP_FILL_COLOR
           
static java.lang.String PROP_NAME
           
static java.lang.String PROP_OUTLINE_COLOR
           
static java.lang.String PROP_VISIBLE
           
 
Fields inherited from class ch.randelshofer.cubetwister.doc.EntityModel
PROP_CHILD_COUNT
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
CubePartModel()
          Creates new CubePartModel
 
Method Summary
 void basicSetFillColorModel(CubeColorModel value)
           
 void basicSetOutlineColorModel(CubeColorModel value)
           
 void basicSetVisible(boolean value)
           
 CubeColorModel getFillColorModel()
           
 java.lang.String getName()
          Gets the name property.
 CubeColorModel getOutlineColorModel()
           
 boolean isVisible()
           
 void removeNotify(EntityModel m)
           
 void setFillColorModel(CubeColorModel value)
           
 void setName(java.lang.String value)
          Sets the name property.
 void setOutlineColorModel(CubeColorModel value)
           
 void setVisible(boolean value)
           
 
Methods inherited from class ch.randelshofer.cubetwister.doc.EntityModel
addPropertyChangeListener, children, clone, dispose, fireNodeChanged, fireNodeStructureChanged, firePropertyChange, firePropertyChange, firePropertyChange, fireUndoableEditHappened, getDocument, hasPropertyListeners, insert, isDefaultCube, isDefaultNotation, isRemovable, remove, removePropertyChangeListener, setRemovable, toString, undoableEditHappened
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_NAME

public static final java.lang.String PROP_NAME
See Also:
Constant Field Values

PROP_VISIBLE

public static final java.lang.String PROP_VISIBLE
See Also:
Constant Field Values

PROP_FILL_COLOR

public static final java.lang.String PROP_FILL_COLOR
See Also:
Constant Field Values

PROP_OUTLINE_COLOR

public static final java.lang.String PROP_OUTLINE_COLOR
See Also:
Constant Field Values
Constructor Detail

CubePartModel

public CubePartModel()
Creates new CubePartModel

Method Detail

getName

public java.lang.String getName()
Gets the name property.


setName

public void setName(java.lang.String value)
Sets the name property.


isVisible

public boolean isVisible()

basicSetVisible

public void basicSetVisible(boolean value)

setVisible

public void setVisible(boolean value)

getFillColorModel

public CubeColorModel getFillColorModel()

basicSetFillColorModel

public void basicSetFillColorModel(CubeColorModel value)

setFillColorModel

public void setFillColorModel(CubeColorModel value)

getOutlineColorModel

public CubeColorModel getOutlineColorModel()

basicSetOutlineColorModel

public void basicSetOutlineColorModel(CubeColorModel value)

setOutlineColorModel

public void setOutlineColorModel(CubeColorModel value)

removeNotify

public void removeNotify(EntityModel m)

(c) Werner Randelshofer.
All rights reserved.