public class NodePart extends AbstractFXContentPart<javafx.scene.Group> implements ITransformableContentPart<javafx.scene.Node,javafx.scene.Group>, IResizableContentPart<javafx.scene.Node,javafx.scene.Group>
contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, content
active, adapters, anchoragesUnmodifiable, anchoredsUnmodifiable, children, parent, refreshVisual
contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, content
anchoragesUnmodifiable, anchoredsUnmodifiable, children, parent, refreshVisual
adapters
active
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>
Modifier and Type | Field and Description |
---|---|
protected static double |
CHILDREN_PANE_HEIGHT_THRESHOLD
The minimum height for the nested graph area.
|
protected static double |
CHILDREN_PANE_WIDTH_THRESHOLD
The minimum width for the nested graph area.
|
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 . |
CONTENT_ANCHORAGES_PROPERTY, CONTENT_CHILDREN_PROPERTY, CONTENT_PROPERTY
ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTY
ADAPTERS_PROPERTY
ACTIVE_PROPERTY
Constructor and Description |
---|
NodePart() |
Modifier and Type | Method and Description |
---|---|
protected void |
addChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child,
int index) |
protected javafx.scene.Group |
createVisual() |
protected void |
doActivate() |
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) |
Node |
getContent() |
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. |
protected void |
removeChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child,
int index) |
void |
resizeContent(Dimension size) |
void |
transformContent(AffineTransform transform) |
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, doAddContentChild, doAttachToContentAnchorage, doDetachFromContentAnchorage, doRemoveContentChild, doReorderContentChild, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, onContentChanged, refreshContentAnchorages, refreshContentChildren, register, registerAtContentPartMap, removeContentChild, reorderContentChild, setContent, unregister, unregisterFromContentPartMap
activate, activateChildren, activeProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, attachToAnchorageVisual, childrenProperty, deactivate, deactivateChildren, detachAnchored, detachFromAnchorage, detachFromAnchorage, detachFromAnchorageVisual, determineViewer, dispose, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getParent, getPolicies, getRoot, getViewer, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, registerAtVisualPartMap, removeChild, removeChildren, reorderChild, setAdapter, setAdapter, setAdapter, setAdapter, setParent, setRefreshVisual, unregisterFromVisualPartMap, unsetAdapter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, removeContentChild, reorderContentChild, setContent
addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenProperty, detachAnchored, detachFromAnchorage, detachFromAnchorage, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getParent, getPolicies, getRoot, getVisual, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, removeChild, removeChildren, reorderChild, setParent, setRefreshVisual
adaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapter
activate, activeProperty, deactivate, isActive
dispose
protected 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
protected static final double CHILDREN_PANE_WIDTH_THRESHOLD
protected static final double CHILDREN_PANE_HEIGHT_THRESHOLD
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 addChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child, int index)
addChildVisual
in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>
protected javafx.scene.Group createVisual()
createVisual
in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>
protected void doActivate()
doActivate
in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>
protected void doDeactivate()
doDeactivate
in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>
protected com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> doGetContentAnchorages()
doGetContentAnchorages
in class AbstractContentPart<javafx.scene.Node,javafx.scene.Group>
protected java.util.List<? extends java.lang.Object> doGetContentChildren()
doGetContentChildren
in class AbstractContentPart<javafx.scene.Node,javafx.scene.Group>
protected void doRefreshVisual(javafx.scene.Group visual)
doRefreshVisual
in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>
public Node getContent()
getContent
in interface IContentPart<javafx.scene.Node,javafx.scene.Group>
getContent
in class AbstractContentPart<javafx.scene.Node,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.protected void removeChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child, int index)
removeChildVisual
in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>
public void resizeContent(Dimension size)
resizeContent
in interface IResizableContentPart<javafx.scene.Node,javafx.scene.Group>
public void transformContent(AffineTransform transform)
transformContent
in interface ITransformableContentPart<javafx.scene.Node,javafx.scene.Group>
Copyright (c) 2014 itemis AG and others. All rights reserved.