public class FXRootPart extends AbstractFXRootPart<javafx.scene.Group>
FXRootPart is an AbstractFXRootPart that is parameterized
by Group. It manages a number of layers for the visualization,
namely, the content layer, feedback layer, and handle layer. The visuals of
the different IVisualParts are inserted into these layers depending
on their type, i.e. IContentPart visuals are inserted into the
content layer, IFeedbackPart visuals are inserted into the feedback
layer, and IHandlePart visuals are inserted into the handle layer.
The layers are stacked on top of each other with the content layer at the bottom and the handle layer at the top. The feedback layer in the middle is mouse transparent, i.e. you cannot interact with the visuals in this layer.
IAdaptable.Bound<A extends IAdaptable>| Modifier and Type | Field and Description |
|---|---|
javafx.scene.Group |
contentLayer
The content layer visual.
|
javafx.scene.Group |
feedbackLayer
The feedback layer visual.
|
javafx.scene.Group |
handleLayer
The handle layer visual.
|
pcsANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTYADAPTERS_PROPERTYACTIVE_PROPERTY| Constructor and Description |
|---|
FXRootPart()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child,
int index)
Performs the addition of the child's visual to this
IVisualPart's visual. |
protected javafx.scene.Group |
createContentLayer()
Creates the content layer visual.
|
protected javafx.scene.Group |
createFeedbackLayer()
Creates the feedback layer visual.
|
protected javafx.scene.Group |
createHandleLayer()
Creates the handle layer visual.
|
protected javafx.scene.Group |
createLayer(boolean mouseTransparent)
Creates a
Group and sets its Node.pickOnBoundsProperty()
to false. |
protected javafx.scene.Group |
createScrollPaneContent(javafx.scene.Node... layers)
Creates a
Group which contains the given Nodes. |
protected javafx.scene.Group |
createVisual()
Creates this part's visual.
|
void |
doRefreshVisual(javafx.scene.Group visual)
Refreshes this part's visualization based on this part's content.
|
protected javafx.scene.Group |
getContentLayer()
Returns the content layer visual.
|
protected javafx.scene.Group |
getFeedbackLayer()
Returns the feedback layer visual.
|
protected javafx.scene.Group |
getHandleLayer()
Returns the handle layer visual.
|
protected void |
registerAtVisualPartMap(IViewer<javafx.scene.Node> viewer,
javafx.scene.Group visual)
Registers this part for the given visual in the visual-part-map of the
given
IViewer. |
protected void |
removeChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child,
int index)
Removes the child's visual from this
IVisualPart's visual. |
protected void |
unregisterFromVisualPartMap(IViewer<javafx.scene.Node> viewer,
javafx.scene.Group visual)
Removes the given visual from the visual-part-map of the given viewer.
|
getViewer, setAdaptableattachToAnchorageVisual, detachFromAnchorageVisual, doActivate, doDeactivate, getAdaptable, getContentPartChildren, getFeedbackPartChildren, getHandlePartChildren, getRootactivate, addAnchorage, addAnchorage, addAnchored, addChild, addChild, addChildren, addChildren, addPropertyChangeListener, deactivate, dispose, getAdapter, getAdapter, getAdapter, getAdapters, getAdapters, getAnchorages, getAnchoreds, getBehaviors, getChildren, getParent, getPolicies, getVisual, isActive, isRefreshVisual, refreshVisual, register, removeAnchorage, removeAnchorage, removeAnchored, removeChild, removeChildren, removePropertyChangeListener, reorderChild, setAdapter, setAdapter, setAdapter, setAdapters, setParent, setRefreshVisual, unregister, unsetAdapterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAnchorage, addAnchorage, addAnchored, addChild, addChild, addChildren, addChildren, getAnchorages, getAnchoreds, getBehaviors, getChildren, getParent, getPolicies, getVisual, isRefreshVisual, refreshVisual, removeAnchorage, removeAnchorage, removeAnchored, removeChild, removeChildren, reorderChild, setParent, setRefreshVisualgetAdapter, getAdapter, getAdapter, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, unsetAdapteractivate, deactivate, isActiveaddPropertyChangeListener, removePropertyChangeListenerdisposepublic javafx.scene.Group contentLayer
public javafx.scene.Group handleLayer
public javafx.scene.Group feedbackLayer
protected void addChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child, int index)
AbstractVisualPartIVisualPart's visual.addChildVisual in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>child - The IVisualPart being addedindex - The child's positionAbstractVisualPart.addChild(IVisualPart, int)protected javafx.scene.Group createContentLayer()
protected javafx.scene.Group createFeedbackLayer()
protected javafx.scene.Group createHandleLayer()
protected javafx.scene.Group createLayer(boolean mouseTransparent)
Group and sets its Node.pickOnBoundsProperty()
to false. Does also set its
Node.mouseTransparentProperty() to the given value.mouseTransparent - The value for the layer's
Node.mouseTransparentProperty().protected javafx.scene.Group createScrollPaneContent(javafx.scene.Node... layers)
Group which contains the given Nodes.layers - The Nodes which are put into the new Group.Group.protected javafx.scene.Group createVisual()
AbstractVisualPartcreateVisual in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>public void doRefreshVisual(javafx.scene.Group visual)
AbstractVisualPartdoRefreshVisual in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>visual - This part's visual.protected javafx.scene.Group getContentLayer()
createContentLayer()protected javafx.scene.Group getFeedbackLayer()
createFeedbackLayer()protected javafx.scene.Group getHandleLayer()
createHandleLayer()protected void registerAtVisualPartMap(IViewer<javafx.scene.Node> viewer, javafx.scene.Group visual)
AbstractVisualPartIViewer.registerAtVisualPartMap in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>viewer - The IViewer of which the visual-part-map is extended.visual - The visual for which this part is registered in the viewer's
visual-part-map.protected void removeChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child, int index)
AbstractVisualPartIVisualPart's visual.removeChildVisual in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>child - The child IVisualPart.index - The index of the child whose visual is to be removed.protected void unregisterFromVisualPartMap(IViewer<javafx.scene.Node> viewer, javafx.scene.Group visual)
AbstractVisualPartunregisterFromVisualPartMap in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>viewer - The IViewer of which the visual-part-map is changed.visual - The visual which is removed from the visual-part-map.Copyright (c) 2014 itemis AG and others. All rights reserved.