Class XSymbol

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

public class XSymbol extends jahuwaldt.plot.PlotSymbol
The XSymbol class draws an X for a point symbol.
Since:
3.2.3
Author:
Peter Hollemans
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an X plot symbol object that has a width of 8 pixels, is transparent and has a border color of black.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(Graphics gc, int x, int y)
    Draws a plot symbol consisting of a cross to the specified graphics context at the specified coordinates.

    Methods inherited from class jahuwaldt.plot.PlotSymbol

    clone, getBorderColor, getFillColor, getSize, setBorderColor, setFillColor, setSize

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XSymbol

      public XSymbol()
      Creates an X plot symbol object that has a width of 8 pixels, is transparent and has a border color of black.
  • Method Details

    • draw

      public void draw(Graphics gc, int x, int y)
      Draws a plot symbol consisting of a cross to the specified graphics context at the specified coordinates.
      Specified by:
      draw in class jahuwaldt.plot.PlotSymbol
      Parameters:
      gc - The graphics context where the symbol will be drawn.
      x - The horizontal position of the center of the symbol.
      y - The vertical position of the center of the symbol.