Class SimpleSymbol

java.lang.Object
jahuwaldt.plot.PlotSymbol
noaa.coastwatch.render.PointFeatureSymbol
noaa.coastwatch.render.SimpleSymbol
All Implemented Interfaces:
Serializable, Cloneable

public class SimpleSymbol extends PointFeatureSymbol implements Cloneable
A SimpleSymbol is a PointFeatureSymbol that renders a PlotSymbol and optional text label.
Since:
3.2.0
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • SimpleSymbol

      public SimpleSymbol(jahuwaldt.plot.PlotSymbol symbol)
      Creates a new simple symbol with no text label.
      Parameters:
      symbol - the plot symbol to use for plotting.
    • SimpleSymbol

      public SimpleSymbol(jahuwaldt.plot.PlotSymbol symbol, int attribute, Font font)
      Creates a new simple symbol with a text label.
      Parameters:
      symbol - the plot symbol to use for plotting.
      attribute - the feature attribute index to use for deriving the text label.
      font - the font to use for the text label.
  • Method Details

    • clone

      public Object clone()
      Overrides:
      clone in class jahuwaldt.plot.PlotSymbol
    • getPlotSymbol

      public jahuwaldt.plot.PlotSymbol getPlotSymbol()
      Gets the plot symbol.
      Returns:
      the plot symbol.
    • setPlotSymbol

      public void setPlotSymbol(jahuwaldt.plot.PlotSymbol symbol)
      Sets the plot symbol.
      Parameters:
      symbol - the plot symbol.
    • getSize

      public int getSize()
      Overrides:
      getSize in class jahuwaldt.plot.PlotSymbol
    • setSize

      public void setSize(int size)
      Overrides:
      setSize in class jahuwaldt.plot.PlotSymbol
    • setBorderColor

      public void setBorderColor(Color color)
      Overrides:
      setBorderColor in class jahuwaldt.plot.PlotSymbol
    • getBorderColor

      public Color getBorderColor()
      Overrides:
      getBorderColor in class jahuwaldt.plot.PlotSymbol
    • setFillColor

      public void setFillColor(Color color)
      Overrides:
      setFillColor in class jahuwaldt.plot.PlotSymbol
    • getFillColor

      public Color getFillColor()
      Overrides:
      getFillColor in class jahuwaldt.plot.PlotSymbol
    • draw

      public void draw(Graphics gc, int x, int y)
      Specified by:
      draw in class jahuwaldt.plot.PlotSymbol
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • main

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