Documentation of 'org.jhotdraw.gui.fontchooser.FontChooserModel' Java class
FontChooserModel
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.TreeModel
    This 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
      boolean isEditable(javax.swing.tree.MutableTreeNode node)
      Returns true if node is editable by the user.
      • Methods inherited from interface javax.swing.tree.TreeModel

        addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
    • Method Detail

      • isEditable

        boolean isEditable(javax.swing.tree.MutableTreeNode node)
        Returns true if node is 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 node is editable

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.