Package | Description |
---|---|
org.eclipse.gef4.mvc.domain |
This package contains the
IDomain
abstraction and its related
AbstractDomain realization. |
org.eclipse.gef4.mvc.fx.parts |
This package contains all JavaFX-specific
IContentPart ,
IVisualPart ,
IFeedbackPart , and
IHandlePart implementations and related
classes. |
org.eclipse.gef4.mvc.fx.tools |
This package contains JavaFX-specific
ITool implementations for different
interactions (e.g. mouse drag). |
org.eclipse.gef4.mvc.fx.ui.parts |
This package contains specific Eclipse
ViewPart
and EditorPart implementations which wrap an
FXCanvas . |
org.eclipse.gef4.mvc.fx.viewer | |
org.eclipse.gef4.mvc.operations |
This package contains implementations of
IUndoableOperation which can be
used to manipulate the default models, especially content creation and
removal. |
org.eclipse.gef4.mvc.parts |
This package contains all abstractions related to controllers (aka parts) in
a model-view-controller architecture.
|
org.eclipse.gef4.mvc.viewer |
This package contains the
IViewer
abstraction and the related
AbstractViewer realization. |
Modifier and Type | Method and Description |
---|---|
java.util.Map<AdapterKey<? extends IViewer<VR>>,IViewer<VR>> |
AbstractDomain.getViewers() |
java.util.Map<AdapterKey<? extends IViewer<VR>>,IViewer<VR>> |
AbstractDomain.getViewers() |
java.util.Map<AdapterKey<? extends IViewer<VR>>,IViewer<VR>> |
IDomain.getViewers()
Returns the
IViewer s registered at this IDomain (via
IAdaptable.setAdapter(AdapterKey, Object) ) with the AdapterKey s
used for registration. |
java.util.Map<AdapterKey<? extends IViewer<VR>>,IViewer<VR>> |
IDomain.getViewers()
Returns the
IViewer s registered at this IDomain (via
IAdaptable.setAdapter(AdapterKey, Object) ) with the AdapterKey s
used for registration. |
Modifier and Type | Method and Description |
---|---|
protected void |
FXRootPart.registerAtVisualPartMap(IViewer<javafx.scene.Node> viewer,
javafx.scene.Group visual) |
protected void |
AbstractFXContentPart.registerAtVisualPartMap(IViewer<javafx.scene.Node> viewer,
V visual) |
void |
AbstractFXRootPart.setAdaptable(IViewer<javafx.scene.Node> viewer) |
protected void |
FXRootPart.unregisterFromVisualPartMap(IViewer<javafx.scene.Node> viewer,
javafx.scene.Group visual) |
protected void |
AbstractFXContentPart.unregisterFromVisualPartMap(IViewer<javafx.scene.Node> viewer,
V visual) |
Modifier and Type | Method and Description |
---|---|
static <T extends IPolicy<javafx.scene.Node>> |
FXPartUtils.getTargetPart(java.util.Collection<IViewer<javafx.scene.Node>> viewers,
javafx.scene.Node visual,
java.lang.Class<T> supportedPolicy,
boolean searchHierarchy)
Returns the first
IVisualPart in the given list of viewers, for
which both of the following properties hold:
Supports the specified policy (which may be null ). |
Modifier and Type | Method and Description |
---|---|
protected IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> |
FXPinchSpreadTool.getTargetPart(IViewer<javafx.scene.Node> viewer,
javafx.scene.Node target)
|
protected IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> |
FXRotateTool.getTargetPart(IViewer<javafx.scene.Node> viewer,
javafx.scene.Node target)
Returns the target
IVisualPart within the given IViewer
for the given target Node that received the input event. |
protected <T extends IPolicy<javafx.scene.Node>> |
FXClickDragTool.getTargetPart(IViewer<javafx.scene.Node> viewer,
javafx.scene.Node target,
java.lang.Class<T> policy)
Returns the target
IVisualPart for the given target Node
within the given IViewer that supports the given policy. |
protected java.util.Set<? extends AbstractFXOnRotatePolicy> |
FXRotateTool.getTargetPolicies(IViewer<javafx.scene.Node> viewer,
javafx.scene.input.RotateEvent e)
Returns a
Set containing all AbstractFXOnRotatePolicy s
that are installed on the target IVisualPart for the given
RotateEvent . |
protected java.util.Set<? extends AbstractFXOnPinchSpreadPolicy> |
FXPinchSpreadTool.getTargetPolicies(IViewer<javafx.scene.Node> viewer,
javafx.scene.input.ZoomEvent e)
Returns a
Set containing all
AbstractFXOnPinchSpreadPolicy s that are supported by the target
IVisualPart for the given ZoomEvent . |
Constructor and Description |
---|
SelectionForwarder(ISelectionProvider selectionProvider,
IViewer<VR> viewer)
Creates a new
SelectionForwarder that registers listeners on the
given ISelectionProvider and the SelectionModel of the
given IViewer to propagate selections from the Eclipse workbench
to the viewer, and vice versa. |
Modifier and Type | Class and Description |
---|---|
class |
FXViewer
|
Modifier and Type | Method and Description |
---|---|
protected ChangeFocusOperation<VR> |
ClearHoverFocusSelectionOperation.getChangeFocusOperation(IViewer<VR> viewer)
|
protected ChangeHoverOperation<VR> |
ClearHoverFocusSelectionOperation.getChangeHoverOperation(IViewer<VR> viewer)
|
protected ChangeSelectionOperation<VR> |
ClearHoverFocusSelectionOperation.getChangeSelectionOperation(IViewer<VR> viewer)
|
Constructor and Description |
---|
ChangeContentsOperation(IViewer<?> viewer,
java.util.List<? extends java.lang.Object> contents)
Creates a new
ChangeContentsOperation for changing the contents
of the given IViewer to the specified list of objects. |
ChangeContentsOperation(java.lang.String label,
IViewer<?> viewer,
java.util.List<? extends java.lang.Object> contents)
Creates a new
ChangeContentsOperation for changing the contents
of the given IViewer to the specified list of objects. |
ChangeFocusOperation(IViewer<VR> viewer,
IContentPart<VR,? extends VR> newFocused)
Creates a new
ChangeFocusOperation to assign focus to the given
newFocused IContentPart within the given IViewer . |
ChangeFocusOperation(IViewer<VR> viewer,
IContentPart<VR,? extends VR> oldFocused,
IContentPart<VR,? extends VR> newFocused)
Creates a new
ChangeFocusOperation to assign focus to the given
newFocused IContentPart within the given IViewer . |
ChangeFocusOperation(java.lang.String label,
IViewer<VR> viewer,
IContentPart<VR,? extends VR> oldFocused,
IContentPart<VR,? extends VR> newFocused)
Creates a new
ChangeFocusOperation to assign focus to the given
newFocused IContentPart within the given IViewer . |
ChangeHoverOperation(IViewer<VR> viewer,
IVisualPart<VR,? extends VR> newHovered)
Creates a new
ChangeHoverOperation to set the given
newHovered IVisualPart as the hovered part within the
given IViewer . |
ChangeHoverOperation(IViewer<VR> viewer,
IVisualPart<VR,? extends VR> oldHovered,
IVisualPart<VR,? extends VR> newHovered)
Creates a new
ChangeHoverOperation to set the given
newHovered IVisualPart as the hovered part within the
given IViewer . |
ChangeHoverOperation(java.lang.String label,
IViewer<VR> viewer,
IVisualPart<VR,? extends VR> oldHovered,
IVisualPart<VR,? extends VR> newHovered)
Creates a new
ChangeHoverOperation to set the given
newHovered IVisualPart as the hovered part within the
given IViewer . |
ChangeSelectionOperation(IViewer<VR> viewer,
java.util.List<IContentPart<VR,? extends VR>> newSelection)
Creates a new
ChangeSelectionOperation to change the selection
within the given IViewer to the given list of
IContentPart s. |
ChangeSelectionOperation(IViewer<VR> viewer,
java.util.List<IContentPart<VR,? extends VR>> oldSelection,
java.util.List<IContentPart<VR,? extends VR>> newSelection)
Creates a new
ChangeSelectionOperation to change the selection
within the given IViewer to the given newSelection. |
ChangeSelectionOperation(java.lang.String label,
IViewer<VR> viewer,
java.util.List<IContentPart<VR,? extends VR>> oldSelection,
java.util.List<IContentPart<VR,? extends VR>> newSelection)
Creates a new
ChangeSelectionOperation to change the selection
within the given IViewer to the given newSelection. |
ClearHoverFocusSelectionOperation(IViewer<VR> viewer)
Creates a new
ClearHoverFocusSelectionOperation for the given
IViewer . |
Modifier and Type | Method and Description |
---|---|
IViewer<VR> |
AbstractRootPart.getAdaptable() |
IViewer<VR> |
IRootPart.getViewer()
|
IViewer<VR> |
AbstractRootPart.getViewer() |
protected IViewer<VR> |
AbstractVisualPart.getViewer()
Returns the
IViewer that contains this part. |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractContentPart.register(IViewer<VR> viewer) |
protected void |
AbstractVisualPart.register(IViewer<VR> viewer)
Called when a link to the Viewer is obtained.
|
protected void |
AbstractContentPart.registerAtContentPartMap(IViewer<VR> viewer,
java.lang.Object content)
Registers the model in the
getContentPartMap() . |
protected void |
AbstractVisualPart.registerAtVisualPartMap(IViewer<VR> viewer,
V visual)
Registers this part for the given visual in the visual-part-map of the
given
IViewer . |
void |
AbstractRootPart.setAdaptable(IViewer<VR> viewer) |
protected void |
AbstractContentPart.unregister(IViewer<VR> viewer) |
protected void |
AbstractVisualPart.unregister(IViewer<VR> viewer)
Called when the link to the Viewer is lost.
|
protected void |
AbstractContentPart.unregisterFromContentPartMap(IViewer<VR> viewer,
java.lang.Object content)
Unregisters the model in the
getContentPartMap() . |
protected void |
AbstractVisualPart.unregisterFromVisualPartMap(IViewer<VR> viewer,
V visual)
Removes the given visual from the visual-part-map of the given viewer.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractViewer<VR> |
Copyright (c) 2014 itemis AG and others. All rights reserved.