Package com.studiojordanshaw.canvas2dmx
Class Canvas2DMX.RowLayoutConfig
java.lang.Object
com.studiojordanshaw.canvas2dmx.Canvas2DMX.RowLayoutConfig
- Enclosing class:
- Canvas2DMX
Configuration for row-based polygon LED fill using fixed LED counts per row.
Each row's LEDs are distributed across the polygon's width at that row.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatRow direction angle in degrees (0 = left-to-right)booleanPrimary fill direction: true=horizontal rows, false=vertical columnsint[]LEDs per row (top-to-bottom if startCorner is top, else bottom-to-top).floatMargin inset from polygon edges (pixels)floatRow/column spacing (pixels).booleanIf true, alternate row directions (serpentine/zigzag wiring)intStarting corner: 0=TopLeft, 1=TopRight, 2=BottomRight, 3=BottomLeft -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionangleDeg(float degrees) horizontal(boolean h) margin(float m) rowSpacing(float r) serpentine(boolean s) startAt(int corner)
-
Field Details
-
ledsPerRow
public int[] ledsPerRowLEDs per row (top-to-bottom if startCorner is top, else bottom-to-top). -
startCorner
public int startCornerStarting corner: 0=TopLeft, 1=TopRight, 2=BottomRight, 3=BottomLeft -
serpentine
public boolean serpentineIf true, alternate row directions (serpentine/zigzag wiring) -
horizontal
public boolean horizontalPrimary fill direction: true=horizontal rows, false=vertical columns -
rowSpacing
public float rowSpacingRow/column spacing (pixels). If <= 0, rows are evenly distributed. -
angleDeg
public float angleDegRow direction angle in degrees (0 = left-to-right) -
margin
public float marginMargin inset from polygon edges (pixels)
-
-
Constructor Details
-
RowLayoutConfig
public RowLayoutConfig(int[] ledsPerRow)
-
-
Method Details
-
startAt
-
serpentine
-
horizontal
-
rowSpacing
-
angleDeg
-
margin
-