Styleable
, EventTarget
, org.refcodes.graphical.PixGridPanel
, org.refcodes.graphical.VisibleAccessor
, org.refcodes.graphical.VisibleAccessor.VisibleMutator
, org.refcodes.graphical.VisibleAccessor.VisibleProperty
, org.refcodes.mixin.Clearable
FxPixGridBannerPanel
public class FxPixGridMatrixPanel extends Pane implements org.refcodes.graphical.PixGridPanel
org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B extends org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B>>, org.refcodes.graphical.VisibleAccessor.VisibleMutator, org.refcodes.graphical.VisibleAccessor.VisibleProperty
Modifier and Type | Field | Description |
---|---|---|
protected Color |
_inactivePixelColor |
|
protected org.refcodes.graphical.RgbPixmap.RgbPixmapBuilder |
_rgbPixmapBuilder |
BASELINE_OFFSET_SAME_AS_HEIGHT
USE_COMPUTED_SIZE, USE_PREF_SIZE
Constructor | Description |
---|---|
FxPixGridMatrixPanel(int aMatrixWidth,
int aMatrixHeight,
Color aBackgroundColor,
int aPixelWidth,
int aPixelHeight,
org.refcodes.graphical.PixelShape aPixelShape,
float aPixelBorderWidth,
Color aPixelBorderColor,
Color aInactivePixelColor,
int aTopBorder,
int aBottomBorder,
int aLeftBorder,
int aRightBorder,
int aHorizontalSpace,
float aPixelWidthToHorizontalSpaceRatio,
boolean isForceHorizontalSpace,
int aVerticalSpace,
float aPixelHeightToVerticalSpaceRatio,
boolean isForceVerticalSpace) |
Instantiates a new
FxPixGridMatrixPanel . |
FxPixGridMatrixPanel(int aMatrixWidth,
int aMatrixHeight,
String aBackgroundColor,
int aPixelWidth,
int aPixelHeight,
org.refcodes.graphical.PixelShape aPixelShape,
float aPixelBorderWidth,
String aPixelBorderColor,
String aInactivePixelColor,
int aTopBorder,
int aBottomBorder,
int aLeftBorder,
int aRightBorder,
int aHorizontalSpace,
float aPixelWidthToHorizontalSpaceRatio,
boolean isForceHorizontalSpace,
int aVerticalSpace,
float aPixelHeightToVerticalSpaceRatio,
boolean isForceVerticalSpace) |
Instantiates a new
FxPixGridMatrixPanel . |
FxPixGridMatrixPanel(int aMatrixWidth,
int aMatrixHeight,
Color aBackgroundColor,
int aPixelWidth,
int aPixelHeight,
org.refcodes.graphical.PixelShape aPixelShape,
float aPixelBorderWidth,
Color aPixelBorderColor,
Color aInactivePixelColor,
int aTopBorder,
int aBottomBorder,
int aLeftBorder,
int aRightBorder,
int aHorizontalSpace,
float aPixelWidthToHorizontalSpaceRatio,
boolean isForceHorizontalSpace,
int aVerticalSpace,
float aPixelHeightToVerticalSpaceRatio,
boolean isForceVerticalSpace) |
Instantiates a new
FxPixGridMatrixPanel . |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addBlankArea(int aXPosition,
int aYPosition,
int aWidth,
int aHeight) |
|
boolean |
addBlankArea(org.refcodes.graphical.Rectangle aRectangle) |
|
void |
clear() |
|
void |
clearBlankAreas() |
|
int |
getBottomBorder() |
|
Color |
getColorAt(int aXPos,
int aYPos) |
Gets the
Color at the given position. |
int |
getHorizontalSpace() |
|
org.refcodes.graphical.RgbColor |
getInactivePixelColor() |
|
int |
getLeftBorder() |
|
int |
getMatrixDrawingHeight(boolean isWithBorder,
boolean isWithPixelSpace,
boolean isWithPixelHeight) |
|
int |
getMatrixDrawingWidth(boolean isWithBorder,
boolean isWithPixelSpace,
boolean isWithPixelWidth) |
|
int |
getMatrixHeight() |
|
org.refcodes.graphical.Dimension |
getMatrixSize() |
|
int |
getMatrixWidth() |
|
org.refcodes.graphical.RgbPixel |
getPixelAt(int aXPos,
int aYPos) |
|
int |
getPixelHeight() |
|
org.refcodes.graphical.PixelShape |
getPixelShape() |
|
int |
getPixelWidth() |
|
int |
getPixmapOffsetX() |
|
int |
getPixmapOffsetY() |
|
org.refcodes.graphical.RgbPixmap.RgbPixmapBuilder |
getPixmapSnapshot() |
|
org.refcodes.graphical.RgbPixmap.RgbPixmapBuilder |
getRgbPixmap() |
|
int |
getRightBorder() |
|
int |
getTopBorder() |
|
int |
getVerticalSpace() |
|
boolean |
isHorizontalWrapEnabled() |
|
boolean |
isVerticalWrapEnabled() |
|
boolean |
removeBlankArea(org.refcodes.graphical.Rectangle aRectangle) |
|
void |
repaint() |
|
void |
setColorAt(Color aColor,
int aPosX,
int aPosY) |
Paints the
Color at the given position. |
void |
setPixelAtAt(org.refcodes.graphical.RgbPixel aPixel,
int aPosX,
int aPosY) |
|
void |
setPixmapOffset(int aPosX,
int aPosY) |
|
protected static Color |
toFxColor(Color aAwtColor) |
|
protected static Color |
toFxColor(String aWebColor) |
|
protected static Color |
toFxColor(org.refcodes.graphical.RgbPixel aPixel) |
|
protected static org.refcodes.graphical.RgbPixel |
toRgbPixel(Color aFxColor) |
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren
getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
getMatrixDrawingHeight, getMatrixDrawingWidth
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBackground, getBorder, getClassCssMetaData, getCssMetaData, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
getStyleableNode
protected org.refcodes.graphical.RgbPixmap.RgbPixmapBuilder _rgbPixmapBuilder
protected Color _inactivePixelColor
public FxPixGridMatrixPanel(int aMatrixWidth, int aMatrixHeight, Color aBackgroundColor, int aPixelWidth, int aPixelHeight, org.refcodes.graphical.PixelShape aPixelShape, float aPixelBorderWidth, Color aPixelBorderColor, Color aInactivePixelColor, int aTopBorder, int aBottomBorder, int aLeftBorder, int aRightBorder, int aHorizontalSpace, float aPixelWidthToHorizontalSpaceRatio, boolean isForceHorizontalSpace, int aVerticalSpace, float aPixelHeightToVerticalSpaceRatio, boolean isForceVerticalSpace)
FxPixGridMatrixPanel
.aMatrixWidth
- the a matrix widthaMatrixHeight
- the a matrix heightaBackgroundColor
- the a background coloraPixelWidth
- the a pixel widthaPixelHeight
- the a pixel heightaPixelShape
- the a pixel shapeaPixelBorderWidth
- the a pixel border widthaPixelBorderColor
- the a pixel border coloraInactivePixelColor
- the a inactive pixel coloraTopBorder
- the a top borderaBottomBorder
- the a bottom borderaLeftBorder
- the a left borderaRightBorder
- the a right borderaHorizontalSpace
- the a horizontal spaceaPixelWidthToHorizontalSpaceRatio
- the a pixel width to horizontal
space ratioisForceHorizontalSpace
- the is force horizontal spaceaVerticalSpace
- the a vertical spaceaPixelHeightToVerticalSpaceRatio
- the a pixel height to vertical
space ratioisForceVerticalSpace
- the is force vertical spacepublic FxPixGridMatrixPanel(int aMatrixWidth, int aMatrixHeight, String aBackgroundColor, int aPixelWidth, int aPixelHeight, org.refcodes.graphical.PixelShape aPixelShape, float aPixelBorderWidth, String aPixelBorderColor, String aInactivePixelColor, int aTopBorder, int aBottomBorder, int aLeftBorder, int aRightBorder, int aHorizontalSpace, float aPixelWidthToHorizontalSpaceRatio, boolean isForceHorizontalSpace, int aVerticalSpace, float aPixelHeightToVerticalSpaceRatio, boolean isForceVerticalSpace)
FxPixGridMatrixPanel
.aMatrixWidth
- the a matrix widthaMatrixHeight
- the a matrix heightaBackgroundColor
- the a background coloraPixelWidth
- the a pixel widthaPixelHeight
- the a pixel heightaPixelShape
- the a pixel shapeaPixelBorderWidth
- the a pixel border widthaPixelBorderColor
- the a pixel border coloraInactivePixelColor
- the a inactive pixel coloraTopBorder
- the a top borderaBottomBorder
- the a bottom borderaLeftBorder
- the a left borderaRightBorder
- the a right borderaHorizontalSpace
- the a horizontal spaceaPixelWidthToHorizontalSpaceRatio
- the a pixel width to horizontal
space ratioisForceHorizontalSpace
- the is force horizontal spaceaVerticalSpace
- the a vertical spaceaPixelHeightToVerticalSpaceRatio
- the a pixel height to vertical
space ratioisForceVerticalSpace
- the is force vertical spacepublic FxPixGridMatrixPanel(int aMatrixWidth, int aMatrixHeight, Color aBackgroundColor, int aPixelWidth, int aPixelHeight, org.refcodes.graphical.PixelShape aPixelShape, float aPixelBorderWidth, Color aPixelBorderColor, Color aInactivePixelColor, int aTopBorder, int aBottomBorder, int aLeftBorder, int aRightBorder, int aHorizontalSpace, float aPixelWidthToHorizontalSpaceRatio, boolean isForceHorizontalSpace, int aVerticalSpace, float aPixelHeightToVerticalSpaceRatio, boolean isForceVerticalSpace)
FxPixGridMatrixPanel
.aMatrixWidth
- the a matrix widthaMatrixHeight
- the a matrix heightaBackgroundColor
- the a background coloraPixelWidth
- the a pixel widthaPixelHeight
- the a pixel heightaPixelShape
- the a pixel shapeaPixelBorderWidth
- the a pixel border widthaPixelBorderColor
- the a pixel border coloraInactivePixelColor
- the a inactive pixel coloraTopBorder
- the a top borderaBottomBorder
- the a bottom borderaLeftBorder
- the a left borderaRightBorder
- the a right borderaHorizontalSpace
- the a horizontal spaceaPixelWidthToHorizontalSpaceRatio
- the a pixel width to horizontal
space ratioisForceHorizontalSpace
- the is force horizontal spaceaVerticalSpace
- the a vertical spaceaPixelHeightToVerticalSpaceRatio
- the a pixel height to vertical
space ratioisForceVerticalSpace
- the is force vertical spacepublic Color getColorAt(int aXPos, int aYPos) throws IndexOutOfBoundsException
Color
at the given position.aXPos
- the a X posaYPos
- the a Y posColor
at the given positionIndexOutOfBoundsException
- the index out of bounds exceptionpublic org.refcodes.graphical.RgbPixel getPixelAt(int aXPos, int aYPos) throws IndexOutOfBoundsException
getPixelAt
in interface org.refcodes.graphical.PixGridPanel
IndexOutOfBoundsException
public int getTopBorder()
getTopBorder
in interface org.refcodes.graphical.PixGridPanel
public int getBottomBorder()
getBottomBorder
in interface org.refcodes.graphical.PixGridPanel
public int getLeftBorder()
getLeftBorder
in interface org.refcodes.graphical.PixGridPanel
public int getRightBorder()
getRightBorder
in interface org.refcodes.graphical.PixGridPanel
public int getHorizontalSpace()
getHorizontalSpace
in interface org.refcodes.graphical.PixGridPanel
public int getVerticalSpace()
getVerticalSpace
in interface org.refcodes.graphical.PixGridPanel
public int getPixelWidth()
getPixelWidth
in interface org.refcodes.graphical.PixGridPanel
public int getPixelHeight()
getPixelHeight
in interface org.refcodes.graphical.PixGridPanel
public int getMatrixDrawingWidth(boolean isWithBorder, boolean isWithPixelSpace, boolean isWithPixelWidth)
getMatrixDrawingWidth
in interface org.refcodes.graphical.PixGridPanel
public int getMatrixDrawingHeight(boolean isWithBorder, boolean isWithPixelSpace, boolean isWithPixelHeight)
getMatrixDrawingHeight
in interface org.refcodes.graphical.PixGridPanel
public org.refcodes.graphical.RgbPixmap.RgbPixmapBuilder getRgbPixmap()
getRgbPixmap
in interface org.refcodes.graphical.PixGridPanel
public int getPixmapOffsetX()
getPixmapOffsetX
in interface org.refcodes.graphical.PixGridPanel
public int getPixmapOffsetY()
getPixmapOffsetY
in interface org.refcodes.graphical.PixGridPanel
public boolean isHorizontalWrapEnabled()
isHorizontalWrapEnabled
in interface org.refcodes.graphical.PixGridPanel
public boolean isVerticalWrapEnabled()
isVerticalWrapEnabled
in interface org.refcodes.graphical.PixGridPanel
public int getMatrixWidth()
getMatrixWidth
in interface org.refcodes.graphical.PixGridPanel
public int getMatrixHeight()
getMatrixHeight
in interface org.refcodes.graphical.PixGridPanel
public org.refcodes.graphical.Dimension getMatrixSize()
getMatrixSize
in interface org.refcodes.graphical.PixGridPanel
public org.refcodes.graphical.RgbColor getInactivePixelColor()
getInactivePixelColor
in interface org.refcodes.graphical.PixGridPanel
public void clear()
clear
in interface org.refcodes.mixin.Clearable
public org.refcodes.graphical.PixelShape getPixelShape()
getPixelShape
in interface org.refcodes.graphical.PixGridPanel
public boolean addBlankArea(int aXPosition, int aYPosition, int aWidth, int aHeight)
addBlankArea
in interface org.refcodes.graphical.PixGridPanel
public boolean addBlankArea(org.refcodes.graphical.Rectangle aRectangle)
addBlankArea
in interface org.refcodes.graphical.PixGridPanel
public boolean removeBlankArea(org.refcodes.graphical.Rectangle aRectangle)
removeBlankArea
in interface org.refcodes.graphical.PixGridPanel
public void clearBlankAreas()
clearBlankAreas
in interface org.refcodes.graphical.PixGridPanel
public org.refcodes.graphical.RgbPixmap.RgbPixmapBuilder getPixmapSnapshot()
getPixmapSnapshot
in interface org.refcodes.graphical.PixGridPanel
public void setPixmapOffset(int aPosX, int aPosY)
setPixmapOffset
in interface org.refcodes.graphical.PixGridPanel
public void setColorAt(Color aColor, int aPosX, int aPosY)
Color
at the given position.aColor
- the Color
for the pixel at the given position.aPosX
- the x positionaPosY
- the y positionpublic void setPixelAtAt(org.refcodes.graphical.RgbPixel aPixel, int aPosX, int aPosY)
setPixelAtAt
in interface org.refcodes.graphical.PixGridPanel
public void repaint()
repaint
in interface org.refcodes.graphical.PixGridPanel
protected static Color toFxColor(org.refcodes.graphical.RgbPixel aPixel)
protected static org.refcodes.graphical.RgbPixel toRgbPixel(Color aFxColor)
Copyright © 2021. All rights reserved.