Class ScrollableView

All Implemented Interfaces:
org.rusherhack.core.interfaces.IClickable, org.rusherhack.core.interfaces.IHoverable, org.rusherhack.core.interfaces.INamed, org.rusherhack.core.interfaces.IScrollable, org.rusherhack.core.interfaces.ITickable, org.rusherhack.core.interfaces.ITypeable
Direct Known Subclasses:
ListView.ListItemView, RichTextView

public class ScrollableView extends SimpleView
  • Field Details

    • dragDeltaY

      public double dragDeltaY
  • Constructor Details

  • Method Details

    • renderViewContent

      public void renderViewContent(double mouseX, double mouseY)
      Overrides:
      renderViewContent in class SimpleView
    • shouldClampToBottom

      protected boolean shouldClampToBottom()
    • mouseScrolled

      public boolean mouseScrolled(double mouseX, double mouseY, double delta)
      Specified by:
      mouseScrolled in interface org.rusherhack.core.interfaces.IScrollable
      Overrides:
      mouseScrolled in class WindowView
    • mouseReleased

      public void mouseReleased(double mouseX, double mouseY, int button)
      Specified by:
      mouseReleased in interface org.rusherhack.core.interfaces.IClickable
      Overrides:
      mouseReleased in class WindowView
    • getTopOffset

      protected double getTopOffset()
      Overrides:
      getTopOffset in class SimpleView
    • isScrollable

      public boolean isScrollable()
    • setDraggingGrip

      public void setDraggingGrip(boolean dragging, double dragDeltaY)
    • getScrollbar

      public Scrollbar getScrollbar()
    • getContentHeight

      public double getContentHeight()
    • isDraggingScrollbarGrip

      public boolean isDraggingScrollbarGrip()