Interface RectangularFigure

All Superinterfaces:
Figure, PropertyBean, StyleableBean, StyleablePropertyBean, TreeNode<Figure>
All Known Implementing Classes:
RectangleFigure, TextAreaFigure

public interface RectangularFigure extends Figure
Defines properties and default methods for figures which have a rectangular shape.
  • Field Details

  • Method Details

    • reshapeInLocal

      default void reshapeInLocal(CssSize x, CssSize y, CssSize width, CssSize height)
      Description copied from interface: Figure
      Attempts to change the local bounds of the figure.

      See {#link #reshapeInLocal(Transform)} for a description of this method.

      This method takes parameters as CssSizes. This can be used to avoid rounding errors when the figure is reshaped in non-pixel units.

      This method can forward a call to Figure.reshapeInLocal(Transform) using the following code:

      
       void reshapeInLocal(CssSize x, CssSize y, CssSize width, CssSize height) {
         Transform tx = Transforms.createReshapeTransform(getCssBoundsInLocal(), x, y, width, height);
         reshapeInLocal(tx);
       }
       
      Specified by:
      reshapeInLocal in interface Figure
      Parameters:
      x - desired x-position in parent coordinates
      y - desired y-position in parent coordinates
      width - desired width in parent coordinates, may be negative
      height - desired height in parent coordinates, may be negative
    • translateInLocal

      default void translateInLocal(CssPoint2D t)
      Description copied from interface: Figure
      Attempts to translate the local bounds of the figure.
      Specified by:
      translateInLocal in interface Figure
      Parameters:
      t - the translation in x and in y direction
    • getCssLayoutBounds

      default CssRectangle2D getCssLayoutBounds()
      Specified by:
      getCssLayoutBounds in interface Figure