JClass DesktopViews 6.3.0 API
Documentation

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.


Field Summary
protected  Component comp
           
protected  Image img
           
protected  OutputStream outfile
           
 
Constructor Summary
AbstractVectorEncoder()
           
 
Method Summary
protected abstract  com.klg.jclass.page.JCDocument createOutput(OutputStream os)
           
protected  com.klg.jclass.page.JCPage createTemplatePage(JCUnit.Dimension size)
           
 void encode(Component component, OutputStream os)
          Encode the specified component on the specified stream
 void encode(Image image, OutputStream os)
           
protected  void error(String msg)
           
protected  JCUnit.Dimension getObjectSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

img

protected Image img

comp

protected Component comp

outfile

protected OutputStream outfile
Constructor Detail

AbstractVectorEncoder

public AbstractVectorEncoder()
Method Detail

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

Copyright © 2004 Quest Software Inc..
All rights reserved.