com.klg.jclass.util.swing.encode.page
Class AbstractVectorEncoder
java.lang.Object
|
+--com.klg.jclass.util.swing.encode.page.AbstractVectorEncoder
- All Implemented Interfaces:
- Encoder
- Direct Known Subclasses:
- EPSEncoder, PCLEncoder, PDFEncoder, PSEncoder
- public abstract class AbstractVectorEncoder
- extends Object
- implements Encoder
This is the base class for encoding a component to a stream file.
It needs JClass PageLayout to compile and to be used.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
img
protected Image img
comp
protected Component comp
outfile
protected OutputStream outfile
AbstractVectorEncoder
public AbstractVectorEncoder()
encode
public void encode(Image image,
OutputStream os)
throws IOException,
EncoderException
- Specified by:
encode
in interface Encoder
IOException
EncoderException
encode
public void encode(Component component,
OutputStream os)
throws IOException,
EncoderException
- Description copied from interface:
Encoder
- Encode the specified component on the specified stream
- Specified by:
encode
in interface Encoder
IOException
EncoderException
createOutput
protected abstract com.klg.jclass.page.JCDocument createOutput(OutputStream os)
throws IOException,
EncoderException
IOException
EncoderException
getObjectSize
protected JCUnit.Dimension getObjectSize()
throws EncoderException
EncoderException
createTemplatePage
protected com.klg.jclass.page.JCPage createTemplatePage(JCUnit.Dimension size)
error
protected void error(String msg)
throws EncoderException
EncoderException