Class LineGlyph

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

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

    • LineGlyph

      public LineGlyph(int x1, int y1)
      _more_
      Parameters:
      x1 -
      y1 -
    • LineGlyph

      public LineGlyph(int x1, int y1, int x2, int y2)
      _more_
      Parameters:
      x1 -
      y1 -
      x2 -
      y2 -
  • Method Details

    • 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 -
    • paint

      public void paint(Graphics g, DisplayCanvas c)
      _more_
      Overrides:
      paint in class Glyph
      Parameters:
      g -
      c -
    • 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, Color color)
      _more_
      Parameters:
      g -
      c -
      color -
    • paintSelection

      public void paintSelection(Graphics g, DisplayCanvas c)
      _more_
      Overrides:
      paintSelection in class Glyph
      Parameters:
      g -
      c -
    • 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_
    • 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_
    • getStretchPoint

      public String getStretchPoint(int x, int y)
      _more_
      Overrides:
      getStretchPoint 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 -
    • ptSegDistSq

      public static double ptSegDistSq(double X1, double Y1, double X2, double Y2, double PX, double PY)
      _more_
      Parameters:
      X1 -
      Y1 -
      X2 -
      Y2 -
      PX -
      PY -
      Returns:
      _more_
    • ptSegDist

      public static double ptSegDist(double X1, double Y1, double X2, double Y2, double PX, double PY)
      _more_
      Parameters:
      X1 -
      Y1 -
      X2 -
      Y2 -
      PX -
      PY -
      Returns:
      _more_