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 ResourceBundle
localizationResources
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

Insets
getInsetsValue()
Returns a new Insets instance to match the values entered on the panel.
void
removeNotify()
Calls super removeNotify and removes all subcomponents from this panel.
protected int
stringToInt(String value)
Converts a string representing an integer into its numerical value.

Field Details

localizationResources

protected static ResourceBundle localizationResources
The resourceBundle for the localization.

Constructor Details

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 Details

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.