Class VisualInteger

java.lang.Object
noaa.coastwatch.gui.visual.AbstractVisualObject
noaa.coastwatch.gui.visual.VisualInteger
All Implemented Interfaces:
ComponentProducer, VisualObject

public class VisualInteger extends AbstractVisualObject
The VisualInteger class represents an Integer as a spinner. When the spinner is modified, the Integer changes value.
Since:
3.1.7
Author:
Peter Hollemans
  • Constructor Details

    • VisualInteger

      public VisualInteger(Integer value)
      Creates a new visual Integer object using the specified Integer.
  • Method Details

    • getComponent

      public Component getComponent()
      Gets the button used to represent the Integer.
    • getValue

      public Object getValue()
      Gets the Integer value.
      Returns:
      the value that this visual object currently holds.
    • setRestrictions

      public void setRestrictions(Object restrict)
      Sets restrictions on the allowed integer values.
      Specified by:
      setRestrictions in interface VisualObject
      Overrides:
      setRestrictions in class AbstractVisualObject
      Parameters:
      restrict - the Integer[] restriction array as [min, max, step].
    • main

      public static void main(String[] argv)
      Tests this class.
      Parameters:
      argv - the array of command line parameters.