edu.berkeley.guir.lib.satin.util
Class RandomLib
java.lang.Object
|
+--edu.berkeley.guir.lib.satin.util.RandomLib
- public final class RandomLib
- extends Object
Utilities for getting random GraphicalObjects.
This software is distributed under the
Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Aug 02 1999, JH
Created class
- SATIN-v2.1-1.0.0, Aug 11 2000, JH
Touched for SATIN release
- Since:
- JDK 1.2
- Version:
- SATIN-v2.1-1.0.0, Aug 11 2000
- Author:
- Jason Hong (
jasonh@cs.berkeley.edu )
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomLib
public RandomLib()
getRandomGraphicalObjectCollection
public static GraphicalObjectCollection getRandomGraphicalObjectCollection(Rectangle rect,
int numStks)
- Generate a Graphical Object Collection with the specified number
of strokes.
getRandomStroke
public static TimedStroke getRandomStroke(Rectangle rect,
int npoints)
- Generate a stroke that fits in the specified rectangle and has the
specified number of points.
getRandomPatch
public static Patch getRandomPatch(Rectangle rect)
- Get a randomly-generated square patch that fits inside the bounds
of the specified rect.
getRandomSemanticZoomPatch
public static Patch getRandomSemanticZoomPatch(Rectangle rect)
- Get a randomly-generated square patch with a semantic zoom view that
fits inside the bounds of the specified rect.