org.jgraph.graph

Class DefaultGraphCellEditor.DefaultTextField

public class DefaultGraphCellEditor.DefaultTextField extends JTextField

TextField used when no editor is supplied. This textfield locks into the border it is constructed with. It also prefers its parents font over its font. And if the renderer is not null and no font has been specified the preferred height is that of the renderer.
Field Summary
protected Borderborder
Border to use.
Constructor Summary
DefaultTextField(Border border)
Constructs a DefaultTreeCellEditor$DefaultTextField object.
Method Summary
BordergetBorder()
Overrides JComponent.getBorder to returns the current border.
FontgetFont()

Field Detail

border

protected Border border
Border to use.

Constructor Detail

DefaultTextField

public DefaultTextField(Border border)
Constructs a DefaultTreeCellEditor$DefaultTextField object.

Parameters: border a Border object

Method Detail

getBorder

public Border getBorder()
Overrides JComponent.getBorder to returns the current border.

getFont

public Font getFont()
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.