org.jfree.ui

Class InsetsTextField

public class InsetsTextField extends JTextField

A JTextField for displaying insets.

Author: Andrzej Porebski

Field Summary
protected static ResourceBundlelocalizationResources
The resourceBundle for the localization.
Constructor Summary
InsetsTextField(Insets insets)
Default constructor.
Method Summary
StringformatInsetsString(Insets insets)
Returns a formatted string describing provided insets.
voidsetInsets(Insets insets)
Sets the text of this text field to the formatted string describing provided insets.

Field Detail

localizationResources

protected static ResourceBundle localizationResources
The resourceBundle for the localization.

Constructor Detail

InsetsTextField

public InsetsTextField(Insets insets)
Default constructor. Initializes this text field with formatted string describing provided insets.

Parameters: insets the insets.

Method Detail

formatInsetsString

public String formatInsetsString(Insets insets)
Returns a formatted string describing provided insets.

Parameters: insets the insets.

Returns: the string.

setInsets

public void setInsets(Insets insets)
Sets the text of this text field to the formatted string describing provided insets. If insets is null, empty insets (0,0,0,0) are used.

Parameters: insets the insets.