com.partnersoft.v3x.graphics
Class DrawingWriter

java.lang.Object
  extended by com.partnersoft.v3x.graphics.DrawingWriter
Direct Known Subclasses:
DXFWriter

public abstract class DrawingWriter
extends java.lang.Object

A generic engine for transforming generic drawing elements into a specific graphics format, specified by a subclass.


Field Summary
 DrawingFactory factory
           
 
Constructor Summary
DrawingWriter()
           
 
Method Summary
abstract  void endDrawing()
          Perform drawing close and cleanup.
 DrawingFactory factory()
          The abstract DrawingFactory for this DrawingWriter.
 void factory(DrawingFactory newFactory)
           
abstract  void processElement(DrawingElement element)
          Process the next element.
abstract  void startDrawing()
          Perform drawing initialization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

public DrawingFactory factory
Constructor Detail

DrawingWriter

public DrawingWriter()
Method Detail

startDrawing

public abstract void startDrawing()
Perform drawing initialization.


processElement

public abstract void processElement(DrawingElement element)
Process the next element.


endDrawing

public abstract void endDrawing()
Perform drawing close and cleanup.


factory

public DrawingFactory factory()
The abstract DrawingFactory for this DrawingWriter.


factory

public void factory(DrawingFactory newFactory)