org.jhotdraw.gui.fontchooser
Interface FontChooserModel
-
- All Superinterfaces:
- javax.swing.tree.TreeModel
- All Known Implementing Classes:
- AbstractFontChooserModel, DefaultFontChooserModel, DefaultFontChooserModel.UIResource
public interface FontChooserModel extends javax.swing.tree.TreeModelThis interface defines the methods components like JFontChooser use to get a font from a font collection or a font family.FontChooserModel is a TreeModel with the following structure for the tree:
- The root node must be a MutableTreeNode.
- A child of the root node must be a FontCollectionNode.
- A child of a FontCollectionNode must be a FontFamilyNode.
- A child of a FontFamilyNode must be a FontTypefaceNode.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanisEditable(javax.swing.tree.MutableTreeNode node)Returnstrueifnodeis editable by the user.
-
-
-
Method Detail
-
isEditable
boolean isEditable(javax.swing.tree.MutableTreeNode node)
Returnstrueifnodeis editable by the user. This method returns true, if the node and all its parents are editable.- Parameters:
node- a node in the tree, obtained from this data source- Returns:
- true if
nodeis editable
-
-
DataMelt 3.0 © DataMelt by jWork.ORG