| 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>> |
IDomain.getViewers()
Returns the
IViewers registered at this IDomain (via
IAdaptable.setAdapter(TypeToken, Object)) with the AdapterKeys used
for registration. |
java.util.Map<AdapterKey<? extends IViewer<VR>>,IViewer<VR>> |
IDomain.getViewers()
Returns the
IViewers registered at this IDomain (via
IAdaptable.setAdapter(TypeToken, Object)) with the AdapterKeys used
for registration. |
java.util.Map<AdapterKey<? extends IViewer<VR>>,IViewer<VR>> |
AbstractDomain.getViewers() |
java.util.Map<AdapterKey<? extends IViewer<VR>>,IViewer<VR>> |
AbstractDomain.getViewers() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
FXRootPart.registerAtVisualPartMap(IViewer<javafx.scene.Node> viewer,
javafx.scene.Group visual) |
protected void |
AbstractFXHandlePart.registerAtVisualPartMap(IViewer<javafx.scene.Node> viewer,
V visual) |
protected void |
AbstractFXFeedbackPart.registerAtVisualPartMap(IViewer<javafx.scene.Node> viewer,
V 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 |
AbstractFXHandlePart.unregisterFromVisualPartMap(IViewer<javafx.scene.Node> viewer,
V visual) |
protected void |
AbstractFXFeedbackPart.unregisterFromVisualPartMap(IViewer<javafx.scene.Node> viewer,
V 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> |
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 IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> |
FXPinchSpreadTool.getTargetPart(IViewer<javafx.scene.Node> viewer,
javafx.scene.Node target)
|
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 AbstractFXOnRotatePolicys
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
AbstractFXOnPinchSpreadPolicys 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
|
| Constructor and Description |
|---|
ChangeContentsOperation(IViewer<?> viewer)
Constructs a new
ChangeContentsOperation that can be used to
change the contents of the given IViewer. |
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(java.lang.String label,
IViewer<VR> viewer,
IContentPart<VR,? extends VR> newFocused)
Creates a new
ChangeFocusOperation to assign focus to the given
newFocused IContentPart within the given IViewer. |
DeselectOperation(IViewer<VR> viewer,
java.util.List<? extends IContentPart<VR,? extends VR>> toBeDeselected)
Creates a new
DeselectOperation to change the selection within
the given IViewer by removing the given IContentParts. |
DeselectOperation(java.lang.String label,
IViewer<VR> viewer,
java.util.List<? extends IContentPart<VR,? extends VR>> toBeDeselected)
Creates a new
DeselectOperation to change the selection within
the given IViewer by removing the given IContentParts. |
SelectOperation(IViewer<VR> viewer,
java.util.List<? extends IContentPart<VR,? extends VR>> toBeSelected)
Creates a new
SelectOperation to change the selection within the
given IViewer to prepend the given content parts. |
SelectOperation(java.lang.String label,
IViewer<VR> viewer,
java.util.List<? extends IContentPart<VR,? extends VR>> toBeSelected)
* Creates a new
SelectOperation to change the selection within
the given IViewer to prepend the given content parts. |
| Modifier and Type | Method and Description |
|---|---|
IViewer<VR> |
AbstractRootPart.getAdaptable() |
IViewer<VR> |
IRootPart.getViewer()
|
protected IViewer<VR> |
AbstractVisualPart.getViewer()
Returns the
IViewer that contains this part. |
IViewer<VR> |
AbstractRootPart.getViewer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractVisualPart.register(IViewer<VR> viewer)
Called when a link to the Viewer is obtained.
|
protected void |
AbstractContentPart.register(IViewer<VR> viewer) |
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 |
AbstractVisualPart.unregister(IViewer<VR> viewer)
Called when the link to the Viewer is lost.
|
protected void |
AbstractRootPart.unregister(IViewer<VR> viewer) |
protected void |
AbstractContentPart.unregister(IViewer<VR> viewer) |
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.