public class NodePart extends AbstractContentPart<Group> implements ITransformableContentPart<Group>, IResizableContentPart<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 String |
CSS_CLASS
|
static String |
CSS_CLASS_ICON
The CSS class that is applied to the
Image that displays the
icon. |
static String |
CSS_CLASS_LABEL
The CSS class that is applied to the
Text that displays the
label. |
static 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 Node> child,
int index) |
protected Group |
doCreateVisual() |
protected void |
doDeactivate() |
protected com.google.common.collect.SetMultimap<? extends Object,String> |
doGetContentAnchorages() |
protected List<? extends Object> |
doGetContentChildren() |
protected void |
doRefreshVisual(Group visual) |
protected void |
doRemoveChildVisual(IVisualPart<? extends Node> child,
int index) |
Node |
getContent() |
Dimension |
getContentSize() |
Affine |
getContentTransform() |
protected ImageView |
getIconImageView()
Returns the
ImageView that displays the node's icon. |
protected Text |
getLabelText()
Returns the
Text that displays the node's label. |
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(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 String CSS_CLASS
public static final String CSS_CLASS_SHAPE
Rectangle that displays
border and background.public static final String CSS_CLASS_LABEL
Text that displays the
label.public static final String CSS_CLASS_ICON
Image that displays the
icon.protected void doActivate()
doActivate in class AbstractVisualPart<Group>protected void doAddChildVisual(IVisualPart<? extends Node> child, int index)
doAddChildVisual in class AbstractVisualPart<Group>protected Group doCreateVisual()
doCreateVisual in class AbstractVisualPart<Group>protected void doDeactivate()
doDeactivate in class AbstractVisualPart<Group>protected com.google.common.collect.SetMultimap<? extends Object,String> doGetContentAnchorages()
doGetContentAnchorages in class AbstractContentPart<Group>protected List<? extends Object> doGetContentChildren()
doGetContentChildren in class AbstractContentPart<Group>protected void doRefreshVisual(Group visual)
doRefreshVisual in class AbstractVisualPart<Group>protected void doRemoveChildVisual(IVisualPart<? extends Node> child, int index)
doRemoveChildVisual in class AbstractVisualPart<Group>public Node getContent()
getContent in interface IContentPart<Group>getContent in class AbstractContentPart<Group>public Dimension getContentSize()
getContentSize in interface IResizableContentPart<Group>public Affine getContentTransform()
getContentTransform in interface ITransformableContentPart<Group>protected ImageView getIconImageView()
ImageView that displays the node's icon.ImageView that displays the node's icon.protected Text getLabelText()
Text that displays the node's label.Text that displays the node's label.public 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<Group>public void setContentTransform(Affine totalTransform)
setContentTransform in interface ITransformableContentPart<Group>Copyright (c) 2014 itemis AG and others. All rights reserved.