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 FXGridLayer
that is managed by the FXViewer.pcsACTIVE_PROPERTY| Constructor and Description |
|---|
FXGridBehavior() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
protected void |
applyContentsTransform(AffineTransform contentsTransform)
Applies the given
transformation to
the FXGridLayer. |
protected void |
applyGridCellHeight(double height)
Applies the given cell height to the
FXGridLayer. |
protected void |
applyGridCellWidth(double width)
Applies the given cell width to the
FXGridLayer. |
protected void |
applyShowGrid(boolean showGrid)
Enables/Disables the
FXGridLayer. |
protected void |
applyZoomGrid(boolean zoomGrid)
Enables/Disables zooming of the
FXGridLayer. |
void |
deactivate() |
protected FXGridLayer |
getGridLayer()
|
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 applyContentsTransform(AffineTransform contentsTransform)
transformation to
the FXGridLayer.contentsTransform - An AffineTransform which is applied to
the FXGridLayer.protected void applyGridCellHeight(double height)
FXGridLayer.height - The new cell height for the FXGridLayer.protected void applyGridCellWidth(double width)
FXGridLayer.width - The new cell width for the FXGridLayer.protected void applyShowGrid(boolean showGrid)
FXGridLayer.showGrid - true to enable the FXGridLayer, otherwise
false.protected void applyZoomGrid(boolean zoomGrid)
FXGridLayer. Registers a listener
on the ViewportModel to keep the FXGridLayer's zoom level
in sync with the viewport zoom level.zoomGrid - true to enable grid zooming, otherwise
false.public void deactivate()
deactivate in interface IActivatabledeactivate in class AbstractBehavior<javafx.scene.Node>protected FXGridLayer getGridLayer()
FXGridLayer 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.