V
- The visual node used by this IBendableContentPart
.public interface IBendableContentPart<V extends javafx.scene.Node> extends ITransformableContentPart<V>, IResizableContentPart<V>
IContentPart
that supports content related bend, i.e. manipulation
of control points.contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, content
anchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisual
adapters
adaptable
active
Modifier and Type | Interface and Description |
---|---|
static class |
IBendableContentPart.BendPoint
A representation of a bend point, which is defined either by a point or
by a content anchorage to which the content is attached.
|
IAdaptable.Bound<A extends IAdaptable>
IAdaptable.Bound.Impl<T extends IAdaptable>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTROL_ROLE_PREFIX
Default role prefix for intermediary
IBendableContentPart.BendPoint s. |
static java.lang.String |
SOURCE_ROLE
Default role for the first
IBendableContentPart.BendPoint . |
static java.lang.String |
TARGET_ROLE
Default role for the last
IBendableContentPart.BendPoint . |
TRANSFORM_PROVIDER_KEY, TRANSFORM_PROVIDER_ROLE
CONTENT_ANCHORAGES_PROPERTY, CONTENT_CHILDREN_PROPERTY, CONTENT_PROPERTY
ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTY
ADAPTERS_PROPERTY
ACTIVE_PROPERTY
Modifier and Type | Method and Description |
---|---|
default Connection |
getBendableVisual()
Returns the visual to bend.
|
java.util.List<IBendableContentPart.BendPoint> |
getContentBendPoints()
Returns the current
IBendableContentPart.BendPoint s of this
IBendableContentPart 's content. |
default Dimension |
getContentSize()
Returns the current size according to this part's content.
|
default javafx.scene.transform.Affine |
getContentTransform()
Returns the current
Affine according to this
ITransformableContentPart 's content. |
default java.lang.String |
getRole(java.util.List<IBendableContentPart.BendPoint> bendPoints,
int index)
Returns the role that is used to determine the
IAnchor for the
IBendableContentPart.BendPoint at the given index of the given List of
IBendableContentPart.BendPoint s. |
default java.util.List<IBendableContentPart.BendPoint> |
getVisualBendPoints()
Returns the current
IBendableContentPart.BendPoint s of this
IBendableContentPart 's visual. |
default Dimension |
getVisualSize()
Returns the current size according to this
IResizableContentPart
's visual. |
default javafx.scene.transform.Affine |
getVisualTransform()
Returns the current transform according to this
ITransformableContentPart 's visual. |
void |
setContentBendPoints(java.util.List<IBendableContentPart.BendPoint> bendPoints)
Bends the content element as specified through the given bend points.
|
default void |
setContentSize(Dimension totalSize)
Resizes the content element as specified by the given
Dimension . |
default void |
setContentTransform(javafx.scene.transform.Affine totalTransform)
Set the content transformation as specified by the given
AffineTransform . |
default void |
setVisualBendPoints(java.util.List<IBendableContentPart.BendPoint> bendPoints)
Bends the visual as specified by the given bend points.
|
default void |
setVisualSize(Dimension totalSize)
Resizes the visual of this
IResizableContentPart to the given
size. |
default void |
setVisualTransform(javafx.scene.transform.Affine totalTransform)
|
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, getContent, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, removeContentChild, reorderContentChild, setContent
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
adaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapter
adaptableProperty, getAdaptable, setAdaptable
activate, activeProperty, deactivate, isActive
dispose
static final java.lang.String SOURCE_ROLE
IBendableContentPart.BendPoint
.static final java.lang.String TARGET_ROLE
IBendableContentPart.BendPoint
.static final java.lang.String CONTROL_ROLE_PREFIX
IBendableContentPart.BendPoint
s.default Connection getBendableVisual()
java.util.List<IBendableContentPart.BendPoint> getContentBendPoints()
IBendableContentPart.BendPoint
s of this
IBendableContentPart
's content.IBendableContentPart.BendPoint
s of this IBendableContentPart
's
content.default Dimension getContentSize()
IResizableContentPart
getContentSize
in interface IResizableContentPart<V extends javafx.scene.Node>
default javafx.scene.transform.Affine getContentTransform()
ITransformableContentPart
Affine
according to this
ITransformableContentPart
's content.getContentTransform
in interface ITransformableContentPart<V extends javafx.scene.Node>
Affine
according to this
ITransformableContentPart
's content.default java.lang.String getRole(java.util.List<IBendableContentPart.BendPoint> bendPoints, int index)
IAnchor
for the
IBendableContentPart.BendPoint
at the given index of the given List
of
IBendableContentPart.BendPoint
s.bendPoints
- The List
of IBendableContentPart.BendPoint
s.index
- The index specifying the IBendableContentPart.BendPoint
for which to
determine the role.IAnchor
for the
specified IBendableContentPart.BendPoint
.default java.util.List<IBendableContentPart.BendPoint> getVisualBendPoints()
IBendableContentPart.BendPoint
s of this
IBendableContentPart
's visual.IBendableContentPart.BendPoint
s of this IBendableContentPart
's
visual.default Dimension getVisualSize()
IResizableContentPart
IResizableContentPart
's visual.getVisualSize
in interface IResizableContentPart<V extends javafx.scene.Node>
IResizableContentPart
's visual.default javafx.scene.transform.Affine getVisualTransform()
ITransformableContentPart
ITransformableContentPart
's visual.getVisualTransform
in interface ITransformableContentPart<V extends javafx.scene.Node>
ITransformableContentPart
's visual.void setContentBendPoints(java.util.List<IBendableContentPart.BendPoint> bendPoints)
bendPoints
- The bend points.default void setContentSize(Dimension totalSize)
IResizableContentPart
Dimension
.setContentSize
in interface IResizableContentPart<V extends javafx.scene.Node>
totalSize
- The new size.default void setContentTransform(javafx.scene.transform.Affine totalTransform)
ITransformableContentPart
AffineTransform
.setContentTransform
in interface ITransformableContentPart<V extends javafx.scene.Node>
totalTransform
- The AffineTransform
to set.default void setVisualBendPoints(java.util.List<IBendableContentPart.BendPoint> bendPoints)
bendPoints
- The bend points.default void setVisualSize(Dimension totalSize)
IResizableContentPart
IResizableContentPart
to the given
size.setVisualSize
in interface IResizableContentPart<V extends javafx.scene.Node>
totalSize
- The new size for this IResizableContentPart
's visual.default void setVisualTransform(javafx.scene.transform.Affine totalTransform)
ITransformableContentPart
setVisualTransform
in interface ITransformableContentPart<V extends javafx.scene.Node>
totalTransform
- The Affine
that is to be set as the
visual transform
of this
ITransformableContentPart
.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.