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 IVisualPart
s 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.
adaptable
active, adapters, anchoragesUnmodifiable, anchoredsUnmodifiable, children, parent, refreshVisual
anchoragesUnmodifiable, anchoredsUnmodifiable, children, parent, refreshVisual
adapters
active
IAdaptable.Bound<A extends IAdaptable>
IAdaptable.Bound.Impl<T 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.
|
ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTY
ADAPTERS_PROPERTY
ACTIVE_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 |
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 |
removeChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child,
int index)
Removes the child's visual from this
IVisualPart 's visual. |
getViewer, setAdaptable
activateChildren, adaptableProperty, attachToAnchorageVisual, deactivateChildren, detachFromAnchorageVisual, getAdaptable, getContentPartChildren, getFeedbackPartChildren, getHandlePartChildren, getRoot, unregister
activate, activeProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenProperty, deactivate, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, dispose, doActivate, doDeactivate, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getParent, getPolicies, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, register, registerAtVisualPartMap, removeChild, removeChildren, reorderChild, setAdapter, setAdapter, setAdapter, setAdapter, setParent, setRefreshVisual, unregisterFromVisualPartMap, unsetAdapter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenProperty, detachAnchored, detachFromAnchorage, detachFromAnchorage, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getParent, getPolicies, getVisual, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, removeChild, removeChildren, reorderChild, setParent, setRefreshVisual
adaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapter
activate, activeProperty, deactivate, isActive
dispose
public 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)
AbstractVisualPart
IVisualPart
'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 createVisual()
AbstractVisualPart
createVisual
in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>
public void doRefreshVisual(javafx.scene.Group visual)
AbstractVisualPart
doRefreshVisual
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 removeChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child, int index)
AbstractVisualPart
IVisualPart
'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.Copyright (c) 2014 itemis AG and others. All rights reserved.