public class HidingModel extends Object
HidingModel manages a Set of currently hidden
Nodes. The hidden neighbors of a
Node can be identified using
getHiddenNeighbors(org.eclipse.gef.graph.Node).| Type | Property and Description |
|---|---|
ReadOnlySetProperty<Node> |
hidden
Returns a read-only property containing the hidden nodes.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
HIDDEN_PROPERTY
|
| Constructor and Description |
|---|
HidingModel() |
| Modifier and Type | Method and Description |
|---|---|
Set<NodePart> |
getHiddenNeighborParts(NodePart nodePart)
|
Set<Node> |
getHiddenNeighbors(Node node)
|
Set<Node> |
getHiddenNodesUnmodifiable()
|
boolean |
hasHiddenNeighbors(Node node)
Returns
true if at least one neighbor of the given
Node is currently hidden. |
boolean |
hasHiddenNeighbors(NodePart nodePart)
Returns
true if at least one neighbor of the given
NodePart is currently hidden. |
ReadOnlySetProperty<Node> |
hiddenProperty()
Returns a read-only property containing the hidden nodes.
|
void |
hide(Node node)
|
void |
hide(NodePart nodePart)
|
boolean |
isHidden(Node node)
|
boolean |
isHidden(NodePart nodePart)
|
void |
show(Node node)
|
void |
show(NodePart nodePart)
|
public ReadOnlySetProperty<Node> hiddenProperty
public static final String HIDDEN_PROPERTY
Set of hidden Nodes changes.public boolean hasHiddenNeighbors(NodePart nodePart)
true if at least one neighbor of the given
NodePart is currently hidden. Otherwise returns
false.public boolean hasHiddenNeighbors(Node node)
true if at least one neighbor of the given
Node is currently hidden. Otherwise returns
false.public ReadOnlySetProperty<Node> hiddenProperty()
public void hide(NodePart nodePart)
public void hide(Node node)
public boolean isHidden(NodePart nodePart)
public boolean isHidden(Node node)
public void show(NodePart nodePart)
Copyright (c) 2014 itemis AG and others. All rights reserved.