visad.bom
Class SceneGraphRenderer.Hatching

java.lang.Object
  extended by visad.bom.SceneGraphRenderer.Hatching
Enclosing class:
SceneGraphRenderer

public class SceneGraphRenderer.Hatching
extends Object

Provide a set of simple hatching patterns


Field Summary
static int DIAGONAL_BOTH
          diagonal both
static int DIAGONAL1
          diagonal patter 1
static int DIAGONAL2
          diagonal pattern 2
static int HORIZONTAL
          horizontal pattern
static int NUM_PATTERNS
          number of patterns
static int SQUARE
          square pattern
static int VERTICAL
          vertical pattern
 
Constructor Summary
SceneGraphRenderer.Hatching()
           
 
Method Summary
 BufferedImage getPattern(int pattern)
          Get the pattern as an image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_PATTERNS

public static final int NUM_PATTERNS
number of patterns

See Also:
Constant Field Values

DIAGONAL1

public static final int DIAGONAL1
diagonal patter 1

See Also:
Constant Field Values

DIAGONAL2

public static final int DIAGONAL2
diagonal pattern 2

See Also:
Constant Field Values

DIAGONAL_BOTH

public static final int DIAGONAL_BOTH
diagonal both

See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
horizontal pattern

See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
vertical pattern

See Also:
Constant Field Values

SQUARE

public static final int SQUARE
square pattern

See Also:
Constant Field Values
Constructor Detail

SceneGraphRenderer.Hatching

public SceneGraphRenderer.Hatching()
Method Detail

getPattern

public BufferedImage getPattern(int pattern)
Get the pattern as an image

Parameters:
pattern - the pattern
Returns:
the image