org.jfree.ui

Class InsetsChooserPanel

public class InsetsChooserPanel extends JPanel

A component for editing an instance of the Insets class.

Author: Andrzej Porebski

Field Summary
protected static ResourceBundlelocalizationResources
The resourceBundle for the localization.
Constructor Summary
InsetsChooserPanel()
Creates a chooser panel that allows manipulation of Insets values.
InsetsChooserPanel(Insets current)
Creates a chooser panel that allows manipulation of Insets values.
Method Summary
InsetsgetInsetsValue()
Returns a new Insets instance to match the values entered on the panel.
voidremoveNotify()
Calls super removeNotify and removes all subcomponents from this panel.
protected intstringToInt(String value)
Converts a string representing an integer into its numerical value.

Field Detail

localizationResources

protected static ResourceBundle localizationResources
The resourceBundle for the localization.

Constructor Detail

InsetsChooserPanel

public InsetsChooserPanel()
Creates a chooser panel that allows manipulation of Insets values. The values are initialized to the empty insets (0,0,0,0).

InsetsChooserPanel

public InsetsChooserPanel(Insets current)
Creates a chooser panel that allows manipulation of Insets values. The values are initialized to the current values of provided insets.

Parameters: current the insets.

Method Detail

getInsetsValue

public Insets getInsetsValue()
Returns a new Insets instance to match the values entered on the panel.

Returns: The insets.

removeNotify

public void removeNotify()
Calls super removeNotify and removes all subcomponents from this panel.

stringToInt

protected int stringToInt(String value)
Converts a string representing an integer into its numerical value. If this string does not represent a valid integer value, value of 0 is returned.

Parameters: value the string.

Returns: the value.