public class NodeContentPart extends AbstractFXContentPart<javafx.scene.Group>
Modifier and Type | Class and Description |
---|---|
static class |
NodeContentPart.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 |
protected static double |
CHILDREN_PANE_WIDTH_THRESHOLD |
static java.lang.String |
CSS_CLASS |
static java.lang.String |
CSS_CLASS_ICON |
static java.lang.String |
CSS_CLASS_LABEL |
static java.lang.String |
CSS_CLASS_SHAPE |
protected static double |
DEFAULT_CHILDREN_PANE_HEIGHT |
protected static double |
DEFAULT_CHILDREN_PANE_WIDTH |
protected static double |
DEFAULT_PADDING |
protected static double |
ZOOMLEVEL_SHOW_NESTED_GRAPH |
pcs
CONTENT_PROPERTY
ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY
ADAPTERS_PROPERTY
ACTIVE_PROPERTY
Constructor and Description |
---|
NodeContentPart() |
Modifier and Type | Method and Description |
---|---|
protected void |
addChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child,
int index) |
protected javafx.scene.layout.Pane |
createNestedContentPane() |
protected javafx.scene.layout.StackPane |
createNestedContentStackPane(javafx.scene.layout.Pane nestedContentPane) |
protected void |
createNodeVisual(javafx.scene.Group group,
javafx.scene.shape.Rectangle rect,
javafx.scene.image.ImageView iconImageView,
javafx.scene.text.Text labelText,
javafx.scene.layout.StackPane nestedContentStackPane)
Creates the node visual.
|
protected javafx.scene.Group |
createVisual() |
protected void |
doActivate() |
protected void |
doDeactivate() |
void |
doRefreshVisual(javafx.scene.Group visual) |
Node |
getContent() |
java.util.List<? extends java.lang.Object> |
getContentChildren() |
protected javafx.scene.image.ImageView |
getIconImageView() |
protected javafx.scene.text.Text |
getLabelText() |
javafx.scene.layout.Pane |
getNestedChildrenPane() |
protected javafx.scene.layout.StackPane |
getNestedContentStackPane() |
protected javafx.scene.Node |
getNestedGraphIcon() |
protected javafx.scene.shape.Rectangle |
getNodeRect() |
protected double |
getPadding() |
protected void |
hideNestedGraphIcon() |
protected boolean |
isNesting() |
protected void |
refreshCssClass(javafx.scene.Group visual,
java.lang.String cssClass) |
protected java.lang.String |
refreshFisheye(javafx.scene.Group visual,
java.util.Map<java.lang.String,java.lang.Object> attrs,
java.lang.String str) |
protected void |
refreshIcon(javafx.scene.Group visual,
java.lang.Object icon) |
protected void |
refreshLabel(javafx.scene.Group visual,
java.lang.String str) |
protected void |
refreshNestedGraphArea(javafx.scene.Group visual,
boolean isNesting)
When this node has a nested graph, space is reserved for it, so that the
transition from an icon to the real graph will not change the node's
size.
|
protected void |
refreshTooltip(javafx.scene.Group visual,
java.lang.Object tooltip) |
protected void |
removeChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child,
int index) |
protected void |
resizeNestedGraphArea(double dw,
double dh)
Resizes the area for the graph nested in this node.
|
protected void |
setNestedGraphIcon(javafx.scene.Node nestedGraphIcon) |
protected void |
showNestedGraphIcon() |
registerAtVisualPartMap, registerNestedVisuals, unregisterFromVisualPartMap, unregisterNestedVisuals
addContentChild, attachToContentAnchorage, detachFromContentAnchorage, getContentAnchorages, register, registerAtContentPartMap, removeContentChild, setContent, unregister, unregisterFromContentPartMap
activate, addAnchorage, addAnchorage, addAnchored, addChild, addChild, addChildren, addChildren, addPropertyChangeListener, attachToAnchorageVisual, deactivate, detachFromAnchorageVisual, dispose, getAdapter, getAdapter, getAdapter, getAdapters, getAdapters, getAnchorages, getAnchoreds, getBehaviors, getChildren, getParent, getPolicies, getRoot, getViewer, getVisual, isActive, isRefreshVisual, refreshVisual, removeAnchorage, removeAnchorage, removeAnchored, removeChild, removeChildren, removePropertyChangeListener, reorderChild, setAdapter, setAdapter, setAdapter, setAdapters, setParent, setRefreshVisual, unsetAdapter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAnchorage, addAnchorage, addAnchored, addChild, addChild, addChildren, addChildren, getAnchorages, getAnchoreds, getBehaviors, getChildren, getParent, getPolicies, getRoot, getVisual, isRefreshVisual, refreshVisual, removeAnchorage, removeAnchorage, removeAnchored, removeChild, removeChildren, reorderChild, setParent, setRefreshVisual
getAdapter, getAdapter, getAdapter, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, unsetAdapter
activate, deactivate, isActive
addPropertyChangeListener, removePropertyChangeListener
dispose
protected static final double DEFAULT_PADDING
protected static final double ZOOMLEVEL_SHOW_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 java.lang.String CSS_CLASS
public static final java.lang.String CSS_CLASS_SHAPE
public static final java.lang.String CSS_CLASS_LABEL
public static final java.lang.String CSS_CLASS_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.layout.Pane createNestedContentPane()
protected javafx.scene.layout.StackPane createNestedContentStackPane(javafx.scene.layout.Pane nestedContentPane)
protected void createNodeVisual(javafx.scene.Group group, javafx.scene.shape.Rectangle rect, javafx.scene.image.ImageView iconImageView, javafx.scene.text.Text labelText, javafx.scene.layout.StackPane nestedContentStackPane)
ImageView
, Text
, and
StackPane
are inserted into that node visual to display the
node's icon, label and nested children, respectively. The node visual
needs to be inserted into the given Group
.group
- This node's visual.iconImageView
- The ImageView
displaying the node's icon.labelText
- The Text
displaying the node's label.nestedContentStackPane
- The StackPane
displaying the node's nested content.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>
public 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>
public java.util.List<? extends java.lang.Object> getContentChildren()
getContentChildren
in interface IContentPart<javafx.scene.Node,javafx.scene.Group>
getContentChildren
in class AbstractContentPart<javafx.scene.Node,javafx.scene.Group>
protected javafx.scene.image.ImageView getIconImageView()
protected javafx.scene.text.Text getLabelText()
public javafx.scene.layout.Pane getNestedChildrenPane()
protected javafx.scene.layout.StackPane getNestedContentStackPane()
protected javafx.scene.Node getNestedGraphIcon()
protected javafx.scene.shape.Rectangle getNodeRect()
protected double getPadding()
protected void hideNestedGraphIcon()
protected boolean isNesting()
protected void refreshCssClass(javafx.scene.Group visual, java.lang.String cssClass)
protected java.lang.String refreshFisheye(javafx.scene.Group visual, java.util.Map<java.lang.String,java.lang.Object> attrs, java.lang.String str)
protected void refreshIcon(javafx.scene.Group visual, java.lang.Object icon)
protected void refreshLabel(javafx.scene.Group visual, java.lang.String str)
protected void refreshNestedGraphArea(javafx.scene.Group visual, boolean isNesting)
visual
- The visual of this part.isNesting
- true
if this node has a nested graph, otherwise
false
.protected void refreshTooltip(javafx.scene.Group visual, java.lang.Object tooltip)
protected void removeChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child, int index)
removeChildVisual
in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>
protected void resizeNestedGraphArea(double dw, double dh)
dw
- Delta width.dh
- Delta height.protected void setNestedGraphIcon(javafx.scene.Node nestedGraphIcon)
protected void showNestedGraphIcon()
Copyright (c) 2014 itemis AG and others. All rights reserved.