textbender.o.awt
Class AWT

java.lang.Object
  extended by AWT

public class AWT
extends Object

AWT utilities.


Method Summary
static ColorPair colorPair()
          A shared colour-pair, for use in the AWT event dispatch thread.
static Dimension dimension()
          A shared dimension, for use in the AWT event dispatch thread.
static StringBuilder emptyStringBuilder()
          Empties and returns the shared string builder.
static Insets insets()
          A shared insets, for use in the AWT event dispatch thread.
static Point point()
          A shared point, for use in the AWT event dispatch thread.
static Rectangle rectangle()
          A shared rectangle, for use in the AWT event dispatch thread.
static StringBuilder stringBuilder()
          Returns a shared string builder, for use in the AWT event dispatch thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

colorPair

public static ColorPair colorPair()
A shared colour-pair, for use in the AWT event dispatch thread.


dimension

public static Dimension dimension()
A shared dimension, for use in the AWT event dispatch thread.


stringBuilder

public static StringBuilder stringBuilder()
Returns a shared string builder, for use in the AWT event dispatch thread. After using it for big jobs, consider emptying and trimming it e.g. by calling emptyStringBuilder().trimToSize().


emptyStringBuilder

public static StringBuilder emptyStringBuilder()
Empties and returns the shared string builder.


insets

public static Insets insets()
A shared insets, for use in the AWT event dispatch thread.


point

public static Point point()
A shared point, for use in the AWT event dispatch thread.


rectangle

public static Rectangle rectangle()
A shared rectangle, for use in the AWT event dispatch thread.