public class HidingModel
extends Object
-
Property Summary
Properties
javafx.beans.property.ReadOnlySetProperty<Node>
Returns a read-only property containing the hidden nodes.
-
Field Summary
Fields
Property name that is used when firing property change notifications when
the
Set
of hidden
Node
s changes.
-
Constructor Summary
Constructors
-
Method Summary
Returns a
Set
containing all
NodePart
s corresponding to
the hidden neighbors of the content of the given
NodePart
.
Returns a
Set
containing all hidden neighbors of the given
Node
.
Returns a copy of the
Set
that contains all hidden
Node
s.
boolean
Returns
true
if at least one neighbor of the given
Node
is currently hidden.
boolean
Returns
true
if at least one neighbor of the given
NodePart
is currently hidden.
javafx.beans.property.ReadOnlySetProperty<Node>
Returns a read-only property containing the hidden nodes.
void
void
boolean
Returns
true
if the given
Node
is currently contained within the
Set
of hidden
Node
s.
boolean
Returns
true
if the given
NodePart
is currently
contained within the
Set
of hidden
Node
s.
void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Property Details
-
hidden
public javafx.beans.property.ReadOnlySetProperty<Node> hiddenProperty
Returns a read-only property containing the hidden nodes.
-
Field Details
-
HIDDEN_PROPERTY
public static final String HIDDEN_PROPERTY
Property name that is used when firing property change notifications when
the
Set
of hidden
Node
s changes.
- See Also:
-
-
Constructor Details
-
HidingModel
public HidingModel()
-
Method Details
-
getHiddenNeighborParts
Returns a
Set
containing all
NodePart
s corresponding to
the hidden neighbors of the content of the given
NodePart
.
- Parameters:
nodePart
- The NodePart
of which the hidden neighbors are
returned.
- Returns:
- A
Set
containing all hidden neighbors of the given
NodePart
.
-
getHiddenNeighbors
Returns a
Set
containing all hidden neighbors of the given
Node
.
- Parameters:
node
- The Node
of which the hidden
neighbors are returned.
- Returns:
- A
Set
containing all hidden neighbors of the given
Node
.
-
getHiddenNodesUnmodifiable
public Set<Node> getHiddenNodesUnmodifiable()
Returns a copy of the
Set
that contains all hidden
Node
s.
- Returns:
- A copy of the
Set
that contains all hidden
Node
s.
-
hasHiddenNeighbors
public boolean hasHiddenNeighbors(NodePart nodePart)
Returns
true
if at least one neighbor of the given
NodePart
is currently hidden. Otherwise returns
false
.
- Parameters:
nodePart
- The NodePart
that is tested for hidden neighbors.
- Returns:
true
if at least one neighbor of the given
NodePart
is currently hidden, otherwise
false
.
-
hasHiddenNeighbors
public boolean hasHiddenNeighbors(Node node)
Returns
true
if at least one neighbor of the given
Node
is currently hidden. Otherwise returns
false
.
- Parameters:
node
- The Node
that is tested for
hidden neighbors.
- Returns:
true
if at least one neighbor of the given
Node
is currently hidden, otherwise
false
.
-
hiddenProperty
public javafx.beans.property.ReadOnlySetProperty<Node> hiddenProperty()
Returns a read-only property containing the hidden nodes.
-
hide
Adds the content of the given
NodePart
to the
Set
of
hidden
Node
s. Notifies all property change
listeners about this change.
- Parameters:
nodePart
- The NodePart
that is added to the Set
of
hidden Node
s.
-
hide
public void hide(Node node)
Adds the given
Node
to the
Set
of
hidden
Node
s. Notifies all property change
listeners about this change.
- Parameters:
node
- The Node
that is added to the
Set
of hidden Node
s.
-
isHidden
public boolean isHidden(NodePart nodePart)
Returns
true
if the given
NodePart
is currently
contained within the
Set
of hidden
Node
s. Otherwise, returns
false
.
- Parameters:
nodePart
- The NodePart
in question.
- Returns:
true
if the given Node
is currently contained within the Set
of hidden
Node
s, otherwise
false
.
-
isHidden
public boolean isHidden(Node node)
Returns
true
if the given
Node
is currently contained within the
Set
of hidden
Node
s. Otherwise, returns
false
.
- Parameters:
node
- The Node
in question.
- Returns:
true
if the content of the given NodePart
is
currently contained within the Set
of hidden
Node
s, otherwise
false
.
-
show
Remove the content of the given
NodePart
from the
Set
of
hidden
Node
s. Notifies all property change
listeners about this change.
- Parameters:
nodePart
- The NodePart
of which the content is removed from the
Set
of hidden Node
s.
-
show
public void show(Node node)
Remove the given
Node
from the
Set
of hidden
Node
s. Notifies all property
change listeners about this change.
- Parameters:
node
- The Node
that is removed from
the Set
of hidden Node
s.