|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vinculumtech.carrierwave.plan.Navigation
The Navigation class provides a set of utilities for retrieving elements from image graphs via
directed graph nodes.
A directed graph node, is a child node in a graph node tree. It represents a position in an image graph.
Method Summary | |
static java.util.Collection |
findAllIcons(GraphNode originNode,
Image originImage)
Returns a List of all the Icon instances the given node tree touches in the ImageGraph instance rooted by the given originImage. |
static java.util.Collection |
findAllIcons(GraphPlan graphPlan,
Image originImage)
Returns a List of all the Icon instances for the given depth. |
static java.util.Collection |
findDanglingIcons(GraphNode originNode,
Image originImage)
Returns a collection of all the Icon instances the given node tree does not touch. |
static java.util.Collection |
findDanglingImages(GraphNode originNode,
Image originImage)
Returns a collection of all the Image instances the given node tree does not touch. |
static java.util.List |
findDescendantIconsOf(Image originImage,
GraphNode leafNode)
Returns a List of all the Icon instances than can be reached by the given leafNode value. A leaf node is a node in a graph node tree. |
static java.util.List |
findDescendantsOf(Image originImage,
GraphNode leafNode)
Returns a List of all the Image instances than can be reached by the given leafNode value. A leaf node is a node in a graph node tree. |
static java.lang.Object |
getChildAsIcons(GraphNode graphNode,
Image parentImage)
Returns the child object referenced by the given GraphNode instance from the given parentImage. If the graphNode parameter references an edge, the value will be returned as an Icon, or container of Icons (ArrayList or HashMap). |
static java.lang.Object |
getChildAsIconsNarrow(GraphNode graphNode,
Image parentImage)
Returns the child object referenced by the given GraphNode instance from the given parentImage. If the graphNode parameter references an edge, the value will be returned as an Icon, or container of Icons (ImageArray or ImageMap). |
static java.lang.Object |
getChildAsImages(GraphNode graphNode,
Image parentImage)
Returns the child object referenced by the given GraphNode instance from the given parentImage. If the graphNode parameter references an edge, the value will be returned as an Image, or container of Images (ImageArray or ImageMap). |
static java.lang.Object |
narrowValue(GraphNode graphNode,
java.lang.Object value)
|
static void |
setChild(GraphNode graphNode,
Image parentImage,
java.lang.Object child)
Sets the given child value on the parentImage at the location referenced by the graphNode parameter. Note the child parameter may be null. |
static void |
setChildIcon(GraphNode graphNode,
Image parentImage,
Icon childIcon)
Sets the given childIcon on the parentImage at the location referenced by the graphNode parameter. Note the childIcon may not be null if the graphNode references a position in a List. |
static void |
setChildImage(GraphNode graphNode,
Image parentImage,
Image childImage)
Sets the given childImage on the parentImage at the location referenced by the graphNode parameter. Note the childImage may not be null if the graphNode references a position in a List. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final java.util.List findDescendantsOf(Image originImage, GraphNode leafNode) throws GraphException
originImage
- leafNode
-
GraphException
public static final java.util.List findDescendantIconsOf(Image originImage, GraphNode leafNode) throws GraphException
originImage
- leafNode
-
GraphException
public static final java.util.Collection findDanglingImages(GraphNode originNode, Image originImage) throws GraphException
originNode
- originImage
-
GraphException
public static final java.util.Collection findDanglingIcons(GraphNode originNode, Image originImage) throws GraphException
originNode
- originImage
-
GraphException
public static final java.util.Collection findAllIcons(GraphNode originNode, Image originImage) throws GraphException
originNode
- originImage
-
GraphException
public static final java.util.Collection findAllIcons(GraphPlan graphPlan, Image originImage) throws GraphException
graphPlan
- originImage
-
GraphException
public static final java.lang.Object getChildAsIconsNarrow(GraphNode graphNode, Image parentImage) throws EdgeNotFoundException, GraphException
graphNode
- parentImage
-
EdgeNotFoundException
GraphException
public static final java.lang.Object getChildAsIcons(GraphNode graphNode, Image parentImage) throws EdgeNotFoundException, GraphException
graphNode
- parentImage
-
EdgeNotFoundException
GraphException
public static final java.lang.Object getChildAsImages(GraphNode graphNode, Image parentImage) throws EdgeNotFoundException, GraphException
graphNode
- parentImage
-
EdgeNotFoundException
GraphException
public static final void setChildImage(GraphNode graphNode, Image parentImage, Image childImage) throws EdgeNotFoundException, GraphException
graphNode
- parentImage
- childImage
-
EdgeNotFoundException
GraphException
public static final void setChildIcon(GraphNode graphNode, Image parentImage, Icon childIcon) throws EdgeNotFoundException, GraphException
graphNode
- parentImage
- childIcon
-
EdgeNotFoundException
GraphException
public static final void setChild(GraphNode graphNode, Image parentImage, java.lang.Object child) throws EdgeNotFoundException, GraphException
graphNode
- parentImage
- child
-
EdgeNotFoundException
GraphException
public static final java.lang.Object narrowValue(GraphNode graphNode, java.lang.Object value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |