org.jfree.ui

Class InsetsTextField


public class InsetsTextField
extends JTextField

A JTextField for displaying insets.
Author:
Andrzej Porebski

Field Summary

protected static ResourceBundle
localizationResources
The resourceBundle for the localization.

Constructor Summary

InsetsTextField(Insets insets)
Default constructor.

Method Summary

String
formatInsetsString(Insets insets)
Returns a formatted string describing provided insets.
void
setInsets(Insets insets)
Sets the text of this text field to the formatted string describing provided insets.

Field Details

localizationResources

protected static ResourceBundle localizationResources
The resourceBundle for the localization.

Constructor Details

InsetsTextField

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

Method Details

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.