Class VisualString

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

public class VisualString extends AbstractVisualObject
The VisualString class represents a string as a text field. When the text field is modified, the string changes value.
Since:
3.1.7
Author:
Peter Hollemans
  • Constructor Details

    • VisualString

      public VisualString(String text)
      Creates a new visual string object using the specified String.
  • Method Details

    • getComponent

      public Component getComponent()
      Gets the field used to represent the string.
    • getValue

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

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