Base classes for Java2D