public class FontFamilyNode extends java.lang.Object implements javax.swing.tree.MutableTreeNode, java.lang.Comparable<FontFamilyNode>, java.lang.Cloneable
Constructor and Description |
---|
FontFamilyNode(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
add(FontFaceNode newChild) |
java.util.Enumeration |
children() |
FontFamilyNode |
clone() |
int |
compareTo(FontFamilyNode that) |
boolean |
equals(java.lang.Object o) |
java.util.List<FontFaceNode> |
faces() |
boolean |
getAllowsChildren() |
FontFaceNode |
getChildAt(int childIndex) |
int |
getChildCount() |
int |
getIndex(javax.swing.tree.TreeNode node) |
java.lang.String |
getName() |
javax.swing.tree.TreeNode |
getParent() |
int |
hashCode() |
void |
insert(javax.swing.tree.MutableTreeNode newChild,
int index) |
boolean |
isEditable() |
boolean |
isLeaf() |
boolean |
isNodeChild(javax.swing.tree.TreeNode aNode)
Returns true if
aNode is a child of this node. |
void |
remove(int childIndex) |
void |
remove(javax.swing.tree.MutableTreeNode aChild) |
void |
removeFromParent() |
void |
setParent(javax.swing.tree.MutableTreeNode newParent) |
void |
setUserObject(java.lang.Object object) |
java.lang.String |
toString() |
public int compareTo(FontFamilyNode that)
compareTo
in interface java.lang.Comparable<FontFamilyNode>
public FontFamilyNode clone()
clone
in class java.lang.Object
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public void add(FontFaceNode newChild)
public void insert(javax.swing.tree.MutableTreeNode newChild, int index)
insert
in interface javax.swing.tree.MutableTreeNode
public void remove(int childIndex)
remove
in interface javax.swing.tree.MutableTreeNode
public void remove(javax.swing.tree.MutableTreeNode aChild)
remove
in interface javax.swing.tree.MutableTreeNode
public void setUserObject(java.lang.Object object)
setUserObject
in interface javax.swing.tree.MutableTreeNode
public void removeFromParent()
removeFromParent
in interface javax.swing.tree.MutableTreeNode
public void setParent(javax.swing.tree.MutableTreeNode newParent)
setParent
in interface javax.swing.tree.MutableTreeNode
public FontFaceNode getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
public int getIndex(javax.swing.tree.TreeNode node)
getIndex
in interface javax.swing.tree.TreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
public java.util.Enumeration children()
children
in interface javax.swing.tree.TreeNode
public java.util.List<FontFaceNode> faces()
public boolean isNodeChild(javax.swing.tree.TreeNode aNode)
aNode
is a child of this node. If
aNode
is null, this method returns false.aNode
is a child of this node; false if
aNode
is nullpublic boolean isEditable()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object