Package org.eclipse.gef.mvc.fx.parts
Interface IBendableContentPart<V extends javafx.scene.Node>
-
- Type Parameters:
V- The visual node used by thisIBendableContentPart.
- All Superinterfaces:
IActivatable,IAdaptable,IAdaptable.Bound<IViewer>,IContentPart<V>,IDisposable,IResizableContentPart<V>,ITransformableContentPart<V>,IVisualPart<V>
public interface IBendableContentPart<V extends javafx.scene.Node> extends ITransformableContentPart<V>, IResizableContentPart<V>
AnIContentPartthat supports content related bend, i.e. manipulation of control points.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIBendableContentPart.BendPointA representation of a bend point, which is defined either by a point or by a content anchorage to which the content is attached.-
Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable
IAdaptable.Bound<A extends IAdaptable>
-
Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
IAdaptable.Bound.Impl<T extends IAdaptable>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTROL_ROLE_PREFIXDefault role prefix for intermediaryIBendableContentPart.BendPoints.static java.lang.StringSOURCE_ROLEDefault role for the firstIBendableContentPart.BendPoint.static java.lang.StringTARGET_ROLEDefault role for the lastIBendableContentPart.BendPoint.-
Fields inherited from interface org.eclipse.gef.common.activate.IActivatable
ACTIVE_PROPERTY
-
Fields inherited from interface org.eclipse.gef.common.adapt.IAdaptable
ADAPTERS_PROPERTY
-
Fields inherited from interface org.eclipse.gef.mvc.fx.parts.IContentPart
CONTENT_ANCHORAGES_PROPERTY, CONTENT_CHILDREN_PROPERTY, CONTENT_PROPERTY
-
Fields inherited from interface org.eclipse.gef.mvc.fx.parts.ITransformableContentPart
TRANSFORM_PROVIDER_KEY, TRANSFORM_PROVIDER_ROLE
-
Fields inherited from interface org.eclipse.gef.mvc.fx.parts.IVisualPart
ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default ConnectiongetBendableVisual()Deprecated.This method is no longer used as part of theIBendableContentPartcontract.java.util.List<IBendableContentPart.BendPoint>getContentBendPoints()Returns the currentIBendableContentPart.BendPoints of thisIBendableContentPart's content.default DimensiongetContentSize()Returns the current size according to this part's content.default javafx.scene.transform.AffinegetContentTransform()Returns the currentAffineaccording to thisITransformableContentPart's content.default java.lang.StringgetRole(java.util.List<IBendableContentPart.BendPoint> bendPoints, int index)Returns the role that is used to determine theIAnchorfor theIBendableContentPart.BendPointat the given index of the givenListofIBendableContentPart.BendPoints.default java.util.List<IBendableContentPart.BendPoint>getVisualBendPoints()Returns the currentIBendableContentPart.BendPoints of thisIBendableContentPart's visual.default DimensiongetVisualSize()Returns the current size according to thisIResizableContentPart's visual.default javafx.scene.transform.AffinegetVisualTransform()Returns the current transform according to thisITransformableContentPart's visual.voidsetContentBendPoints(java.util.List<IBendableContentPart.BendPoint> bendPoints)Bends the content element as specified through the given bend points.default voidsetContentSize(Dimension totalSize)Resizes the content element as specified by the givenDimension.default voidsetContentTransform(javafx.scene.transform.Affine totalTransform)Set the content transformation as specified by the givenAffineTransform.default voidsetVisualBendPoints(java.util.List<IBendableContentPart.BendPoint> bendPoints)Bends the visual as specified by the given bend points.default voidsetVisualSize(Dimension totalSize)Resizes the visual of thisIResizableContentPartto the given size.default voidsetVisualTransform(javafx.scene.transform.Affine totalTransform)-
Methods inherited from interface org.eclipse.gef.common.activate.IActivatable
activate, activeProperty, deactivate, isActive
-
Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable
adaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapter
-
Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptableProperty, getAdaptable, setAdaptable
-
Methods inherited from interface org.eclipse.gef.mvc.fx.parts.IContentPart
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, getContent, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, removeContentChild, reorderContentChild, setContent
-
Methods inherited from interface org.eclipse.gef.common.dispose.IDisposable
dispose
-
Methods inherited from interface org.eclipse.gef.mvc.fx.parts.IVisualPart
addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, detachAnchored, detachFromAnchorage, detachFromAnchorage, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getViewer, getVisual, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, removeChild, removeChildren, reorderChild, setParent, setRefreshVisual
-
-
-
-
Field Detail
-
SOURCE_ROLE
static final java.lang.String SOURCE_ROLE
Default role for the firstIBendableContentPart.BendPoint.- See Also:
- Constant Field Values
-
TARGET_ROLE
static final java.lang.String TARGET_ROLE
Default role for the lastIBendableContentPart.BendPoint.- See Also:
- Constant Field Values
-
CONTROL_ROLE_PREFIX
static final java.lang.String CONTROL_ROLE_PREFIX
Default role prefix for intermediaryIBendableContentPart.BendPoints.- See Also:
- Constant Field Values
-
-
Method Detail
-
getBendableVisual
@Deprecated default Connection getBendableVisual()
Deprecated.This method is no longer used as part of theIBendableContentPartcontract. Reason is that IBendableContentPart is no longer bound to aConnectionvisual, while it still provides default behavior for that specific case.Returns the visual to bend.- Returns:
- The visual to bend.
-
getContentBendPoints
java.util.List<IBendableContentPart.BendPoint> getContentBendPoints()
Returns the currentIBendableContentPart.BendPoints of thisIBendableContentPart's content.- Returns:
- The
IBendableContentPart.BendPoints of thisIBendableContentPart's content.
-
getContentSize
default Dimension getContentSize()
Description copied from interface:IResizableContentPartReturns the current size according to this part's content.- Specified by:
getContentSizein interfaceIResizableContentPart<V extends javafx.scene.Node>- Returns:
- The current size according to this part's content.
-
getContentTransform
default javafx.scene.transform.Affine getContentTransform()
Description copied from interface:ITransformableContentPartReturns the currentAffineaccording to thisITransformableContentPart's content.- Specified by:
getContentTransformin interfaceITransformableContentPart<V extends javafx.scene.Node>- Returns:
- The current
Affineaccording to thisITransformableContentPart's content.
-
getRole
default java.lang.String getRole(java.util.List<IBendableContentPart.BendPoint> bendPoints, int index)
Returns the role that is used to determine theIAnchorfor theIBendableContentPart.BendPointat the given index of the givenListofIBendableContentPart.BendPoints.- Parameters:
bendPoints- TheListofIBendableContentPart.BendPoints.index- The index specifying theIBendableContentPart.BendPointfor which to determine the role.- Returns:
- The role that is used to determine the
IAnchorfor the specifiedIBendableContentPart.BendPoint.
-
getVisualBendPoints
default java.util.List<IBendableContentPart.BendPoint> getVisualBendPoints()
Returns the currentIBendableContentPart.BendPoints of thisIBendableContentPart's visual.- Returns:
- The
IBendableContentPart.BendPoints of thisIBendableContentPart's visual.
-
getVisualSize
default Dimension getVisualSize()
Description copied from interface:IResizableContentPartReturns the current size according to thisIResizableContentPart's visual.- Specified by:
getVisualSizein interfaceIResizableContentPart<V extends javafx.scene.Node>- Returns:
- The current size according to this
IResizableContentPart's visual.
-
getVisualTransform
default javafx.scene.transform.Affine getVisualTransform()
Description copied from interface:ITransformableContentPartReturns the current transform according to thisITransformableContentPart's visual.- Specified by:
getVisualTransformin interfaceITransformableContentPart<V extends javafx.scene.Node>- Returns:
- The current transform according to this
ITransformableContentPart's visual.
-
setContentBendPoints
void setContentBendPoints(java.util.List<IBendableContentPart.BendPoint> bendPoints)
Bends the content element as specified through the given bend points.- Parameters:
bendPoints- The bend points.
-
setContentSize
default void setContentSize(Dimension totalSize)
Description copied from interface:IResizableContentPartResizes the content element as specified by the givenDimension.- Specified by:
setContentSizein interfaceIResizableContentPart<V extends javafx.scene.Node>- Parameters:
totalSize- The new size.
-
setContentTransform
default void setContentTransform(javafx.scene.transform.Affine totalTransform)
Description copied from interface:ITransformableContentPartSet the content transformation as specified by the givenAffineTransform.- Specified by:
setContentTransformin interfaceITransformableContentPart<V extends javafx.scene.Node>- Parameters:
totalTransform- TheAffineTransformto set.
-
setVisualBendPoints
default void setVisualBendPoints(java.util.List<IBendableContentPart.BendPoint> bendPoints)
Bends the visual as specified by the given bend points.- Parameters:
bendPoints- The bend points.
-
setVisualSize
default void setVisualSize(Dimension totalSize)
Description copied from interface:IResizableContentPartResizes the visual of thisIResizableContentPartto the given size.- Specified by:
setVisualSizein interfaceIResizableContentPart<V extends javafx.scene.Node>- Parameters:
totalSize- The new size for thisIResizableContentPart's visual.
-
setVisualTransform
default void setVisualTransform(javafx.scene.transform.Affine totalTransform)
Description copied from interface:ITransformableContentPart- Specified by:
setVisualTransformin interfaceITransformableContentPart<V extends javafx.scene.Node>- Parameters:
totalTransform- TheAffinethat is to be set as thevisual transformof thisITransformableContentPart.
-
-