Package | Description |
---|---|
org.eclipse.gef4.mvc.behaviors |
This package contains the
IBehavior
and AbstractBehavior definitions. |
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.policies |
This package contains all
IPolicy
implementations contributed by MVC.FX. |
org.eclipse.gef4.mvc.models |
This package contains all viewer models, i.e. the data constituting a viewer
state.
|
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.policies |
This package contains the
IPolicy (and
AbstractPolicy ) abstraction and
concrete implementations for the manipulation of the
ContentModel :
ContentPolicy ,
CreationPolicy , and
DeletionPolicy . |
org.eclipse.gef4.mvc.viewer |
This package contains the
IViewer
abstraction and the related
AbstractViewer realization. |
Modifier and Type | Method and Description |
---|---|
protected IContentPart<VR,? extends VR> |
ContentBehavior.findOrCreatePartFor(java.lang.Object content)
Finds/Revives/Creates an
IContentPart for the given
content Object . |
IContentPart<VR,? extends VR> |
ContentPartPool.remove(java.lang.Object content)
Retrieves an
IContentPart for the given content element and
removes it from the pool. |
Modifier and Type | Method and Description |
---|---|
void |
ContentPartPool.add(IContentPart<VR,? extends VR> part)
Adds an
IContentPart to this pool. |
protected void |
ContentBehavior.disposeIfObsolete(IContentPart<VR,? extends VR> contentPart)
If the given
IContentPart does neither have a parent nor any
anchoreds, then it's content is set to null and the part is
added to the ContentPartPool . |
Modifier and Type | Method and Description |
---|---|
protected void |
SelectionBehavior.addFeedbackAndHandles(java.util.List<? extends IContentPart<VR,? extends VR>> selected)
Creates feedback parts and handle parts for the given list of (selected)
IContentPart s. |
protected void |
SelectionBehavior.removeFeedbackAndHandles(java.util.List<? extends IContentPart<VR,? extends VR>> selected)
Removes feedback parts and handle parts for the given list of (selected)
IContentPart s. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractFXContentPart<V extends javafx.scene.Node>
The
AbstractFXContentPart is an IContentPart implementation
that binds the VR type parameter (visual root type) to Node . |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> |
FXMarqueeOnDragPolicy.getParts(java.util.List<javafx.scene.Node> nodes)
|
java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> |
FXRelocateOnDragPolicy.getTargetParts()
Returns a
List containing all IContentPart s that should
be relocated by this policy. |
protected java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> |
FXRotateSelectedOnHandleDragPolicy.getTargetParts()
Returns a
List containing the whole selection . |
java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> |
FXScaleRelocateOnHandleDragPolicy.getTargetParts()
Returns a
List containing all IContentPart s that should
be scaled/relocated by this policy. |
protected java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> |
FXRotateSelectedOnRotatePolicy.getTargetParts()
Returns a
List containing all IContentPart s that should
be rotated by this policy. |
Modifier and Type | Method and Description |
---|---|
protected FXResizeRelocatePolicy |
FXRelocateOnDragPolicy.getResizeRelocatePolicy(IContentPart<javafx.scene.Node,? extends javafx.scene.Node> part)
Returns the
FXResizeRelocatePolicy that is installed on the given
IContentPart . |
protected FXScaleRelocatePolicy |
FXScaleRelocateOnHandleDragPolicy.getScaleRelocatePolicy(IContentPart<javafx.scene.Node,? extends javafx.scene.Node> part)
Returns the
FXScaleRelocatePolicy that is installed on the given
IContentPart . |
protected Rectangle |
FXScaleRelocateOnHandleDragPolicy.getVisualBounds(IContentPart<javafx.scene.Node,? extends javafx.scene.Node> contentPart)
Returns a
Rectangle representing the visual bounds of the given
IContentPart within the coordinate system of the Scene . |
Modifier and Type | Method and Description |
---|---|
IContentPart<VR,? extends VR> |
FocusModel.getFocused()
Returns the
IContentPart which has keyboard focus, or
null if no IContentPart currently has keyboard
focus. |
Modifier and Type | Method and Description |
---|---|
java.util.List<IContentPart<VR,? extends VR>> |
SelectionModel.getSelected()
Returns an unmodifiable list of the currently selected
IContentPart s. |
Modifier and Type | Method and Description |
---|---|
boolean |
SelectionModel.isSelected(IContentPart<VR,? extends VR> contentPart)
Returns
true if the given IContentPart is part of
the current selection. |
void |
FocusModel.setFocused(IContentPart<VR,? extends VR> focusPart)
Selects the given IContentPart as the focus part.
|
Modifier and Type | Method and Description |
---|---|
void |
SelectionModel.appendSelection(java.util.List<? extends IContentPart<VR,? extends VR>> contentParts)
Appends the given
IContentPart s to the current selection, i.e. |
void |
SelectionModel.deselect(java.util.Collection<? extends IContentPart<VR,? extends VR>> contentParts)
Removes the given
IContentPart s from the current selection. |
void |
SelectionModel.select(java.util.List<? extends IContentPart<VR,? extends VR>> additionalSelected)
Updates the current selection by adding the given list of
IContentPart s, preserving already selected elements. |
void |
SelectionModel.updateSelection(java.util.List<? extends IContentPart<VR,? extends VR>> newSelection)
Replaces the whole selection with the given list of
IContentPart
s. |
Constructor and Description |
---|
AddContentChildOperation(IContentPart<VR,? extends VR> parent,
java.lang.Object contentChild,
int index)
Creates a new
AddContentChildOperation for adding the given
contentChild Object to the content children of the given
parent IContentPart . |
AttachToContentAnchorageOperation(IContentPart<VR,? extends VR> anchored,
java.lang.Object contentAnchorage,
java.lang.String role)
Creates a new
AttachToContentAnchorageOperation to attach the
given anchored IContentPart to the given
contentAnchorage under the specified role, so that it will
be returned by subsequent calls to
getContentAnchorages() . |
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(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 . |
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 . |
DetachFromContentAnchorageOperation(IContentPart<VR,? extends VR> anchored,
java.lang.Object contentAnchorage,
java.lang.String role)
Creates a new
DetachFromContentAnchorageOperation to detach the
given anchored IContentPart from the given
contentAnchorage under the specified role, so that it will
not be returned by subsequent calls to
getContentAnchorages() . |
RemoveContentChildOperation(IContentPart<VR,? extends VR> parent,
java.lang.Object contentChild)
Creates a new
RemoveContentChildOperation for removing the given
contentChild Object from the content children of the given
parent IContentPart . |
SynchronizeContentAnchoragesOperation(java.lang.String label,
IContentPart<VR,? extends VR> anchored)
Creates a new
SynchronizeContentAnchoragesOperation for the
synchronization of anchorages and content anchorages of the given
IContentPart . |
SynchronizeContentChildrenOperation(java.lang.String label,
IContentPart<VR,? extends VR> parent)
Creates a new
SynchronizeContentChildrenOperation for the
synchronization of children and content children of the given
IContentPart . |
Constructor and Description |
---|
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(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. |
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. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractContentPart<VR,V extends VR>
The abstract base implementation of
IContentPart , intended to be
sub-classed by clients to create their own custom IContentPart . |
Modifier and Type | Method and Description |
---|---|
IContentPart<VR,? extends VR> |
IContentPartFactory.createContentPart(java.lang.Object content,
IBehavior<VR> contextBehavior,
java.util.Map<java.lang.Object,java.lang.Object> contextMap)
Creates a specific
IContentPart for the given content. |
Modifier and Type | Method and Description |
---|---|
java.util.List<IContentPart<VR,? extends VR>> |
IRootPart.getContentPartChildren()
Returns all children of type
IContentPart contained by this
IRootPart . |
java.util.List<IContentPart<VR,? extends VR>> |
AbstractRootPart.getContentPartChildren() |
Modifier and Type | Method and Description |
---|---|
IContentPart<VR,? extends VR> |
ContentPolicy.getHost() |
Modifier and Type | Method and Description |
---|---|
void |
CreationPolicy.create(IContentPart<VR,? extends VR> parent,
java.lang.Object content)
Adds the given content to the collection of to-be-created contents
in the specified parent.
|
void |
DeletionPolicy.delete(IContentPart<VR,? extends VR>... contentPartsToDelete)
Marks the given
IContentPart s for deletion. |
Modifier and Type | Method and Description |
---|---|
void |
DeletionPolicy.delete(java.util.Collection<IContentPart<VR,? extends VR>> contentPartsToDelete)
Marks the given
IContentPart s for deletion. |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Object,IContentPart<VR,? extends VR>> |
IViewer.getContentPartMap()
Returns the
Map for registering IContentPart s by their
content. |
java.util.Map<java.lang.Object,IContentPart<VR,? extends VR>> |
AbstractViewer.getContentPartMap() |
Copyright (c) 2014 itemis AG and others. All rights reserved.