Class Offset

java.lang.Object
org.fxmisc.flowless.Offset

class Offset extends Object
Helper class: stores an offset value, which should either be offset from the start if fromStart is true or from the end if false.
  • Field Details

    • offset

      private final double offset
    • fromStart

      private final boolean fromStart
  • Constructor Details

    • Offset

      private Offset(double offset, boolean fromStart)
  • Method Details

    • fromStart

      public static Offset fromStart(double offset)
    • fromEnd

      public static Offset fromEnd(double offset)
    • getValue

      public double getValue()
    • isFromStart

      public boolean isFromStart()
    • isFromEnd

      public boolean isFromEnd()
    • add

      public Offset add(double delta)