Class PolyGlyph

java.lang.Object
ucar.unidata.ui.drawing.Glyph
ucar.unidata.ui.drawing.PolyGlyph
All Implemented Interfaces:
Cloneable

public class PolyGlyph extends Glyph
Class PolyGlyph
Author:
IDV development team
  • Constructor Details

    • PolyGlyph

      public PolyGlyph()
      _more_
  • Method Details

    • getCreateCommand

      public CanvasCommand getCreateCommand(DisplayCanvas canvas, AWTEvent event, int x, int y)
      _more_
      Overrides:
      getCreateCommand in class Glyph
      Parameters:
      canvas -
      event -
      x -
      y -
      Returns:
      _more_
    • clone

      protected Object clone() throws CloneNotSupportedException
      _more_
      Overrides:
      clone in class Glyph
      Returns:
      _more_
      Throws:
      CloneNotSupportedException
    • getBounds

      public Rectangle getBounds()
      _more_
      Specified by:
      getBounds in class Glyph
      Returns:
      _more_
    • setPoints

      public void setPoints(int[] p, int cnt)
      _more_
      Overrides:
      setPoints in class Glyph
      Parameters:
      p -
      cnt -
    • paintHighlight

      public void paintHighlight(Graphics g, DisplayCanvas c)
      _more_
      Overrides:
      paintHighlight in class Glyph
      Parameters:
      g -
      c -
    • paint

      public void paint(Graphics g, DisplayCanvas c)
      _more_
      Overrides:
      paint in class Glyph
      Parameters:
      g -
      c -
    • paintLines

      public void paintLines(Graphics g, DisplayCanvas c, int w, boolean fill)
      _more_
      Parameters:
      g -
      c -
      w -
      fill -
    • addPoint

      public void addPoint(int x, int y)
      _more_
      Parameters:
      x -
      y -
    • getPositionAttr

      public String getPositionAttr()
      _more_
      Returns:
      _more_
    • distance

      public double distance(int x, int y)
      _more_
      Specified by:
      distance in class Glyph
      Parameters:
      x -
      y -
      Returns:
      _more_
    • moveBy

      public void moveBy(int x, int y)
      _more_
      Specified by:
      moveBy in class Glyph
      Parameters:
      x -
      y -
    • moveTo

      public void moveTo(int x, int y)
      _more_
      Specified by:
      moveTo in class Glyph
      Parameters:
      x -
      y -
    • findMinIndex

      public int findMinIndex(int x, int y, double threshold)
      _more_
      Parameters:
      x -
      y -
      threshold -
      Returns:
      _more_
    • getStretchPoint

      public String getStretchPoint(int x, int y)
      _more_
      Overrides:
      getStretchPoint in class Glyph
      Parameters:
      x -
      y -
      Returns:
      _more_
    • stretchTo

      public String stretchTo(int x, int y, String pt, boolean correct)
      _more_
      Overrides:
      stretchTo in class Glyph
      Parameters:
      x -
      y -
      pt -
      correct -
      Returns:
      _more_
    • distance

      public static double distance(Point p1, Point p2)
      _more_
      Parameters:
      p1 -
      p2 -
      Returns:
      _more_
    • drawPolyLine

      public static void drawPolyLine(Graphics g, int[] xs, int[] ys)
      _more_
      Parameters:
      g -
      xs -
      ys -