Class RectangleGlyph

java.lang.Object
ucar.unidata.ui.drawing.Glyph
ucar.unidata.ui.drawing.RectangleGlyph
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CompositeGlyph, ImageGlyph, MetSymbol

public class RectangleGlyph extends Glyph
Class RectangleGlyph
Author:
IDV development team
  • Field Details

  • Constructor Details

    • RectangleGlyph

      public RectangleGlyph()
      _more_
    • RectangleGlyph

      public RectangleGlyph(int x, int y)
      _more_
      Parameters:
      x -
      y -
    • RectangleGlyph

      public RectangleGlyph(String typeName, int x, int y, int w, int h)
      _more_
      Parameters:
      typeName -
      x -
      y -
      w -
      h -
  • Method Details

    • getEqualSides

      public boolean getEqualSides()
      _more_
      Returns:
      _more_
    • getSymetricReshape

      public boolean getSymetricReshape()
      _more_
      Returns:
      _more_
    • setType

      protected void setType(String typeName)
      _more_
      Parameters:
      typeName -
    • 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_
    • getBottom

      public int getBottom()
      _more_
      Returns:
      _more_
    • getTop

      public int getTop()
      _more_
      Returns:
      _more_
    • getLeft

      public int getLeft()
      _more_
      Returns:
      _more_
    • paint

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

      public static Point getPoint(String pt, Rectangle b)
      _more_
      Parameters:
      pt -
      b -
      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 -
    • setPoints

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

      public String getPositionAttr()
      _more_
      Returns:
      _more_
    • setAttr

      public void setAttr(String name, String value)
      _more_
      Overrides:
      setAttr in class Glyph
      Parameters:
      name -
      value -
    • setSize

      public void setSize(int w, int h)
      _more_
      Parameters:
      w -
      h -