public class HidingModel
extends java.lang.Object
HidingModel manages a Set of currently hidden
Nodes. The hidden neighbors of a
Node can be identified using
getHiddenNeighbors(org.eclipse.gef4.graph.Node).| Type | Property and Description |
|---|---|
javafx.beans.property.ReadOnlySetProperty<Node> |
hidden
Returns a read-only property containing the hidden nodes.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HIDDEN_PROPERTY
Property name that is used when firing property change notifications when
the
Set of hidden Nodes changes. |
| Constructor and Description |
|---|
HidingModel() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<NodeContentPart> |
getHiddenNeighborParts(NodeContentPart nodePart)
Returns a
Set containing all NodeContentParts
corresponding to the hidden neighbors of the content of the given
NodeContentPart. |
java.util.Set<Node> |
getHiddenNeighbors(Node node)
Returns a
Set containing all hidden neighbors of the given
Node. |
java.util.Set<Node> |
getHiddenNodesUnmodifiable()
Returns a copy of the
Set that contains all hidden
Nodes. |
boolean |
hasHiddenNeighbors(Node node)
Returns
true if at least one neighbor of the given
Node is currently hidden. |
boolean |
hasHiddenNeighbors(NodeContentPart nodePart)
Returns
true if at least one neighbor of the given
NodeContentPart is currently hidden. |
javafx.beans.property.ReadOnlySetProperty<Node> |
hiddenProperty()
Returns a read-only property containing the hidden nodes.
|
void |
hide(Node node)
|
void |
hide(NodeContentPart nodePart)
|
boolean |
isHidden(Node node)
|
boolean |
isHidden(NodeContentPart nodePart)
|
void |
show(Node node)
|
void |
show(NodeContentPart nodePart)
|
public javafx.beans.property.ReadOnlySetProperty<Node> hiddenProperty
public static final java.lang.String HIDDEN_PROPERTY
Set of hidden Nodes changes.public java.util.Set<NodeContentPart> getHiddenNeighborParts(NodeContentPart nodePart)
Set containing all NodeContentParts
corresponding to the hidden neighbors of the content of the given
NodeContentPart.nodePart - The NodeContentPart of which the hidden neighbors are
returned.Set containing all hidden neighbors of the given
NodeContentPart.public java.util.Set<Node> getHiddenNeighbors(Node node)
Set containing all hidden neighbors of the given
Node.public java.util.Set<Node> getHiddenNodesUnmodifiable()
Set that contains all hidden
Nodes.Set that contains all hidden
Nodes.public boolean hasHiddenNeighbors(NodeContentPart nodePart)
true if at least one neighbor of the given
NodeContentPart is currently hidden. Otherwise returns
false.nodePart - The NodeContentPart that is tested for hidden
neighbors.true if at least one neighbor of the given
NodeContentPart is currently hidden, otherwise
false.public boolean hasHiddenNeighbors(Node node)
true if at least one neighbor of the given
Node is currently hidden. Otherwise
returns false.public javafx.beans.property.ReadOnlySetProperty<Node> hiddenProperty()
public void hide(NodeContentPart nodePart)
NodeContentPart to the Set
of hidden Nodes. Notifies all property
change listeners about this change.nodePart - The NodeContentPart that is added to the Set
of hidden Nodes.public void hide(Node node)
public boolean isHidden(NodeContentPart nodePart)
true if the given NodeContentPart is
currently contained within the Set of hidden
Nodes. Otherwise, returns
false.nodePart - The NodeContentPart in question.true if the given
Node is currently contained within
the Set of hidden Nodes,
otherwise false.public boolean isHidden(Node node)
true if the given
Node is currently contained within the
Set of hidden Nodes. Otherwise,
returns false.node - The Node in question.true if the content of the given
NodeContentPart is currently contained within the
Set of hidden Nodes,
otherwise false.public void show(NodeContentPart nodePart)
NodeContentPart from the
Set of hidden Node s. Notifies all
property change listeners about this change.nodePart - The NodeContentPart of which the content is removed
from the Set of hidden
Node s.Copyright (c) 2014 itemis AG and others. All rights reserved.