public class FXGridBehavior extends AbstractBehavior<javafx.scene.Node> implements java.beans.PropertyChangeListener
FXGridBehavior can be registered on an FXRootPart to
apply the information from the GridModel to the background grid that
is managed by the FXViewer.pcsACTIVE_PROPERTY| Constructor and Description |
|---|
FXGridBehavior() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
protected void |
applyGridCellHeight(double height)
Applies the given cell height to the background grid.
|
protected void |
applyGridCellWidth(double width)
Applies the given cell width to the background grid.
|
protected void |
applyShowGrid(boolean showGrid)
Enables/Disables the background grid.
|
protected void |
applyZoomGrid(boolean zoomGrid)
Enables/Disables zooming of the background grid.
|
void |
deactivate() |
protected InfiniteCanvas |
getCanvas()
|
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
addFeedback, addFeedback, addHandles, addHandles, addPropertyChangeListener, getAdaptable, getFeedbackParts, getHandleParts, getHost, isActive, removeFeedback, removeHandles, removePropertyChangeListener, setAdaptable, switchAdaptableScopespublic void activate()
activate in interface IActivatableactivate in class AbstractBehavior<javafx.scene.Node>protected void applyGridCellHeight(double height)
height - The new cell height for the background grid.protected void applyGridCellWidth(double width)
width - The new cell width for the background grid.protected void applyShowGrid(boolean showGrid)
showGrid - true to enable the background grid, otherwise
false.protected void applyZoomGrid(boolean zoomGrid)
zoomGrid - true to enable grid zooming, otherwise
false.public void deactivate()
deactivate in interface IActivatabledeactivate in class AbstractBehavior<javafx.scene.Node>protected InfiniteCanvas getCanvas()
InfiniteCanvas of the host's
FXViewer.public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerCopyright (c) 2014 itemis AG and others. All rights reserved.