JHotDraw 7.5.1

org.jhotdraw.gui.fontchooser
Interface FontChooserModel

All Superinterfaces:
javax.swing.tree.TreeModel
All Known Implementing Classes:
AbstractFontChooserModel, DefaultFontChooserModel, DefaultFontChooserModel.UIResource

@NotNull
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:

Author:
Werner Randelshofer  @version $Id: FontChooserModel.java 654 2010-06-25 13:27:08Z rawcoder $

Method Summary
 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

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.