org.jgraph.graph

Class DefaultGraphCellEditor.DefaultTextField

Enclosing Class:
DefaultGraphCellEditor

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 Border
border
Border to use.

Constructor Summary

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

Method Summary

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

Field Details

border

protected Border border
Border to use.

Constructor Details

DefaultTextField

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

Method Details

getBorder

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

getFont

public Font getFont()

Copyright (C) 2001-2008 Gaudenz Alder. All rights reserved.