|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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.
| 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 |
public Transform2D getContextTransformation()
public Transform2D getObjectTranformation()
public void illustrate(RenderingData data,
Device device)
RenderingData.
data - the RenderingData of the graphical objectdevice - the Device to draw onto
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||