com.tensegrity.graphics
Interface Illustrator


public interface Illustrator

Implementations of interface Illustrator are responsible for drawing graphical objects onto a Device without using the Java class Shape. Because the Java Graphics class uses a PathIterator instance to output a Shape, the output is extremely time expensive. Therefore, each Primitive to be drawn uses its own Illustrator object, which requires much less time for the output process. Moreover, it was a design intention to decouple the implementation from package java.awt. This allows easy switching to different graphical platforms, such as the Standard Widget Toolkit (SWT) from the Eclipse project.

REVIEWJAVADOC: (Illustrator.java) Because the javadoc for the Renderer class is not very clear, it might help to describe the responsibility of this interface in light of the existence of the Renderer interface. In other words, what are the main differences of the different responsibilities? Let's also talk about what one expects from an implementation without using that word in the responsiblity statement.

Version:
$Id: Illustrator.java,v 1.7 2005/11/11 13:16:30 KevinCVS Exp $
Author:
MichaelKegel

Method Summary
 Transform2D getContextTransformation()
          Returns the transformation of the context for the object the illustrator is assigned to.
 Transform2D getObjectTranformation()
          Returns the transformation for the object the illustrator is assigned to.
 void illustrate(RenderingData data, Device device)
          Illustrates a graphical object that is described through the given RenderingData.
 

Method Detail

getContextTransformation

public Transform2D getContextTransformation()
Returns the transformation of the context for the object the illustrator is assigned to.

Returns:
Transform2D the transformation of the context for the object

getObjectTranformation

public Transform2D getObjectTranformation()
Returns the transformation for the object the illustrator is assigned to.

Returns:
Transform2D the transformation for the object

illustrate

public void illustrate(RenderingData data,
                       Device device)
Illustrates a graphical object that is described through the given RenderingData.

Parameters:
data - the RenderingData of the graphical object
device - the Device to draw onto


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.