Class UIGridLane

All Implemented Interfaces:
UIContainer, UIFocus, UIKeyFocus, UIMouseFocus, UITabFocus, LXLoopTask, Iterable<UIObject>
Direct Known Subclasses:
UIClipLane, UIRuler

public abstract class UIGridLane extends UILane
A lane that draws grid lines
  • Field Details

    • grid

      protected final LXClipEngine.Grid grid
    • hasGridLines

      protected boolean hasGridLines
    • hasGridLabels

      protected boolean hasGridLabels
    • clip

      protected LXClip clip
  • Constructor Details

    • UIGridLane

      public UIGridLane(UI ui, UITimeline timeline, float h)
  • Method Details

    • CursorOp

      protected Cursor.Operator CursorOp()
    • setClip

      public final void setClip(LXClip clip)
    • registerClip

      protected void registerClip(LXClip clip)
      Subclasses can override when clip is registered
      Parameters:
      clip - Registered clip
    • unregisterClip

      protected void unregisterClip(LXClip clip)
      Subclasses can override to handle clip being unregistered
      Parameters:
      clip - Unregistered clip
    • setAlternateGridColors

      protected void setAlternateGridColors(boolean alternateColors)
    • drawBackground

      protected void drawBackground(UI ui, VGraphics vg)
      Overrides:
      drawBackground in class UI2dComponent
    • drawSelection

      protected void drawSelection(UI ui, VGraphics vg)
    • getGridLineColor

      protected UIColor getGridLineColor(UI ui)
    • drawGridLabel

      protected void drawGridLabel(UI ui, VGraphics vg, float x, String label)
      Subclasses (such as Ruler) can override to customize the look of grid labels
    • shouldSnap

      protected boolean shouldSnap(MouseEvent mouseEvent)