daoc.editor.model.nodes
Class ControlNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended bydaoc.editor.model.nodes.ElementNode
          extended bydaoc.editor.model.nodes.ControlNode
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
Direct Known Subclasses:
ButtondefNode, ChatcontroldefNode, CheckboxdefNode, ComboboxdefNode, CompasscontroldefNode, DynamicimagedefNode, FullresizeimagedefNode, HorizontalresizeimagedefNode, IcondefNode, IconsetdefNode, ImageareadefNode, InvisiblebuttondefNode, LabeldefNode, ListboxdefNode, ScalarlabeldefNode, StaticfileimagedefNode, StatusbardefNode, StatusicondefNode, TextareadefNode, TreecontroldefNode, VerticalresizeimagedefNode, VerticalstatusbardefNode

public abstract class ControlNode
extends ElementNode

Abstract superclass for all control definitions. All controls share the following three attributes: controlId, position, and alignment.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Constructor Summary
ControlNode(org.w3c.dom.Element e)
           
ControlNode(java.lang.String name)
           
 
Method Summary
 void fillPreviewPopup(javax.swing.JPopupMenu popup)
           
 java.lang.String getAdapter()
           
 java.awt.Rectangle getAlignedBounds(int cwidth, int cheight, java.awt.Rectangle parent)
           
 AlignmentProperty getAlignment()
           
 java.lang.String getId()
           
 PointProperty getLocation()
           
 javax.swing.JPopupMenu getPopup()
           
 int getX()
           
 int getY()
           
 void init()
           
 void moveBy(int xinc, int yinc)
           
 void writeXML(java.io.Writer fout, int indent)
           
 
Methods inherited from class daoc.editor.model.nodes.ElementNode
add, addUpdateListener, compareTo, fireAddedEvent, fireRemoveEvent, fireUpdatedEvent, getEditors, getNodeList, getNodeName, insert, remove, removeUpdateListener, toString
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControlNode

public ControlNode(java.lang.String name)

ControlNode

public ControlNode(org.w3c.dom.Element e)
Method Detail

init

public void init()
Specified by:
init in class ElementNode

getX

public int getX()

getY

public int getY()

moveBy

public void moveBy(int xinc,
                   int yinc)

getLocation

public PointProperty getLocation()

getAlignment

public AlignmentProperty getAlignment()

getAlignedBounds

public java.awt.Rectangle getAlignedBounds(int cwidth,
                                           int cheight,
                                           java.awt.Rectangle parent)

getId

public java.lang.String getId()

getPopup

public javax.swing.JPopupMenu getPopup()
Overrides:
getPopup in class ElementNode

getAdapter

public java.lang.String getAdapter()

fillPreviewPopup

public void fillPreviewPopup(javax.swing.JPopupMenu popup)

writeXML

public void writeXML(java.io.Writer fout,
                     int indent)
              throws java.io.IOException
Specified by:
writeXML in class ElementNode
Throws:
java.io.IOException