Package snap.geom

Class ShapeBox

java.lang.Object
snap.geom.Shape
snap.geom.ShapeBox

public class ShapeBox extends Shape
A Shape implementation to present another shape in a given rect.
  • Constructor Details

    • ShapeBox

      public ShapeBox(Shape aShape, double aWidth, double aHeight)
      Creates a ShapeBox for given shape and rect.
  • Method Details

    • getShape

      public Shape getShape()
      Returns the ecapsulated shape.
    • contains

      public boolean contains(double aX, double aY)
      Returns whether shape contains x/y.
      Overrides:
      contains in class Shape
    • getPathIter

      public PathIter getPathIter(Transform aT)
      Returns a path iterator.
      Specified by:
      getPathIter in class Shape