public class TileGridPane
extends javafx.scene.layout.GridPane
alignmentProperty, gridLinesVisibleProperty, hgapProperty, vgapProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
impl_traversalEngineProperty, needsLayoutProperty
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, 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, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
Constructor and Description |
---|
TileGridPane(javafx.scene.layout.AnchorPane parent,
int size,
double relativeGapSizeBetweenTiles,
double relativeStrokeSizeOfTiles,
String emptyWaypointStyleClass,
double minPadding)
makes a new TileGridPane.
|
TileGridPane(javafx.scene.layout.AnchorPane parent,
int rowCount,
int colCount,
int size,
double relativeGapSizeBetweenTiles,
double relativeStrokeSizeOfTiles,
String emptyWaypointStyleClass,
double minPadding)
makes a new TileGridPane.
|
Modifier and Type | Method and Description |
---|---|
TileImageView |
findTileImageViewByTile(Tile tile)
finds a TileImageView by a given Tile object
|
double |
getAbsoluteStrokeSizeOfTiles() |
int |
getColCount() |
javafx.scene.shape.Rectangle[][] |
getEmptyWaypoints() |
String |
getEmptyWaypointStyleClass() |
double |
getMinPadding() |
double |
getRelativeGapSizeBetweenTiles() |
double |
getRelativeStrokeSizeOfTiles() |
int |
getRowCount() |
TileImageView |
getSingleTileImageView(Position position) |
int |
getSize() |
TileImageView[][] |
getTileImageViews() |
double |
getTileSize() |
void |
setAbsoluteStrokeSizeOfTiles(double absoluteStrokeSizeOfTiles) |
void |
setColCount(int colCount) |
void |
setEmptyWaypoints(javafx.scene.shape.Rectangle[][] emptyWaypoints) |
void |
setEmptyWaypointStyleClass(String emptyWaypointStyleClass) |
void |
setMinPadding(double minPadding) |
void |
setRelativeGapSizeBetweenTiles(double relativeGapSizeBetweenTiles) |
void |
setRelativeStrokeSizeOfTiles(double relativeStrokeSizeOfTiles) |
void |
setRowCount(int rowCount) |
void |
setSingleTileImageView(TileImageView tileImageView,
Position position)
sets a TileImageView element on tileImageViews on a given position
|
void |
setSize(int size) |
void |
setTileImageViews(TileImageView[][] tileImageView) |
void |
setTileSize(double tileSize) |
add, add, addColumn, addRow, alignmentProperty, clearConstraints, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getAlignment, getClassCssMetaData, getColumnConstraints, getColumnIndex, getColumnSpan, getContentBias, getCssMetaData, getHalignment, getHgap, getHgrow, getMargin, getRowConstraints, getRowIndex, getRowSpan, getValignment, getVgap, getVgrow, gridLinesVisibleProperty, hgapProperty, impl_getCellBounds, impl_getColumnCount, impl_getRowCount, isFillHeight, isFillWidth, isGridLinesVisible, layoutChildren, requestLayout, setAlignment, setColumnIndex, setColumnSpan, setConstraints, setConstraints, setConstraints, setConstraints, setConstraints, setFillHeight, setFillWidth, setGridLinesVisible, setHalignment, setHgap, setHgrow, setMargin, setRowIndex, setRowSpan, setValignment, setVgap, setVgrow, toString, vgapProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, 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, snapSize, snapSpace, snapToPixelProperty, widthProperty
getBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processCSS, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBounds
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, 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, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_cssGetFocusTraversableInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, 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, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
public TileGridPane(javafx.scene.layout.AnchorPane parent, int rowCount, int colCount, int size, double relativeGapSizeBetweenTiles, double relativeStrokeSizeOfTiles, String emptyWaypointStyleClass, double minPadding) throws Exception
parent
- the AnchorPane on which the TileGridPane will be setrowCount
- the amount of rows making up the gridcolCount
- the amount of columns making up the gridsize
- the amount of tiles that can be placed on it. This number is not necessarily rowCount*colCountrelativeGapSizeBetweenTiles
- the relative size of the gap separating the tiles to a tile sizerelativeStrokeSizeOfTiles
- the relative size of the stroke to the tile sizeemptyWaypointStyleClass
- the style class that is used to mark the cell as emptyminPadding
- the minimal padding applied horizontally and verticallyException
- if the TileGridPane isn't able to get the correct width and height of the parentpublic TileGridPane(javafx.scene.layout.AnchorPane parent, int size, double relativeGapSizeBetweenTiles, double relativeStrokeSizeOfTiles, String emptyWaypointStyleClass, double minPadding) throws Exception
parent
- the AnchorPane on which the TileGridPane will be setsize
- the amount of tiles that can be placed on it. This number is not necessarily rowCount*colCountrelativeGapSizeBetweenTiles
- the relative size of the gap separating the tiles to a tile sizerelativeStrokeSizeOfTiles
- the relative size of the stroke to the tile sizeemptyWaypointStyleClass
- the style class that is used to mark the cell as emptyminPadding
- the minimal padding applied horizontally and verticallyException
- if the TileGridPane isn't able to get the correct width and height of the parentpublic double getRelativeGapSizeBetweenTiles()
public void setRelativeGapSizeBetweenTiles(double relativeGapSizeBetweenTiles)
relativeGapSizeBetweenTiles
- the relativeGapSizeBetweenTiles to setpublic double getTileSize()
public void setTileSize(double tileSize)
tileSize
- the tileSize to setpublic int getColCount()
public void setColCount(int colCount)
colCount
- the colCount to setpublic String getEmptyWaypointStyleClass()
public void setEmptyWaypointStyleClass(String emptyWaypointStyleClass)
emptyWaypointStyleClass
- the emptyWaypointStyleClass to setpublic int getSize()
public void setSize(int size)
size
- the size to setpublic int getRowCount()
public void setRowCount(int rowCount)
rowCount
- the rowCount to setpublic double getRelativeStrokeSizeOfTiles()
public void setRelativeStrokeSizeOfTiles(double relativeStrokeSizeOfTiles)
relativeStrokeSizeOfTiles
- the relativeStrokeSizeOfTiles to setpublic double getMinPadding()
public void setMinPadding(double minPadding)
minPadding
- the minPadding to setpublic double getAbsoluteStrokeSizeOfTiles()
public void setAbsoluteStrokeSizeOfTiles(double absoluteStrokeSizeOfTiles)
absoluteStrokeSizeOfTiles
- the absoluteStrokeSizeOfTiles to setpublic javafx.scene.shape.Rectangle[][] getEmptyWaypoints()
public void setEmptyWaypoints(javafx.scene.shape.Rectangle[][] emptyWaypoints)
emptyWaypoints
- the emptyWaypoints to setpublic TileImageView[][] getTileImageViews()
public void setTileImageViews(TileImageView[][] tileImageView)
tileImageView
- the tileImageView to setpublic void setSingleTileImageView(TileImageView tileImageView, Position position)
tileImageView
- the tileImageView that should be set on a given positionposition
- the positionpublic TileImageView getSingleTileImageView(Position position)
position
- the position where to lookpublic TileImageView findTileImageViewByTile(Tile tile)
tile
- the Tile object to look forCopyright © 2017 smarTen. All rights reserved.