Interface PlaceableShape<S extends Shape<S,​P>,​P extends TextParagraph<S,​P,​? extends TextRun>>

    • Method Detail

      • getSheet

        Sheet<S,​P> getSheet()
        Returns:
        the sheet this shape belongs to
      • getAnchor

        java.awt.geom.Rectangle2D getAnchor()
        Returns:
        the position of this shape within the drawing canvas. The coordinates are expressed in points
      • setAnchor

        void setAnchor​(java.awt.geom.Rectangle2D anchor)
        Parameters:
        anchor - the position of this shape within the drawing canvas. The coordinates are expressed in points
      • getRotation

        double getRotation()
        Rotation angle in degrees

        Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).

        Returns:
        rotation angle in degrees
      • setRotation

        void setRotation​(double theta)
        Rotate this shape.

        Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).

        Parameters:
        theta - the rotation angle in degrees.
      • setFlipHorizontal

        void setFlipHorizontal​(boolean flip)
        Parameters:
        flip - whether the shape is horizontally flipped
      • setFlipVertical

        void setFlipVertical​(boolean flip)
        Whether the shape is vertically flipped
        Parameters:
        flip - whether the shape is vertically flipped
      • getFlipHorizontal

        boolean getFlipHorizontal()
        Whether the shape is horizontally flipped
        Returns:
        whether the shape is horizontally flipped
      • getFlipVertical

        boolean getFlipVertical()
        Whether the shape is vertically flipped
        Returns:
        whether the shape is vertically flipped