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.ObjectTheHidingModelmanages aSetof currently hiddenNodes. The hidden neighbors of aNodecan be identified usinggetHiddenNeighbors(org.eclipse.gef.graph.Node).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHIDDEN_PROPERTYProperty name that is used when firing property change notifications when theSetof hiddenNodes 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 aSetcontaining all hidden neighbors of the givenNode.java.util.Set<Node>getHiddenNodesUnmodifiable()Returns a copy of theSetthat contains all hiddenNodes.booleanhasHiddenNeighbors(Node node)Returnstrueif at least one neighbor of the givenNodeis currently hidden.booleanhasHiddenNeighbors(NodePart nodePart)Returnstrueif at least one neighbor of the givenNodePartis currently hidden.javafx.beans.property.ReadOnlySetProperty<Node>hiddenProperty()Returns a read-only property containing the hidden nodes.voidhide(Node node)voidhide(NodePart nodePart)booleanisHidden(Node node)booleanisHidden(NodePart nodePart)voidshow(Node node)voidshow(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 theSetof hiddenNodes changes.- See Also:
- Constant Field Values
-
-
Method Detail
-
getHiddenNeighbors
public java.util.Set<Node> getHiddenNeighbors(Node node)
Returns aSetcontaining all hidden neighbors of the givenNode.
-
getHiddenNodesUnmodifiable
public java.util.Set<Node> getHiddenNodesUnmodifiable()
Returns a copy of theSetthat contains all hiddenNodes.- Returns:
- A copy of the
Setthat contains all hiddenNodes.
-
hasHiddenNeighbors
public boolean hasHiddenNeighbors(NodePart nodePart)
Returnstrueif at least one neighbor of the givenNodePartis currently hidden. Otherwise returnsfalse.
-
hasHiddenNeighbors
public boolean hasHiddenNeighbors(Node node)
Returnstrueif at least one neighbor of the givenNodeis 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)
-
-