Class CssInsets

java.lang.Object
org.jhotdraw8.draw.css.value.CssInsets

public class CssInsets extends Object
Represents a set of inside offsets specified as CssSizes.
Author:
Werner Randelshofer
  • Field Details

  • Constructor Details

    • CssInsets

      public CssInsets(CssSize top, CssSize right, CssSize bottom, CssSize left)
    • CssInsets

      public CssInsets(double top, double right, double bottom, double left, String units)
    • CssInsets

      public CssInsets()
  • Method Details

    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • getBottom

      public CssSize getBottom()
    • getConvertedValue

      public @NonNull javafx.geometry.Insets getConvertedValue(double width, double height)
      Converts values using the specified width and heights for converting percentages in the insets.
      Parameters:
      width - the width for computing percentages for left and right insets
      height - the height for computing percentages for top and bottom insets
      Returns:
      the converted value
    • getConvertedValue

      public @NonNull javafx.geometry.Insets getConvertedValue()
    • getConvertedValue

      public @NonNull javafx.geometry.Insets getConvertedValue(UnitConverter converter, @NonNull String units)
    • getConvertedValue

      public @NonNull javafx.geometry.Insets getConvertedValue(@NonNull UnitConverter converter)
    • getLeft

      public CssSize getLeft()
    • getRight

      public CssSize getRight()
    • getTop

      public CssSize getTop()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object