public class HidingModel
extends java.lang.Object
HidingModel
manages a Set
of currently hidden
Node
s. 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 Node s changes. |
Constructor and Description |
---|
HidingModel() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<NodePart> |
getHiddenNeighborParts(NodePart nodePart)
|
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
Node s. |
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. |
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)
|
public javafx.beans.property.ReadOnlySetProperty<Node> hiddenProperty
public static final java.lang.String HIDDEN_PROPERTY
Set
of hidden Node
s changes.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
Node
s.Set
that contains all hidden
Node
s.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 javafx.beans.property.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.