CubeTwister 2.0alpha142 2012-02-11

ch.randelshofer.cubetwister.doc
Class CubeColorModel

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

public class CubeColorModel
extends InfoModel
implements DOMStorable

Holds a single color value. CubeColorModel is a child of CubeColorsModel.

Version:
1.0 2001-08-02
Author:
werni
See Also:
Serialized Form

Field Summary
static java.lang.String PROP_COLOR
           
 
Fields inherited from class ch.randelshofer.cubetwister.doc.InfoModel
author, date, description, name, PROP_AUTHOR, PROP_DATE, PROP_DESCRIPTION, PROP_NAME
 
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
CubeColorModel()
          Creates new CubeColorModel
CubeColorModel(java.lang.String name, java.awt.Color color)
          Creates new CubeColorModel
 
Method Summary
 void basicSetColor(java.awt.Color value)
           
 java.awt.Color getColor()
           
 void read(DOMInput in)
           
 void setColor(java.awt.Color value)
           
 void write(DOMOutput out)
           
 
Methods inherited from class ch.randelshofer.cubetwister.doc.InfoModel
basicSetAuthor, basicSetDate, basicSetDescription, basicSetName, clone, dispose, getAuthor, getAuthorDocument, getDate, getDateDocument, getDescription, getDescriptionDocument, getName, getNameDocument, getUserObject, setAuthor, setDate, setDescription, setName, setUserObject, toString, undoableEditHappened
 
Methods inherited from class ch.randelshofer.cubetwister.doc.EntityModel
addPropertyChangeListener, children, fireNodeChanged, fireNodeStructureChanged, firePropertyChange, firePropertyChange, firePropertyChange, fireUndoableEditHappened, getDocument, hasPropertyListeners, insert, isDefaultCube, isDefaultNotation, isRemovable, remove, removePropertyChangeListener, setRemovable
 
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, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_COLOR

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

CubeColorModel

public CubeColorModel()
Creates new CubeColorModel


CubeColorModel

public CubeColorModel(java.lang.String name,
                      java.awt.Color color)
Creates new CubeColorModel

Method Detail

getColor

public java.awt.Color getColor()

setColor

public void setColor(java.awt.Color value)

basicSetColor

public void basicSetColor(java.awt.Color value)

read

public void read(DOMInput in)
Specified by:
read in interface DOMStorable

write

public void write(DOMOutput out)
Specified by:
write in interface DOMStorable

(c) Werner Randelshofer.
All rights reserved.