|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfacets.core.app.PathSelection
public final class PathSelection
Implements SSelection
using OffsetPath
s.
The immutable paths
members of PathSelection
should describe
paths rooted on content()
.
Field Summary | |
---|---|
OffsetPath[] |
paths
The OffsetPath s passed to the constructor and rooted on content() . |
Constructor Summary | |
---|---|
PathSelection(java.lang.Object content,
OffsetPath... paths)
Core constructor. |
Method Summary | |
---|---|
java.lang.Object |
content()
The content within which to select. |
static PathSelection |
newMinimal(java.lang.Object content)
Creates a selection with a single, single-membered path. |
static PathSelection |
newSingle(java.lang.Object content,
OffsetPath path)
Creates a selection with a single path. |
static java.lang.Object[] |
pathMembers(PathSelection selection,
int pathAt)
|
static PathSelection |
procrust(PathSelection src,
java.lang.Object to)
|
java.lang.Object |
selection()
Implements interface method. |
java.lang.Object[] |
selections()
Implements interface method. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final OffsetPath[] paths
OffsetPath
s passed to the constructor and rooted on content()
.
Constructor Detail |
---|
public PathSelection(java.lang.Object content, OffsetPath... paths)
paths
- set as paths
; they be rooted on content
,
which is returned as content()
Method Detail |
---|
public static PathSelection newMinimal(java.lang.Object content)
content
- is passed to newSingle(Object, OffsetPath)
together with OffsetPath.singleMembered
public static PathSelection newSingle(java.lang.Object content, OffsetPath path)
Content is passed to PathSelection(Object,OffsetPath[])
together with an OffsetPath
[] containing path
public static PathSelection procrust(PathSelection src, java.lang.Object to)
public static java.lang.Object[] pathMembers(PathSelection selection, int pathAt)
public final java.lang.Object[] selections()
selections
in interface SSelection
OffsetPath.target(Object)
s of paths
public final java.lang.Object selection()
selection
in interface SSelection
selections()
public final java.lang.Object content()
SSelection
This will generally be the content to display within a viewer; and thus itself a portion of some larger content.
content
in interface SSelection
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |