All Known Implementing Classes:
Label, OutlinePane, PatternPane, PercentageBar, Slider, StaticPane, VariableBar

public interface Flippable
An interface for panes that can be flipped
Since:
0.3.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    flipHorizontally(boolean flipHorizontally)
    Sets whether this pane should flip its items horizontally
    void
    flipVertically(boolean flipVertically)
    Sets whether this pane should flip its items vertically
    boolean
    Gets whether this pane's items are flipped horizontally
    boolean
    Gets whether this pane's items are flipped vertically
    static void
    load(@NotNull Flippable flippable, @NotNull Element element)
    Loads all elements regarding a Flippable Pane for the specified pane.
  • Method Details

    • flipHorizontally

      void flipHorizontally(boolean flipHorizontally)
      Sets whether this pane should flip its items horizontally
      Parameters:
      flipHorizontally - whether the pane should flip items horizontally
      Since:
      0.3.0
    • flipVertically

      void flipVertically(boolean flipVertically)
      Sets whether this pane should flip its items vertically
      Parameters:
      flipVertically - whether the pane should flip items vertically
      Since:
      0.3.0
    • isFlippedHorizontally

      @Contract(pure=true) boolean isFlippedHorizontally()
      Gets whether this pane's items are flipped horizontally
      Returns:
      true if the items are flipped horizontally, false otherwise
      Since:
      0.3.0
    • isFlippedVertically

      @Contract(pure=true) boolean isFlippedVertically()
      Gets whether this pane's items are flipped vertically
      Returns:
      true if the items are flipped vertically, false otherwise
      Since:
      0.3.0
    • load

      static void load(@NotNull @NotNull Flippable flippable, @NotNull @NotNull Element element)
      Loads all elements regarding a Flippable Pane for the specified pane. The mutable pane contains the changes made.
      Parameters:
      flippable - the flippable pane's elements to be applied
      element - the XML element for this pane
      Since:
      0.3.0