gumbo.visualize.data.layout
Class Layouts

java.lang.Object
  |
  +--gumbo.visualize.data.layout.Layouts

public final class Layouts
extends java.lang.Object

Constants and utilities not related to the layout package.

Version:
$Revision: 1.2 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.

Field Summary
static int DIRECTION_X_NONE
          Layout direction: World space X=0.
static int DIRECTION_X_NORMAL
          Layout direction: World space X.
static int DIRECTION_X_REVERSE
          Layout direction: World space -X.
static int DIRECTION_Y_NONE
          Layout direction: World space Y=0.
static int DIRECTION_Y_NORMAL
          Layout direction: World space Y.
static int DIRECTION_Y_REVERSE
          Layout direction: World space -Y.
static int DIRECTION_Z_NONE
          Layout direction: World space Z=0.
static int DIRECTION_Z_NORMAL
          Layout direction: World space Z.
static int DIRECTION_Z_REVERSE
          Layout direction: World space -Z.
 
Method Summary
static int dirToDim(int dir)
          Maps direction (DIRECTION_???) to dimension (0-2).
static int dirToSign(int dir)
          Maps direction (DIRECTION_???) to sign (-1 for reverse order, 1 for normal order).
static boolean intersectLayoutParts(LayoutPart target, java.util.Collection parts)
          Returns true if the target part intersects any of the parts in a collection, excluding itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIRECTION_X_NORMAL

public static final int DIRECTION_X_NORMAL
Layout direction: World space X.

See Also:
Constant Field Values

DIRECTION_X_REVERSE

public static final int DIRECTION_X_REVERSE
Layout direction: World space -X.

See Also:
Constant Field Values

DIRECTION_X_NONE

public static final int DIRECTION_X_NONE
Layout direction: World space X=0.

See Also:
Constant Field Values

DIRECTION_Y_NORMAL

public static final int DIRECTION_Y_NORMAL
Layout direction: World space Y.

See Also:
Constant Field Values

DIRECTION_Y_REVERSE

public static final int DIRECTION_Y_REVERSE
Layout direction: World space -Y.

See Also:
Constant Field Values

DIRECTION_Y_NONE

public static final int DIRECTION_Y_NONE
Layout direction: World space Y=0.

See Also:
Constant Field Values

DIRECTION_Z_NORMAL

public static final int DIRECTION_Z_NORMAL
Layout direction: World space Z.

See Also:
Constant Field Values

DIRECTION_Z_REVERSE

public static final int DIRECTION_Z_REVERSE
Layout direction: World space -Z.

See Also:
Constant Field Values

DIRECTION_Z_NONE

public static final int DIRECTION_Z_NONE
Layout direction: World space Z=0.

See Also:
Constant Field Values
Method Detail

dirToDim

public static int dirToDim(int dir)
Maps direction (DIRECTION_???) to dimension (0-2). Returns -1 if direction is none or unrecognized.


dirToSign

public static int dirToSign(int dir)
Maps direction (DIRECTION_???) to sign (-1 for reverse order, 1 for normal order). Returns 0 if direction is none or unrecognized.


intersectLayoutParts

public static boolean intersectLayoutParts(LayoutPart target,
                                           java.util.Collection parts)
Returns true if the target part intersects any of the parts in a collection, excluding itself.