public class MatrixPanelBuilder<B extends MatrixPanelBuilder<B>> extends javafx.scene.control.ControlBuilder<B> implements javafx.util.Builder<MatrixPanel>
Constructor and Description |
---|
MatrixPanelBuilder() |
Modifier and Type | Method and Description |
---|---|
MatrixPanel |
build() |
MatrixPanelBuilder |
contents(Content[] CONTENT_ARRAY)
Set the Array of Contents
|
MatrixPanelBuilder |
contents(java.util.List<Content> CONTENTS)
Set the List of Contents
|
static MatrixPanelBuilder |
create() |
MatrixPanelBuilder |
frameBaseColor(javafx.scene.paint.Color FRAME_BASE_COLOR)
Set the frame base color
|
MatrixPanelBuilder |
frameDesign(Gauge.FrameDesign FRAME_DESIGN)
Set the frame design
|
MatrixPanelBuilder |
frameVisible(boolean FRAME_VISIBLE)
Set if the frame is visible
|
MatrixPanelBuilder |
ledHeight(int LED_HEIGHT)
Set the number of LEDs rows
|
MatrixPanelBuilder |
ledWidth(int LED_WIDTH)
Set the number of LEDs columns
|
B |
prefHeight(double PREF_HEIGHT)
Set the preferred height of the control
|
B |
prefWidth(double PREF_WIDTH)
Set the preferred width of the control
|
applyTo, contextMenu, maxHeight, maxWidth, minHeight, minWidth, skin, tooltip
applyTo, impl_traversalEngine, stylesheets, stylesheets
applyTo, blendMode, cache, cacheHint, clip, cursor, depthTest, disable, effect, eventDispatcher, focusTraversable, id, inputMethodRequests, layoutX, layoutY, managed, mouseTransparent, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScroll, onScrollFinished, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoom, onZoomFinished, onZoomStarted, opacity, pickOnBounds, rotate, rotationAxis, scaleX, scaleY, scaleZ, style, styleClass, styleClass, transforms, transforms, translateX, translateY, translateZ, userData, visible
public static final MatrixPanelBuilder create()
public final MatrixPanelBuilder ledWidth(int LED_WIDTH)
LED_WIDTH
- Insert the columns of LEDs in the maxtrixPanelledHeight(int)
public final MatrixPanelBuilder ledHeight(int LED_HEIGHT)
LED_HEIGHT
- Insert the rows of LEDs in the matrixPanelledWidth(int)
public final MatrixPanelBuilder contents(java.util.List<Content> CONTENTS)
CONTENTS
- Insert a List of Contents to display in the matrixPanel. Each content can
be defined with a ContentBuilderContentBuilder.create()
public final MatrixPanelBuilder contents(Content[] CONTENT_ARRAY)
CONTENT_ARRAY
- Insert an Array of Contents to display in the matrixPanel. Each content can
be defined with a ContentBuilderContentBuilder.create()
public final MatrixPanelBuilder frameDesign(Gauge.FrameDesign FRAME_DESIGN)
FRAME_DESIGN
- Select between BLACK_METAL, SHINY_METAL (set a frameBaseColor
), CHROME,
DARK_GLOSSY or GLOSSY_METAL, in case its visibleGauge.frameDesignProperty()
,
frameVisible(boolean)
,
frameBaseColor(Color)
public final MatrixPanelBuilder frameBaseColor(javafx.scene.paint.Color FRAME_BASE_COLOR)
FRAME_BASE_COLOR
- frame base color for SHINY_METAL frame designframeDesign(Gauge.FrameDesign Gauge.FrameDesign.SHINY_METAL)
public final MatrixPanelBuilder frameVisible(boolean FRAME_VISIBLE)
FRAME_VISIBLE
- true to show the frame (select a design) or false, to hide the frameframeDesign(Gauge.FrameDesign)
public final B prefWidth(double PREF_WIDTH)
prefWidth
in class javafx.scene.control.ControlBuilder<B extends MatrixPanelBuilder<B>>
PREF_WIDTH
- related to scene dimensions, to keep an aspectRatio of the matrixPanel control equals
as the one given by the ratio ledHeight/ledWidth, only prefWidth or prefHeight will be taken into acount
and the other value will be adjusted properly.public final B prefHeight(double PREF_HEIGHT)
prefHeight
in class javafx.scene.control.ControlBuilder<B extends MatrixPanelBuilder<B>>
PREF_HEIGHT
- related to scene dimensions, to keep an aspectRatio of the matrixPanel control equals
as the one given by the ratio ledHeight/ledWidth, only prefWidth or prefHeight will be taken into acount
and the other value will be adjusted properly.public final MatrixPanel build()
build
in interface javafx.util.Builder<MatrixPanel>