public class FontFaceNode extends java.lang.Object implements javax.swing.tree.MutableTreeNode, java.lang.Comparable<FontFaceNode>, java.lang.Cloneable
Constructor and Description |
---|
FontFaceNode(java.awt.Font typeface) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
beautifyName(java.lang.String name) |
java.util.Enumeration |
children() |
FontFaceNode |
clone() |
int |
compareTo(FontFaceNode that) |
boolean |
getAllowsChildren() |
javax.swing.tree.TreeNode |
getChildAt(int childIndex) |
int |
getChildCount() |
java.awt.Font |
getFont() |
int |
getIndex(javax.swing.tree.TreeNode node) |
java.lang.String |
getName() |
javax.swing.tree.TreeNode |
getParent() |
void |
insert(javax.swing.tree.MutableTreeNode child,
int index) |
boolean |
isEditable() |
boolean |
isLeaf() |
void |
remove(int index) |
void |
remove(javax.swing.tree.MutableTreeNode node) |
void |
removeFromParent() |
void |
setName(java.lang.String newValue) |
void |
setParent(javax.swing.tree.MutableTreeNode newParent) |
void |
setUserObject(java.lang.Object object) |
java.lang.String |
toString() |
protected java.lang.String beautifyName(java.lang.String name)
public void setName(java.lang.String newValue)
public java.lang.String getName()
public java.awt.Font getFont()
public java.lang.String toString()
toString
in class java.lang.Object
public void insert(javax.swing.tree.MutableTreeNode child, int index)
insert
in interface javax.swing.tree.MutableTreeNode
public void remove(int index)
remove
in interface javax.swing.tree.MutableTreeNode
public void remove(javax.swing.tree.MutableTreeNode node)
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 javax.swing.tree.TreeNode 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 int compareTo(FontFaceNode that)
compareTo
in interface java.lang.Comparable<FontFaceNode>
public FontFaceNode clone()
clone
in class java.lang.Object
public boolean isEditable()