Interface Orientable

All Superinterfaces:
IFigure, PositionConstants
All Known Implementing Classes:
ArrowButton, PuristicScrollPane.PuristicScrollBar, ScrollBar, Triangle

public interface Orientable extends PositionConstants, IFigure
An interface for objects that can be either horizontally or vertically oriented.
  • Field Details

    • HORIZONTAL

      static final int HORIZONTAL
      A constant representing a horizontal orientation.
      See Also:
    • VERTICAL

      static final int VERTICAL
      A constant representing a vertical orientation.
      See Also:
  • Method Details

    • setOrientation

      void setOrientation(int orientation)
      Sets the orientation. Can be either HORIZONTAL or VERTICAL.
      Parameters:
      orientation - The orientation
    • setDirection

      void setDirection(int direction)
      Sets the direction the orientable figure will face. Can be one of many directional constants defined in PositionConstants.
      Parameters:
      direction - The direction