public class FXSelectionFeedbackPart extends AbstractFXFeedbackPart<FXGeometryNode<IGeometry>>
FXSelectionFeedbackPart is an AbstractFXFeedbackPart that
is parameterized by FXGeometryNode<IGeometry>.IAdaptable.Bound<A extends IAdaptable>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PRIMARY_FOCUSED_EFFECT_PROVIDER
The role name for the
Provider<Effect> that will be
used to decorate a primary, focused selection. |
static java.lang.String |
PRIMARY_UNFOCUSED_EFFECT_PROVIDER
The role name for the
Provider<Effect> that will be
used to decorate a primary, unfocused selection. |
static java.lang.String |
SECONDARY_FOCUSED_EFFECT_PROVIDER
The role name for the
Provider<Effect> that will be
used to decorate a secondary, focused selection. |
static java.lang.String |
SECONDARY_UNFOCUSED_EFFECT_PROVIDER
The role name for the
Provider<Effect> that will be
used to decorate a secondary, unfocused selection. |
pcsANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTYADAPTERS_PROPERTYACTIVE_PROPERTY| Constructor and Description |
|---|
FXSelectionFeedbackPart()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected FXGeometryNode<IGeometry> |
createVisual()
Creates this part's visual.
|
protected void |
doActivate()
Post
AbstractVisualPart.activate() hook that activates this part's children. |
protected void |
doDeactivate()
Pre
AbstractVisualPart.deactivate() hook that deactivates this part's children. |
void |
doRefreshVisual(FXGeometryNode<IGeometry> visual)
Refreshes this part's visualization based on this part's content.
|
protected IGeometry |
getFeedbackGeometry()
Returns the
IGeometry that is provided by this part's
feedback geometry provider. |
protected javafx.scene.effect.Effect |
getPrimarySelectionFeedbackEffect(boolean focused)
Returns the
Effect that is applied to a primary selection. |
protected javafx.scene.effect.Effect |
getSecondarySelectionFeedbackEffect(boolean focused)
Returns the
Effect that is applied to a secondary selection. |
void |
setGeometryProvider(com.google.inject.Provider<? extends IGeometry> geometryProvider)
Sets the feedback geometry provider (
Provider<IGeometry>) of this part to the given value. |
attachToAnchorageVisual, detachFromAnchorageVisualaddChildVisual, removeChildVisualactivate, addAnchorage, addAnchorage, addAnchored, addChild, addChild, addChildren, addChildren, addPropertyChangeListener, deactivate, dispose, getAdapter, getAdapter, getAdapter, getAdapters, getAdapters, getAnchorages, getAnchoreds, getBehaviors, getChildren, getParent, getPolicies, getRoot, getViewer, getVisual, isActive, isRefreshVisual, refreshVisual, register, registerAtVisualPartMap, removeAnchorage, removeAnchorage, removeAnchored, removeChild, removeChildren, removePropertyChangeListener, reorderChild, setAdapter, setAdapter, setAdapter, setAdapters, setParent, setRefreshVisual, unregister, unregisterFromVisualPartMap, unsetAdapterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAnchorage, addAnchorage, addAnchored, addChild, addChild, addChildren, addChildren, getAnchorages, getAnchoreds, getBehaviors, getChildren, getParent, getPolicies, getRoot, getVisual, isRefreshVisual, refreshVisual, removeAnchorage, removeAnchorage, removeAnchored, removeChild, removeChildren, reorderChild, setParent, setRefreshVisualgetAdapter, getAdapter, getAdapter, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, unsetAdapteractivate, deactivate, isActiveaddPropertyChangeListener, removePropertyChangeListenerdisposepublic static final java.lang.String PRIMARY_FOCUSED_EFFECT_PROVIDER
Provider<Effect> that will be
used to decorate a primary, focused selection.public static final java.lang.String PRIMARY_UNFOCUSED_EFFECT_PROVIDER
Provider<Effect> that will be
used to decorate a primary, unfocused selection.public static final java.lang.String SECONDARY_FOCUSED_EFFECT_PROVIDER
Provider<Effect> that will be
used to decorate a secondary, focused selection.public static final java.lang.String SECONDARY_UNFOCUSED_EFFECT_PROVIDER
Provider<Effect> that will be
used to decorate a secondary, unfocused selection.protected FXGeometryNode<IGeometry> createVisual()
AbstractVisualPartcreateVisual in class AbstractVisualPart<javafx.scene.Node,FXGeometryNode<IGeometry>>protected void doActivate()
AbstractVisualPartAbstractVisualPart.activate() hook that activates this part's children.doActivate in class AbstractVisualPart<javafx.scene.Node,FXGeometryNode<IGeometry>>protected void doDeactivate()
AbstractVisualPartAbstractVisualPart.deactivate() hook that deactivates this part's children.doDeactivate in class AbstractVisualPart<javafx.scene.Node,FXGeometryNode<IGeometry>>public void doRefreshVisual(FXGeometryNode<IGeometry> visual)
AbstractVisualPartdoRefreshVisual in class AbstractVisualPart<javafx.scene.Node,FXGeometryNode<IGeometry>>visual - This part's visual.protected IGeometry getFeedbackGeometry()
IGeometry that is provided by this part's
feedback geometry provider.IGeometry that is provided by this part's
feedback geometry provider
.protected javafx.scene.effect.Effect getPrimarySelectionFeedbackEffect(boolean focused)
Effect that is applied to a primary selection. When
an effect provider (either PRIMARY_FOCUSED_EFFECT_PROVIDER or
PRIMARY_UNFOCUSED_EFFECT_PROVIDER) is registered on this part's
anchorage, the provided Effect is returned. Otherwise, a
DropShadow is used.focused - true if the selection is focused, otherwise
false.Effect that is applied to a primary selection.protected javafx.scene.effect.Effect getSecondarySelectionFeedbackEffect(boolean focused)
Effect that is applied to a secondary selection. When
an effect provider (either SECONDARY_FOCUSED_EFFECT_PROVIDER or
SECONDARY_UNFOCUSED_EFFECT_PROVIDER) is registered on this
part's anchorage, the provided Effect is returned. Otherwise, a
DropShadow is used.focused - true if the selection is focused, otherwise
false.Effect that is applied to a primary selection.public void setGeometryProvider(com.google.inject.Provider<? extends IGeometry> geometryProvider)
Provider<IGeometry>) of this part to the given value.geometryProvider - The new feedback geometry provider for this part.Copyright (c) 2014 itemis AG and others. All rights reserved.