com.vinculumtech.carrierwave.image
Class GraphModelTools

java.lang.Object
  extended bycom.vinculumtech.carrierwave.image.GraphModelTools

public final class GraphModelTools
extends java.lang.Object

Version:
$Id: //depot/carrierwave/src/shared/com/vinculumtech/carrierwave/image/GraphModelTools.java#1 $

Method Summary
static ImageGraph apply(ImageGraph source, ImageGraph destination, UnaryFunction unaryFunction)
           
static ImageGraph apply(Image originImage, ImageGraph destination, int depth, boolean dependentsInclusive, UnaryFunction unaryFunction)
           
static ImageGraph copy(ImageGraph imageGraph)
          Creates a copy of the given ImageGraph instance.
static ImageGraph copy(ImageGraph imageGraph, boolean keepObjectIdentity)
           
static ImageGraph copy(ImageGraph imageGraph, UnaryFunction unaryFunction)
           
static ImageGraph copy(Image originImage, int depth, boolean dependentsInclusive, boolean keepObjectIdentity)
           
static ImageGraph copy(Image originImage, int depth, boolean dependentsInclusive, UnaryFunction unaryFunction)
           
static java.util.List findAllInstancesOf(GraphModel graphModel, java.lang.Class imageType)
          Returns a List of all the Image instances are are assignable to the given imageType.
static java.util.List findAllInstancesOf(ImageGraph imageGraph, java.lang.Class imageType)
          Returns a List of all the Image instances are are assignable to the given imageType.
static java.util.List getAllIconsIn(ImageGraph imageGraph)
          Returns all the icon instances in the given ImageGraph instance.
static java.util.List getAllIconsIn(ImageGraph imageGraph, boolean ignoreReadOnly)
          Returns all the icon instances in the given ImageGraph instance.
static void pruneImage(ImageGraph imageGraph, Image image)
          Removes the given image from this ImageGraph instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

pruneImage

public static void pruneImage(ImageGraph imageGraph,
                              Image image)
Removes the given image from this ImageGraph instance.


copy

public static ImageGraph copy(ImageGraph imageGraph)
Creates a copy of the given ImageGraph instance. All Image instances are cloned, but images with an image id (not object id) are given new identities.


copy

public static ImageGraph copy(ImageGraph imageGraph,
                              boolean keepObjectIdentity)

copy

public static ImageGraph copy(ImageGraph imageGraph,
                              UnaryFunction unaryFunction)

apply

public static ImageGraph apply(ImageGraph source,
                               ImageGraph destination,
                               UnaryFunction unaryFunction)

copy

public static ImageGraph copy(Image originImage,
                              int depth,
                              boolean dependentsInclusive,
                              boolean keepObjectIdentity)

copy

public static ImageGraph copy(Image originImage,
                              int depth,
                              boolean dependentsInclusive,
                              UnaryFunction unaryFunction)

apply

public static ImageGraph apply(Image originImage,
                               ImageGraph destination,
                               int depth,
                               boolean dependentsInclusive,
                               UnaryFunction unaryFunction)

findAllInstancesOf

public static java.util.List findAllInstancesOf(ImageGraph imageGraph,
                                                java.lang.Class imageType)
Returns a List of all the Image instances are are assignable to the given imageType.

Parameters:
imageGraph -
imageType -
Returns:

findAllInstancesOf

public static java.util.List findAllInstancesOf(GraphModel graphModel,
                                                java.lang.Class imageType)
Returns a List of all the Image instances are are assignable to the given imageType. It is expected that the instance of GraphModel already be resolved with an ImageGraph instance.

Parameters:
graphModel -
imageType -
Returns:

getAllIconsIn

public static java.util.List getAllIconsIn(ImageGraph imageGraph)
Returns all the icon instances in the given ImageGraph instance.

Parameters:
imageGraph -
Returns:

getAllIconsIn

public static java.util.List getAllIconsIn(ImageGraph imageGraph,
                                           boolean ignoreReadOnly)
Returns all the icon instances in the given ImageGraph instance.

Parameters:
imageGraph -
ignoreReadOnly -
Returns:


Copyright (C) 2002 Vinculum Technologies, Inc. All Rights Reserved.