public class FontCollectionNode extends java.lang.Object implements javax.swing.tree.MutableTreeNode, java.lang.Comparable<FontCollectionNode>, java.lang.Cloneable
Constructor and Description |
---|
FontCollectionNode(java.lang.String name) |
FontCollectionNode(java.lang.String name,
java.util.ArrayList<FontFamilyNode> families) |
Modifier and Type | Method and Description |
---|---|
void |
add(FontFamilyNode newChild) |
void |
addAll(java.util.Collection<FontFamilyNode> c) |
java.util.Enumeration |
children() |
FontCollectionNode |
clone() |
int |
compareTo(FontCollectionNode that) |
java.util.List<FontFamilyNode> |
families() |
boolean |
getAllowsChildren() |
FontFamilyNode |
getChildAt(int childIndex) |
int |
getChildCount() |
int |
getIndex(javax.swing.tree.TreeNode node) |
java.lang.String |
getName() |
javax.swing.tree.MutableTreeNode |
getParent() |
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 |
setEditable(boolean newValue) |
void |
setParent(javax.swing.tree.MutableTreeNode newParent) |
void |
setUserObject(java.lang.Object object) |
java.lang.String |
toString() |
public FontCollectionNode(java.lang.String name)
public FontCollectionNode(java.lang.String name, java.util.ArrayList<FontFamilyNode> families)
public int compareTo(FontCollectionNode that)
compareTo
in interface java.lang.Comparable<FontCollectionNode>
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public FontCollectionNode clone()
clone
in class java.lang.Object
public void add(FontFamilyNode newChild)
public void addAll(java.util.Collection<FontFamilyNode> c)
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 FontFamilyNode getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public javax.swing.tree.MutableTreeNode 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<FontFamilyNode> families()
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 void setEditable(boolean newValue)