public class NodePart extends AbstractContentPart<javafx.scene.Group> implements ITransformableContentPart<javafx.scene.Group>, IResizableContentPart<javafx.scene.Group>
contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, contentactive, adaptable, adapters, anchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisualcontentAnchoragesUnmodifiable, contentChildrenUnmodifiable, contentanchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisualadaptersadaptableactive| Modifier and Type | Class and Description |
|---|---|
static class |
NodePart.NestedGraphIcon
JavaFX Node displaying a small icon representing a nested graph.
|
IAdaptable.Bound<A extends IAdaptable>IAdaptable.Bound.Impl<T extends IAdaptable>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CSS_CLASS
|
static java.lang.String |
CSS_CLASS_ICON
The CSS class that is applied to the
Image that displays the icon. |
static java.lang.String |
CSS_CLASS_LABEL
The CSS class that is applied to the
Text that displays the label. |
static java.lang.String |
CSS_CLASS_SHAPE
The CSS class that is applied to the
Rectangle that displays border
and background. |
protected static double |
DEFAULT_CHILDREN_PANE_HEIGHT
The default height of the nested graph area.
|
protected static double |
DEFAULT_CHILDREN_PANE_WIDTH
The default width of the nested graph area.
|
static double |
DEFAULT_NESTED_CHILDREN_ZOOM_FACTOR
The default zoom factor that is applied to the nested graph area.
|
static double |
DEFAULT_OUTER_LAYOUT_CONTAINER_HEIGHT_NESTING
The default height for the outer most layout container of this node in the
case of nested content.
|
static double |
DEFAULT_OUTER_LAYOUT_CONTAINER_WIDTH_NESTING
The default width for the outer most layout container of this node in the
case of nested content.
|
protected static double |
DEFAULT_SHAPE_PADDING
The default padding between the node's border and its content.
|
protected static double |
ZOOMLEVEL_SHOW_NESTED_GRAPH
The zoom level that needs to be reached for the
doGetContentChildren() method to return a nested Graph. |
TRANSFORM_PROVIDER_KEY, TRANSFORM_PROVIDER_ROLECONTENT_ANCHORAGES_PROPERTY, CONTENT_CHILDREN_PROPERTY, CONTENT_PROPERTYANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTYADAPTERS_PROPERTYACTIVE_PROPERTY| Constructor and Description |
|---|
NodePart() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doActivate() |
protected void |
doAddChildVisual(IVisualPart<? extends javafx.scene.Node> child,
int index) |
protected javafx.scene.Group |
doCreateVisual() |
protected void |
doDeactivate() |
protected com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> |
doGetContentAnchorages() |
protected java.util.List<? extends java.lang.Object> |
doGetContentChildren() |
protected void |
doRefreshVisual(javafx.scene.Group visual) |
protected void |
doRemoveChildVisual(IVisualPart<? extends javafx.scene.Node> child,
int index) |
Node |
getContent() |
Dimension |
getContentSize() |
javafx.scene.transform.Affine |
getContentTransform() |
protected javafx.scene.image.ImageView |
getIconImageView()
Returns the
ImageView that displays the node's icon. |
protected javafx.scene.text.Text |
getLabelText()
Returns the
Text that displays the node's label. |
javafx.scene.Node |
getShape()
Returns the
Shape that displays the node's border and background. |
protected void |
refreshIcon()
|
protected void |
refreshLabel()
Changes the label of this
NodePart to the given value. |
protected void |
refreshTooltip()
Changes the tooltip of this
NodePart to the given value. |
void |
setContentSize(Dimension size) |
void |
setContentTransform(javafx.scene.transform.Affine totalTransform) |
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, doAddContentChild, doAttachToContentAnchorage, doDetachFromContentAnchorage, doRemoveContentChild, doReorderContentChild, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, register, registerAtContentPartMap, removeContentChild, reorderContentChild, setContent, unregister, unregisterFromContentPartMapactivate, activateAdapters, activateChildren, activeProperty, adaptableProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, deactivate, deactivateAdapters, deactivateChildren, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, dispose, doAttachToAnchorageVisual, doDetachFromAnchorageVisual, getAdaptable, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, registerAtVisualPartMap, removeChild, removeChildren, reorderChild, setAdaptable, setAdapter, setAdapter, setAdapter, setAdapter, setParent, setRefreshVisual, unregisterFromVisualPartMap, unsetAdapterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVisualTransform, setVisualTransformgetVisualSize, setVisualSizeaddContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, removeContentChild, reorderContentChild, setContentaddChild, 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, setRefreshVisualadaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapteradaptableProperty, getAdaptable, setAdaptableactivate, activeProperty, deactivate, isActivedisposeprotected static final double DEFAULT_SHAPE_PADDING
protected static final double ZOOMLEVEL_SHOW_NESTED_GRAPH
doGetContentChildren() method to return a nested Graph.protected static final double DEFAULT_CHILDREN_PANE_WIDTH
protected static final double DEFAULT_CHILDREN_PANE_HEIGHT
public static final double DEFAULT_NESTED_CHILDREN_ZOOM_FACTOR
public static final double DEFAULT_OUTER_LAYOUT_CONTAINER_WIDTH_NESTING
public static final double DEFAULT_OUTER_LAYOUT_CONTAINER_HEIGHT_NESTING
public static final java.lang.String CSS_CLASS
public static final java.lang.String CSS_CLASS_SHAPE
Rectangle that displays border
and background.public static final java.lang.String CSS_CLASS_LABEL
Text that displays the label.public static final java.lang.String CSS_CLASS_ICON
Image that displays the icon.protected void doActivate()
doActivate in class AbstractVisualPart<javafx.scene.Group>protected void doAddChildVisual(IVisualPart<? extends javafx.scene.Node> child, int index)
doAddChildVisual in class AbstractVisualPart<javafx.scene.Group>protected javafx.scene.Group doCreateVisual()
doCreateVisual in class AbstractVisualPart<javafx.scene.Group>protected void doDeactivate()
doDeactivate in class AbstractVisualPart<javafx.scene.Group>protected com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> doGetContentAnchorages()
doGetContentAnchorages in class AbstractContentPart<javafx.scene.Group>protected java.util.List<? extends java.lang.Object> doGetContentChildren()
doGetContentChildren in class AbstractContentPart<javafx.scene.Group>protected void doRefreshVisual(javafx.scene.Group visual)
doRefreshVisual in class AbstractVisualPart<javafx.scene.Group>protected void doRemoveChildVisual(IVisualPart<? extends javafx.scene.Node> child, int index)
doRemoveChildVisual in class AbstractVisualPart<javafx.scene.Group>public Node getContent()
getContent in interface IContentPart<javafx.scene.Group>getContent in class AbstractContentPart<javafx.scene.Group>public Dimension getContentSize()
getContentSize in interface IResizableContentPart<javafx.scene.Group>public javafx.scene.transform.Affine getContentTransform()
getContentTransform in interface ITransformableContentPart<javafx.scene.Group>protected javafx.scene.image.ImageView getIconImageView()
ImageView that displays the node's icon.ImageView that displays the node's icon.protected javafx.scene.text.Text getLabelText()
Text that displays the node's label.Text that displays the node's label.public javafx.scene.Node getShape()
Shape that displays the node's border and background.Shape that displays the node's border and background.protected void refreshIcon()
protected void refreshLabel()
NodePart to the given value.protected void refreshTooltip()
NodePart to the given value.public void setContentSize(Dimension size)
setContentSize in interface IResizableContentPart<javafx.scene.Group>public void setContentTransform(javafx.scene.transform.Affine totalTransform)
setContentTransform in interface ITransformableContentPart<javafx.scene.Group>Copyright (c) 2014 itemis AG and others. All rights reserved.