public abstract class CellPane<TCellPane extends CellPane<TCellPane,TCell>,TCell extends Cell<TCell,TCellPane>> extends javafx.scene.layout.GridPane
Modifier and Type | Class and Description |
---|---|
protected class |
CellPane.ColumnScrollBar |
protected static class |
CellPane.MovementDirection |
protected class |
CellPane.RowScrollBar |
Modifier and Type | Field and Description |
---|---|
protected int |
actualColumns |
protected int |
actualRows |
javafx.beans.property.BooleanProperty |
animate |
javafx.beans.property.BooleanProperty |
autoSizeColumns |
javafx.beans.property.BooleanProperty |
autoSizeRows |
javafx.beans.property.ObjectProperty<ColorScheme> |
colorScheme |
protected javafx.scene.layout.ColumnConstraints |
columnConstraints |
javafx.beans.property.SimpleMapProperty<Integer,Integer> |
columnMap |
javafx.beans.property.SimpleMapProperty<Integer,Double> |
columnOpacityMap |
protected com.google.common.collect.SetMultimap<Integer,TCell> |
columns |
protected CellPane.ColumnScrollBar |
columnScrollBar |
javafx.beans.binding.IntegerBinding |
columnWidth |
javafx.beans.property.IntegerProperty |
columnWidthDefault |
protected javafx.scene.layout.StackPane |
contentAndInteractionStackPane |
protected javafx.scene.layout.GridPane |
contentPane |
protected javafx.beans.property.SimpleMapProperty<Integer,Integer> |
dragColumnMap |
protected javafx.beans.property.SimpleMapProperty<Integer,Integer> |
dragRowMap |
javafx.beans.property.BooleanProperty |
highlight |
protected javafx.beans.property.SimpleMapProperty<Integer,Boolean> |
highlightColumnMap |
javafx.beans.property.SimpleBooleanProperty |
highlightConcept |
protected javafx.beans.property.SimpleMapProperty<Integer,Boolean> |
highlightRowMap |
javafx.beans.property.ReadOnlyStringProperty |
id |
javafx.beans.property.ObjectProperty<InteractionMode> |
interactionMode |
protected javafx.scene.layout.GridPane |
interactionPane |
boolean |
interactive |
protected javafx.beans.property.BooleanProperty |
isDragging |
protected javafx.beans.property.BooleanProperty |
isDropping |
javafx.beans.binding.IntegerBinding |
maxColumn |
javafx.beans.property.IntegerProperty |
maxColumns |
javafx.beans.property.DoubleProperty |
maximalTextWidth |
javafx.beans.binding.IntegerBinding |
maxRow |
javafx.beans.property.IntegerProperty |
maxRows |
javafx.beans.binding.IntegerBinding |
minColumn |
protected BoundedIntPairProperty |
minCoordinates |
javafx.beans.binding.IntegerBinding |
minRow |
protected javafx.beans.binding.DoubleBinding |
prefHeight |
protected javafx.beans.binding.DoubleBinding |
prefWidth |
protected javafx.scene.layout.RowConstraints |
rowConstraints |
javafx.beans.binding.IntegerBinding |
rowHeight |
javafx.beans.property.IntegerProperty |
rowHeightDefault |
javafx.beans.property.SimpleMapProperty<Integer,Integer> |
rowMap |
javafx.beans.property.SimpleMapProperty<Integer,Double> |
rowOpacityMap |
protected com.google.common.collect.SetMultimap<Integer,TCell> |
rows |
protected CellPane.RowScrollBar |
rowScrollBar |
protected SimpleIntPairProperty |
scrollDeltaCoordinates |
javafx.beans.binding.IntegerBinding |
textSize |
javafx.beans.property.IntegerProperty |
textSizeDefault |
javafx.beans.binding.IntegerBinding |
visibleColumns |
javafx.beans.binding.IntegerBinding |
visibleRows |
javafx.beans.property.DoubleProperty |
zoomFactor |
Modifier | Constructor and Description |
---|---|
protected |
CellPane(String id,
InteractionMode interactionMode) |
protected |
CellPane(String id,
InteractionMode interactionMode,
boolean interactive) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCell(int gridRow,
int gridColumn) |
void |
bind(CellPane<?,?> anotherSuperPane,
InteractionMode interactionMode) |
protected abstract TCell |
createCell(int gridRow,
int gridColumn)
This method creates a new instance of a TCell.
|
void |
dehighlight() |
protected void |
dehighlight(Collection<Integer> ignoreRows,
Collection<Integer> ignoreColumns) |
protected void |
drag(int sourceRow,
int sourceColumn,
int targetRow,
int targetColumn) |
void |
drop(int sourceRow,
int sourceColumn,
int targetRow,
int targetColumn) |
TCell |
getCellByContentCoordinates(int row,
int column) |
TCell |
getCellByContentCoordinates(IntPair coordinates) |
TCell |
getCellByGridCoordinates(int row,
int column) |
TCell |
getCellByGridCoordinates(IntPair coordinates) |
Collection<TCell> |
getCellsByContentColumn(int contentColumn) |
Collection<TCell> |
getCellsByContentRow(int contentRow) |
Set<TCell> |
getCellsByGridColumn(int gridColumn) |
Set<TCell> |
getCellsByGridRow(int gridRow) |
CellPane.ColumnScrollBar |
getColumnScrollBar() |
javafx.scene.layout.StackPane |
getContentAndInteractionStackPane() |
javafx.scene.layout.GridPane |
getContentPane() |
javafx.scene.layout.GridPane |
getInteractionPane() |
CellPane.RowScrollBar |
getRowScrollBar() |
void |
highlight(Collection<Integer> rows,
Collection<Integer> columns) |
void |
highlight(TCell cell) |
void |
resetGridPositions() |
protected void |
scroll(int rowDelta,
int columnDelta) |
void |
updateContent() |
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 final javafx.beans.property.ReadOnlyStringProperty id
protected final javafx.scene.layout.StackPane contentAndInteractionStackPane
protected final javafx.scene.layout.GridPane contentPane
protected final javafx.scene.layout.GridPane interactionPane
public final javafx.beans.property.IntegerProperty maxRows
public final javafx.beans.property.IntegerProperty maxColumns
public final javafx.beans.property.BooleanProperty autoSizeRows
public final javafx.beans.property.BooleanProperty autoSizeColumns
public final javafx.beans.property.IntegerProperty rowHeightDefault
public final javafx.beans.property.IntegerProperty columnWidthDefault
public final javafx.beans.property.IntegerProperty textSizeDefault
public final javafx.beans.property.DoubleProperty zoomFactor
public final javafx.beans.property.DoubleProperty maximalTextWidth
public final javafx.beans.binding.IntegerBinding rowHeight
public final javafx.beans.binding.IntegerBinding columnWidth
public final javafx.beans.binding.IntegerBinding textSize
protected final javafx.beans.binding.DoubleBinding prefHeight
protected final javafx.beans.binding.DoubleBinding prefWidth
public final javafx.beans.binding.IntegerBinding visibleRows
public final javafx.beans.binding.IntegerBinding visibleColumns
public final javafx.beans.property.ObjectProperty<InteractionMode> interactionMode
public final javafx.beans.property.ObjectProperty<ColorScheme> colorScheme
public final javafx.beans.property.BooleanProperty animate
public final javafx.beans.property.BooleanProperty highlight
protected final javafx.beans.property.BooleanProperty isDragging
protected final javafx.beans.property.BooleanProperty isDropping
protected final CellPane.RowScrollBar rowScrollBar
protected final CellPane.ColumnScrollBar columnScrollBar
protected int actualRows
protected int actualColumns
protected final com.google.common.collect.SetMultimap<Integer,TCell extends Cell<TCell,TCellPane>> rows
protected final com.google.common.collect.SetMultimap<Integer,TCell extends Cell<TCell,TCellPane>> columns
public final javafx.beans.property.SimpleMapProperty<Integer,Double> rowOpacityMap
public final javafx.beans.property.SimpleMapProperty<Integer,Double> columnOpacityMap
protected final BoundedIntPairProperty minCoordinates
public final javafx.beans.binding.IntegerBinding minRow
public final javafx.beans.binding.IntegerBinding maxRow
public final javafx.beans.binding.IntegerBinding minColumn
public final javafx.beans.binding.IntegerBinding maxColumn
protected final javafx.scene.layout.RowConstraints rowConstraints
protected final javafx.scene.layout.ColumnConstraints columnConstraints
public final boolean interactive
protected final SimpleIntPairProperty scrollDeltaCoordinates
protected final javafx.beans.property.SimpleMapProperty<Integer,Integer> dragRowMap
protected final javafx.beans.property.SimpleMapProperty<Integer,Integer> dragColumnMap
protected final javafx.beans.property.SimpleMapProperty<Integer,Boolean> highlightRowMap
protected final javafx.beans.property.SimpleMapProperty<Integer,Boolean> highlightColumnMap
public final javafx.beans.property.SimpleBooleanProperty highlightConcept
protected CellPane(String id, InteractionMode interactionMode)
protected CellPane(String id, InteractionMode interactionMode, boolean interactive)
public final javafx.scene.layout.StackPane getContentAndInteractionStackPane()
public final javafx.scene.layout.GridPane getContentPane()
public final javafx.scene.layout.GridPane getInteractionPane()
public CellPane.RowScrollBar getRowScrollBar()
public CellPane.ColumnScrollBar getColumnScrollBar()
public final Set<TCell> getCellsByGridRow(int gridRow)
public final Set<TCell> getCellsByGridColumn(int gridColumn)
public final TCell getCellByGridCoordinates(IntPair coordinates)
public final TCell getCellByGridCoordinates(int row, int column)
public final Collection<TCell> getCellsByContentRow(int contentRow)
public final Collection<TCell> getCellsByContentColumn(int contentColumn)
public final TCell getCellByContentCoordinates(IntPair coordinates)
public final TCell getCellByContentCoordinates(int row, int column)
public final void bind(CellPane<?,?> anotherSuperPane, InteractionMode interactionMode)
public final void updateContent()
protected abstract TCell createCell(int gridRow, int gridColumn)
return new TCell(...)
.gridRow
- the grid rowgridColumn
- the grid columnprotected void addCell(int gridRow, int gridColumn)
protected final void scroll(int rowDelta, int columnDelta)
protected final void drag(int sourceRow, int sourceColumn, int targetRow, int targetColumn)
public final void drop(int sourceRow, int sourceColumn, int targetRow, int targetColumn)
public final void highlight(Collection<Integer> rows, Collection<Integer> columns)
public final void dehighlight()
protected final void dehighlight(Collection<Integer> ignoreRows, Collection<Integer> ignoreColumns)
public void resetGridPositions()
Copyright © 2010–2023 Francesco Kriegel. All rights reserved.