Package org.jfree.ui

Class InsetsChooserPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class InsetsChooserPanel extends JPanel
A component for editing an instance of the Insets class.
Author:
Andrzej Porebski
See Also:
  • Field Details

  • Constructor Details

    • 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

      Returns a new Insets instance to match the values entered on the panel.
      Returns:
      The insets.
    • 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.
    • removeNotify

      public void removeNotify()
      Calls super removeNotify and removes all subcomponents from this panel.
      Overrides:
      removeNotify in class JComponent