Package org.eclipse.gef.mvc.fx.behaviors
Class GridBehavior
- java.lang.Object
-
- org.eclipse.gef.mvc.fx.behaviors.AbstractBehavior
-
- org.eclipse.gef.mvc.fx.behaviors.GridBehavior
-
- All Implemented Interfaces:
IActivatable,IAdaptable.Bound<IVisualPart<? extends javafx.scene.Node>>,IBehavior
public class GridBehavior extends AbstractBehavior
TheGridBehaviorcan be registered on anIRootPartto apply the information from theGridModelto the background grid that is managed by theInfiniteCanvasViewer.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
IAdaptable.Bound.Impl<T extends IAdaptable>
-
-
Field Summary
-
Fields inherited from interface org.eclipse.gef.common.activate.IActivatable
ACTIVE_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description GridBehavior()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoActivate()PostAbstractBehavior.activate()hook that may be overwritten to e.g. register listeners.protected voiddoDeactivate()PreAbstractBehavior.deactivate()hook that may be overwritten to e.g. unregister listeners.protected InfiniteCanvasgetCanvas()-
Methods inherited from class org.eclipse.gef.mvc.fx.behaviors.AbstractBehavior
activate, activeProperty, adaptableProperty, addAnchoreds, addAnchoreds, addFeedback, addFeedback, addHandles, addHandles, clearFeedback, clearHandles, deactivate, getAdaptable, getFeedback, getFeedback, getFeedbackPartFactory, getFeedbackPartFactory, getFeedbackPerTargetSet, getHandlePartFactory, getHandlePartFactory, getHandles, getHandles, getHandlesPerTargetSet, getHost, hasFeedback, hasFeedback, hasHandles, hasHandles, isActive, removeAnchoreds, removeFeedback, removeFeedback, removeFeedback, removeHandles, removeHandles, removeHandles, setAdaptable, updateHandles, updateHandles
-
-
-
-
Method Detail
-
doActivate
protected void doActivate()
Description copied from class:AbstractBehaviorPostAbstractBehavior.activate()hook that may be overwritten to e.g. register listeners.- Overrides:
doActivatein classAbstractBehavior
-
doDeactivate
protected void doDeactivate()
Description copied from class:AbstractBehaviorPreAbstractBehavior.deactivate()hook that may be overwritten to e.g. unregister listeners.- Overrides:
doDeactivatein classAbstractBehavior
-
getCanvas
protected InfiniteCanvas getCanvas()
- Returns:
- The
InfiniteCanvasof thehost'sInfiniteCanvasViewer.
-
-