y.view
Class Util

java.lang.Object
  |
  +--y.view.Util

public final class Util
extends Object

This class provides some static convenience methods and temporary scratch variables.


Field Summary
static double EPSILON
          A reasonable small value ( 0.000001 ) useful for approximating 0.0.
static float[] FLOAT2
          A 2-dimensional float array that may be used as temporary scratch variable.
static float[] FLOAT6
          A six-dimensional float array that may be used as temporary scratch variable, e.g. when working with PathIterators.
static Point2D POINT2D
          A Point2D in double precicion that may be used as temporary scratch variable.
static AffineTransform TRANSFORM
          An Affine Transform that may be used as temporary scratch variable.
 
Method Summary
static void alias(Graphics2D g)
          Puts a graphics context in anti-aliasing mode.
static void unalias(Graphics2D g)
          Turns off anti-aliasing mode of a graphics context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLOAT2

public static float[] FLOAT2
A 2-dimensional float array that may be used as temporary scratch variable.


FLOAT6

public static float[] FLOAT6
A six-dimensional float array that may be used as temporary scratch variable, e.g. when working with PathIterators.


POINT2D

public static Point2D POINT2D
A Point2D in double precicion that may be used as temporary scratch variable.


TRANSFORM

public static AffineTransform TRANSFORM
An Affine Transform that may be used as temporary scratch variable.


EPSILON

public static final double EPSILON
A reasonable small value ( 0.000001 ) useful for approximating 0.0.

See Also:
Constant Field Values
Method Detail

alias

public static void alias(Graphics2D g)
Puts a graphics context in anti-aliasing mode. This method keeps track of a counter for each graphics context. The counter is increased each time this method is called. The counter is zero initially, whenever the counter gets positive, the rendering hint will be set.


unalias

public static void unalias(Graphics2D g)
Turns off anti-aliasing mode of a graphics context. This method keeps track of a counter for each graphics context. The counter is decreased each time this method is called. The counter is zero initially, whenever the counter gets non-positive, the rendering hint will be reset.


© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003