Package snap.view

Class RectView

All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable

public class RectView extends View
A View subclass for rects.
  • Field Details

  • Constructor Details

    • RectView

      public RectView()
      Constructor.
    • RectView

      public RectView(double aX, double aY, double aW, double aH)
      Creates a new RectView for given bounds.
  • Method Details

    • getRect

      public RoundRect getRect()
      Returns the rect.
    • getRadius

      public double getRadius()
      Returns the radius.
    • setRadius

      public void setRadius(double anAngle)
      Sets the radius.
    • getBoundsShape

      public Shape getBoundsShape()
      Returns the bounds path.
      Overrides:
      getBoundsShape in class View
    • setWidth

      public void setWidth(double aValue)
      Override to reset rect.
      Overrides:
      setWidth in class View
    • setHeight

      public void setHeight(double aValue)
      Override to reset rect.
      Overrides:
      setHeight in class View