Package org.eclipse.gef.zest.fx.models
Class HidingModel
- java.lang.Object
-
- org.eclipse.gef.zest.fx.models.HidingModel
-
public class HidingModel extends java.lang.Object
TheHidingModel
manages aSet
of currently hiddenNode
s. The hidden neighbors of aNode
can be identified usinggetHiddenNeighbors(org.eclipse.gef.graph.Node)
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HIDDEN_PROPERTY
Property name that is used when firing property change notifications when theSet
of hiddenNode
s changes.
-
Constructor Summary
Constructors Constructor Description HidingModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<NodePart>
getHiddenNeighborParts(NodePart nodePart)
java.util.Set<Node>
getHiddenNeighbors(Node node)
Returns aSet
containing all hidden neighbors of the givenNode
.java.util.Set<Node>
getHiddenNodesUnmodifiable()
Returns a copy of theSet
that contains all hiddenNode
s.boolean
hasHiddenNeighbors(Node node)
Returnstrue
if at least one neighbor of the givenNode
is currently hidden.boolean
hasHiddenNeighbors(NodePart nodePart)
Returnstrue
if at least one neighbor of the givenNodePart
is currently hidden.javafx.beans.property.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)
-
-
-
Field Detail
-
HIDDEN_PROPERTY
public static final java.lang.String HIDDEN_PROPERTY
Property name that is used when firing property change notifications when theSet
of hiddenNode
s changes.- See Also:
- Constant Field Values
-
-
Method Detail
-
getHiddenNeighbors
public java.util.Set<Node> getHiddenNeighbors(Node node)
Returns aSet
containing all hidden neighbors of the givenNode
.
-
getHiddenNodesUnmodifiable
public java.util.Set<Node> getHiddenNodesUnmodifiable()
Returns a copy of theSet
that contains all hiddenNode
s.- Returns:
- A copy of the
Set
that contains all hiddenNode
s.
-
hasHiddenNeighbors
public boolean hasHiddenNeighbors(NodePart nodePart)
Returnstrue
if at least one neighbor of the givenNodePart
is currently hidden. Otherwise returnsfalse
.
-
hasHiddenNeighbors
public boolean hasHiddenNeighbors(Node node)
Returnstrue
if at least one neighbor of the givenNode
is currently hidden. Otherwise returnsfalse
.
-
hiddenProperty
public javafx.beans.property.ReadOnlySetProperty<Node> hiddenProperty()
Returns a read-only property containing the hidden nodes.- Returns:
- A read-only property named
HIDDEN_PROPERTY
.
-
hide
public void hide(NodePart nodePart)
-
hide
public void hide(Node node)
-
isHidden
public boolean isHidden(NodePart nodePart)
-
isHidden
public boolean isHidden(Node node)
-
show
public void show(NodePart nodePart)
-
-