Class VisualStroke

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

public class VisualStroke extends AbstractVisualObject
The VisualStroke class represents a line stroke as a button with an icon of the stoke pattern. When the button is pressed, a StrokeChooser appears that allows the user to select a new stroke.
Since:
3.1.7
Author:
Peter Hollemans
  • Constructor Details

    • VisualStroke

      public VisualStroke(Stroke stroke)
      Creates a new visual stroke object using the specified stroke.
  • Method Details

    • getComponent

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

      public Object getValue()
      Gets the stroke 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.