fi.faidon.jvg
Class PICTReader

java.lang.Object
  |
  +--fi.faidon.jvg.VectorImageProducer
        |
        +--fi.faidon.jvg.PICTReader

public class PICTReader
extends VectorImageProducer


Field Summary
static int AD_MAX
           
static int AD_MIN
           
static int ADD_OVER
           
static int ADD_PIN
           
static int BLEND
           
static int GRAYISH_TEXT_OR
           
static int MASK
           
static int NOP
           
static int NOT_SRC_BIC
           
static int NOT_SRC_COPY
           
static int NOT_SRC_OR
           
static int NOT_SRC_XOR
           
static int OP_BITS_RECT
           
static int OP_BITS_RGN
           
static int OP_BK_COLOR
           
static int OP_BK_PAT
           
static int OP_BK_PIX_PAT
           
static int OP_CH_EXTRA
           
static int OP_CLIP_RGN
           
static int OP_COMPRESSED_QUICKTIME
           
static int OP_DEF_HILITE
           
static int OP_DH_TEXT
           
static int OP_DHDV_TEXT
           
static int OP_DIRECT_BITS_RECT
           
static int OP_DIRECT_BITS_RGN
           
static int OP_DV_TEXT
           
static int OP_END_OF_PICTURE
           
static int OP_ERASE_ARC
           
static int OP_ERASE_OVAL
           
static int OP_ERASE_POLY
           
static int OP_ERASE_R_RECT
           
static int OP_ERASE_RECT
           
static int OP_ERASE_RGN
           
static int OP_ERASE_SAME_ARC
           
static int OP_ERASE_SAME_OVAL
           
static int OP_ERASE_SAME_POLY
           
static int OP_ERASE_SAME_R_RECT
           
static int OP_ERASE_SAME_RECT
           
static int OP_ERASE_SAME_RGN
           
static int OP_FG_COLOR
           
static int OP_FILL_ARC
           
static int OP_FILL_OVAL
           
static int OP_FILL_PAT
           
static int OP_FILL_PIX_PAT
           
static int OP_FILL_POLY
           
static int OP_FILL_R_RECT
           
static int OP_FILL_RECT
           
static int OP_FILL_RGN
           
static int OP_FILL_SAME_ARC
           
static int OP_FILL_SAME_OVAL
           
static int OP_FILL_SAME_POLY
           
static int OP_FILL_SAME_R_RECT
           
static int OP_FILL_SAME_RECT
           
static int OP_FILL_SAME_RGN
           
static int OP_FONT_NAME
           
static int OP_FRAME_ARC
           
static int OP_FRAME_OVAL
           
static int OP_FRAME_POLY
           
static int OP_FRAME_R_RECT
           
static int OP_FRAME_RECT
           
static int OP_FRAME_RGN
           
static int OP_FRAME_SAME_ARC
           
static int OP_FRAME_SAME_OVAL
           
static int OP_FRAME_SAME_POLY
           
static int OP_FRAME_SAME_R_RECT
           
static int OP_FRAME_SAME_RECT
           
static int OP_FRAME_SAME_RGN
           
static int OP_GLYPH_STATE
           
static byte[] OP_HEADER_OP
          PICT opcodes.
static int OP_HILITE_COLOR
           
static int OP_HILITE_MODE
           
static int OP_INVERT_ARC
           
static int OP_INVERT_OVAL
           
static int OP_INVERT_POLY
           
static int OP_INVERT_R_RECT
           
static int OP_INVERT_RECT
           
static int OP_INVERT_RGN
           
static int OP_INVERT_SAME_ARC
           
static int OP_INVERT_SAME_OVAL
           
static int OP_INVERT_SAME_POLY
           
static int OP_INVERT_SAME_R_RECT
           
static int OP_INVERT_SAME_RECT
           
static int OP_INVERT_SAME_RGN
           
static int OP_LINE
           
static int OP_LINE_FROM
           
static int OP_LINE_JUSTIFY
           
static int OP_LONG_COMMENT
           
static int OP_LONG_TEXT
           
static int OP_OP_COLOR
           
static int OP_ORIGIN
           
static int OP_OV_SIZE
           
static int OP_PACK_BITS_RECT
           
static int OP_PACK_BITS_RGN
           
static int OP_PAINT_ARC
           
static int OP_PAINT_OVAL
           
static int OP_PAINT_POLY
           
static int OP_PAINT_R_RECT
           
static int OP_PAINT_RECT
           
static int OP_PAINT_RGN
           
static int OP_PAINT_SAME_ARC
           
static int OP_PAINT_SAME_OVAL
           
static int OP_PAINT_SAME_POLY
           
static int OP_PAINT_SAME_R_RECT
           
static int OP_PAINT_SAME_RECT
           
static int OP_PAINT_SAME_RGN
           
static int OP_PN_LOC_H_FRAC
           
static int OP_PN_MODE
           
static int OP_PN_PAT
           
static int OP_PN_PIX_PAT
           
static int OP_PN_SIZE
           
static int OP_RGB_BK_COL
           
static int OP_RGB_FG_COL
           
static int OP_SHORT_COMMENT
           
static int OP_SHORT_LINE
           
static int OP_SHORT_LINE_FROM
           
static int OP_SP_EXTRA
           
static int OP_TX_FACE
           
static int OP_TX_FONT
           
static int OP_TX_MODE
           
static int OP_TX_RATIO
           
static int OP_TX_SIZE
           
static int OP_UNCOMPRESSED_QUICKTIME
           
static int OP_VERSION
           
static int OP_VERSION_2
           
static int SRC_BIC
           
static int SRC_COPY
          Transfer modes.
static int SRC_OR
           
static int SRC_XOR
           
static int SUB_OVER
           
static int SUB_PIN
           
static int TRANSPARENT
           
static int TX_BOLD_MASK
          Text face masks.
static int TX_CONDENSED_MASK
           
static int TX_EXTENDED_MASK
           
static int TX_ITALIC_MASK
           
static int TX_OUTLINE_MASK
           
static int TX_SHADOWED_MASK
           
static int TX_UNDERLINE_MASK
           
 
Constructor Summary
PICTReader()
          Initialize stuff.
 
Method Summary
 int checkImage()
          Implements VectorImageProducer drawIntoImage().
 int getHeight()
          Implements VectorImageProducer getHeight().
 int getWidth()
          Implements VectorImageProducer getWidth().
 boolean isVerbose(boolean state)
          Return if verbose or not.
 void playIt(java.awt.Graphics g, java.awt.Component c)
          Implements VectorImageProducer drawIt().
 boolean readPICTFile()
          Open and read the PICT file.
 void setImageFile(java.lang.String filePath)
          Sets the path of the image file to use.
 void setVerbose(boolean state)
          Sets verbose to the state indicated.
 
Methods inherited from class fi.faidon.jvg.VectorImageProducer
playIt, playIt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SRC_COPY

public static final int SRC_COPY
Transfer modes.

See Also:
Constant Field Values

SRC_OR

public static final int SRC_OR
See Also:
Constant Field Values

SRC_XOR

public static final int SRC_XOR
See Also:
Constant Field Values

SRC_BIC

public static final int SRC_BIC
See Also:
Constant Field Values

NOT_SRC_COPY

public static final int NOT_SRC_COPY
See Also:
Constant Field Values

NOT_SRC_OR

public static final int NOT_SRC_OR
See Also:
Constant Field Values

NOT_SRC_XOR

public static final int NOT_SRC_XOR
See Also:
Constant Field Values

NOT_SRC_BIC

public static final int NOT_SRC_BIC
See Also:
Constant Field Values

BLEND

public static final int BLEND
See Also:
Constant Field Values

ADD_PIN

public static final int ADD_PIN
See Also:
Constant Field Values

ADD_OVER

public static final int ADD_OVER
See Also:
Constant Field Values

SUB_PIN

public static final int SUB_PIN
See Also:
Constant Field Values

TRANSPARENT

public static final int TRANSPARENT
See Also:
Constant Field Values

AD_MAX

public static final int AD_MAX
See Also:
Constant Field Values

SUB_OVER

public static final int SUB_OVER
See Also:
Constant Field Values

AD_MIN

public static final int AD_MIN
See Also:
Constant Field Values

GRAYISH_TEXT_OR

public static final int GRAYISH_TEXT_OR
See Also:
Constant Field Values

MASK

public static final int MASK
See Also:
Constant Field Values

TX_BOLD_MASK

public static final int TX_BOLD_MASK
Text face masks.

See Also:
Constant Field Values

TX_ITALIC_MASK

public static final int TX_ITALIC_MASK
See Also:
Constant Field Values

TX_UNDERLINE_MASK

public static final int TX_UNDERLINE_MASK
See Also:
Constant Field Values

TX_OUTLINE_MASK

public static final int TX_OUTLINE_MASK
See Also:
Constant Field Values

TX_SHADOWED_MASK

public static final int TX_SHADOWED_MASK
See Also:
Constant Field Values

TX_CONDENSED_MASK

public static final int TX_CONDENSED_MASK
See Also:
Constant Field Values

TX_EXTENDED_MASK

public static final int TX_EXTENDED_MASK
See Also:
Constant Field Values

OP_HEADER_OP

public static final byte[] OP_HEADER_OP
PICT opcodes.


NOP

public static final int NOP
See Also:
Constant Field Values

OP_CLIP_RGN

public static final int OP_CLIP_RGN
See Also:
Constant Field Values

OP_BK_PAT

public static final int OP_BK_PAT
See Also:
Constant Field Values

OP_TX_FONT

public static final int OP_TX_FONT
See Also:
Constant Field Values

OP_TX_FACE

public static final int OP_TX_FACE
See Also:
Constant Field Values

OP_TX_MODE

public static final int OP_TX_MODE
See Also:
Constant Field Values

OP_SP_EXTRA

public static final int OP_SP_EXTRA
See Also:
Constant Field Values

OP_PN_SIZE

public static final int OP_PN_SIZE
See Also:
Constant Field Values

OP_PN_MODE

public static final int OP_PN_MODE
See Also:
Constant Field Values

OP_PN_PAT

public static final int OP_PN_PAT
See Also:
Constant Field Values

OP_FILL_PAT

public static final int OP_FILL_PAT
See Also:
Constant Field Values

OP_OV_SIZE

public static final int OP_OV_SIZE
See Also:
Constant Field Values

OP_ORIGIN

public static final int OP_ORIGIN
See Also:
Constant Field Values

OP_TX_SIZE

public static final int OP_TX_SIZE
See Also:
Constant Field Values

OP_FG_COLOR

public static final int OP_FG_COLOR
See Also:
Constant Field Values

OP_BK_COLOR

public static final int OP_BK_COLOR
See Also:
Constant Field Values

OP_TX_RATIO

public static final int OP_TX_RATIO
See Also:
Constant Field Values

OP_VERSION

public static final int OP_VERSION
See Also:
Constant Field Values

OP_BK_PIX_PAT

public static final int OP_BK_PIX_PAT
See Also:
Constant Field Values

OP_PN_PIX_PAT

public static final int OP_PN_PIX_PAT
See Also:
Constant Field Values

OP_FILL_PIX_PAT

public static final int OP_FILL_PIX_PAT
See Also:
Constant Field Values

OP_PN_LOC_H_FRAC

public static final int OP_PN_LOC_H_FRAC
See Also:
Constant Field Values

OP_CH_EXTRA

public static final int OP_CH_EXTRA
See Also:
Constant Field Values

OP_RGB_FG_COL

public static final int OP_RGB_FG_COL
See Also:
Constant Field Values

OP_RGB_BK_COL

public static final int OP_RGB_BK_COL
See Also:
Constant Field Values

OP_HILITE_MODE

public static final int OP_HILITE_MODE
See Also:
Constant Field Values

OP_HILITE_COLOR

public static final int OP_HILITE_COLOR
See Also:
Constant Field Values

OP_DEF_HILITE

public static final int OP_DEF_HILITE
See Also:
Constant Field Values

OP_OP_COLOR

public static final int OP_OP_COLOR
See Also:
Constant Field Values

OP_LINE

public static final int OP_LINE
See Also:
Constant Field Values

OP_LINE_FROM

public static final int OP_LINE_FROM
See Also:
Constant Field Values

OP_SHORT_LINE

public static final int OP_SHORT_LINE
See Also:
Constant Field Values

OP_SHORT_LINE_FROM

public static final int OP_SHORT_LINE_FROM
See Also:
Constant Field Values

OP_LONG_TEXT

public static final int OP_LONG_TEXT
See Also:
Constant Field Values

OP_DH_TEXT

public static final int OP_DH_TEXT
See Also:
Constant Field Values

OP_DV_TEXT

public static final int OP_DV_TEXT
See Also:
Constant Field Values

OP_DHDV_TEXT

public static final int OP_DHDV_TEXT
See Also:
Constant Field Values

OP_FONT_NAME

public static final int OP_FONT_NAME
See Also:
Constant Field Values

OP_LINE_JUSTIFY

public static final int OP_LINE_JUSTIFY
See Also:
Constant Field Values

OP_GLYPH_STATE

public static final int OP_GLYPH_STATE
See Also:
Constant Field Values

OP_FRAME_RECT

public static final int OP_FRAME_RECT
See Also:
Constant Field Values

OP_PAINT_RECT

public static final int OP_PAINT_RECT
See Also:
Constant Field Values

OP_ERASE_RECT

public static final int OP_ERASE_RECT
See Also:
Constant Field Values

OP_INVERT_RECT

public static final int OP_INVERT_RECT
See Also:
Constant Field Values

OP_FILL_RECT

public static final int OP_FILL_RECT
See Also:
Constant Field Values

OP_FRAME_SAME_RECT

public static final int OP_FRAME_SAME_RECT
See Also:
Constant Field Values

OP_PAINT_SAME_RECT

public static final int OP_PAINT_SAME_RECT
See Also:
Constant Field Values

OP_ERASE_SAME_RECT

public static final int OP_ERASE_SAME_RECT
See Also:
Constant Field Values

OP_INVERT_SAME_RECT

public static final int OP_INVERT_SAME_RECT
See Also:
Constant Field Values

OP_FILL_SAME_RECT

public static final int OP_FILL_SAME_RECT
See Also:
Constant Field Values

OP_FRAME_R_RECT

public static final int OP_FRAME_R_RECT
See Also:
Constant Field Values

OP_PAINT_R_RECT

public static final int OP_PAINT_R_RECT
See Also:
Constant Field Values

OP_ERASE_R_RECT

public static final int OP_ERASE_R_RECT
See Also:
Constant Field Values

OP_INVERT_R_RECT

public static final int OP_INVERT_R_RECT
See Also:
Constant Field Values

OP_FILL_R_RECT

public static final int OP_FILL_R_RECT
See Also:
Constant Field Values

OP_FRAME_SAME_R_RECT

public static final int OP_FRAME_SAME_R_RECT
See Also:
Constant Field Values

OP_PAINT_SAME_R_RECT

public static final int OP_PAINT_SAME_R_RECT
See Also:
Constant Field Values

OP_ERASE_SAME_R_RECT

public static final int OP_ERASE_SAME_R_RECT
See Also:
Constant Field Values

OP_INVERT_SAME_R_RECT

public static final int OP_INVERT_SAME_R_RECT
See Also:
Constant Field Values

OP_FILL_SAME_R_RECT

public static final int OP_FILL_SAME_R_RECT
See Also:
Constant Field Values

OP_FRAME_OVAL

public static final int OP_FRAME_OVAL
See Also:
Constant Field Values

OP_PAINT_OVAL

public static final int OP_PAINT_OVAL
See Also:
Constant Field Values

OP_ERASE_OVAL

public static final int OP_ERASE_OVAL
See Also:
Constant Field Values

OP_INVERT_OVAL

public static final int OP_INVERT_OVAL
See Also:
Constant Field Values

OP_FILL_OVAL

public static final int OP_FILL_OVAL
See Also:
Constant Field Values

OP_FRAME_SAME_OVAL

public static final int OP_FRAME_SAME_OVAL
See Also:
Constant Field Values

OP_PAINT_SAME_OVAL

public static final int OP_PAINT_SAME_OVAL
See Also:
Constant Field Values

OP_ERASE_SAME_OVAL

public static final int OP_ERASE_SAME_OVAL
See Also:
Constant Field Values

OP_INVERT_SAME_OVAL

public static final int OP_INVERT_SAME_OVAL
See Also:
Constant Field Values

OP_FILL_SAME_OVAL

public static final int OP_FILL_SAME_OVAL
See Also:
Constant Field Values

OP_FRAME_ARC

public static final int OP_FRAME_ARC
See Also:
Constant Field Values

OP_PAINT_ARC

public static final int OP_PAINT_ARC
See Also:
Constant Field Values

OP_ERASE_ARC

public static final int OP_ERASE_ARC
See Also:
Constant Field Values

OP_INVERT_ARC

public static final int OP_INVERT_ARC
See Also:
Constant Field Values

OP_FILL_ARC

public static final int OP_FILL_ARC
See Also:
Constant Field Values

OP_FRAME_SAME_ARC

public static final int OP_FRAME_SAME_ARC
See Also:
Constant Field Values

OP_PAINT_SAME_ARC

public static final int OP_PAINT_SAME_ARC
See Also:
Constant Field Values

OP_ERASE_SAME_ARC

public static final int OP_ERASE_SAME_ARC
See Also:
Constant Field Values

OP_INVERT_SAME_ARC

public static final int OP_INVERT_SAME_ARC
See Also:
Constant Field Values

OP_FILL_SAME_ARC

public static final int OP_FILL_SAME_ARC
See Also:
Constant Field Values

OP_FRAME_POLY

public static final int OP_FRAME_POLY
See Also:
Constant Field Values

OP_PAINT_POLY

public static final int OP_PAINT_POLY
See Also:
Constant Field Values

OP_ERASE_POLY

public static final int OP_ERASE_POLY
See Also:
Constant Field Values

OP_INVERT_POLY

public static final int OP_INVERT_POLY
See Also:
Constant Field Values

OP_FILL_POLY

public static final int OP_FILL_POLY
See Also:
Constant Field Values

OP_FRAME_SAME_POLY

public static final int OP_FRAME_SAME_POLY
See Also:
Constant Field Values

OP_PAINT_SAME_POLY

public static final int OP_PAINT_SAME_POLY
See Also:
Constant Field Values

OP_ERASE_SAME_POLY

public static final int OP_ERASE_SAME_POLY
See Also:
Constant Field Values

OP_INVERT_SAME_POLY

public static final int OP_INVERT_SAME_POLY
See Also:
Constant Field Values

OP_FILL_SAME_POLY

public static final int OP_FILL_SAME_POLY
See Also:
Constant Field Values

OP_FRAME_RGN

public static final int OP_FRAME_RGN
See Also:
Constant Field Values

OP_PAINT_RGN

public static final int OP_PAINT_RGN
See Also:
Constant Field Values

OP_ERASE_RGN

public static final int OP_ERASE_RGN
See Also:
Constant Field Values

OP_INVERT_RGN

public static final int OP_INVERT_RGN
See Also:
Constant Field Values

OP_FILL_RGN

public static final int OP_FILL_RGN
See Also:
Constant Field Values

OP_FRAME_SAME_RGN

public static final int OP_FRAME_SAME_RGN
See Also:
Constant Field Values

OP_PAINT_SAME_RGN

public static final int OP_PAINT_SAME_RGN
See Also:
Constant Field Values

OP_ERASE_SAME_RGN

public static final int OP_ERASE_SAME_RGN
See Also:
Constant Field Values

OP_INVERT_SAME_RGN

public static final int OP_INVERT_SAME_RGN
See Also:
Constant Field Values

OP_FILL_SAME_RGN

public static final int OP_FILL_SAME_RGN
See Also:
Constant Field Values

OP_BITS_RECT

public static final int OP_BITS_RECT
See Also:
Constant Field Values

OP_BITS_RGN

public static final int OP_BITS_RGN
See Also:
Constant Field Values

OP_PACK_BITS_RECT

public static final int OP_PACK_BITS_RECT
See Also:
Constant Field Values

OP_PACK_BITS_RGN

public static final int OP_PACK_BITS_RGN
See Also:
Constant Field Values

OP_DIRECT_BITS_RECT

public static final int OP_DIRECT_BITS_RECT
See Also:
Constant Field Values

OP_DIRECT_BITS_RGN

public static final int OP_DIRECT_BITS_RGN
See Also:
Constant Field Values

OP_SHORT_COMMENT

public static final int OP_SHORT_COMMENT
See Also:
Constant Field Values

OP_LONG_COMMENT

public static final int OP_LONG_COMMENT
See Also:
Constant Field Values

OP_END_OF_PICTURE

public static final int OP_END_OF_PICTURE
See Also:
Constant Field Values

OP_VERSION_2

public static final int OP_VERSION_2
See Also:
Constant Field Values

OP_COMPRESSED_QUICKTIME

public static final int OP_COMPRESSED_QUICKTIME
See Also:
Constant Field Values

OP_UNCOMPRESSED_QUICKTIME

public static final int OP_UNCOMPRESSED_QUICKTIME
See Also:
Constant Field Values
Constructor Detail

PICTReader

public PICTReader()
Initialize stuff.

Method Detail

getWidth

public int getWidth()
Implements VectorImageProducer getWidth(). If we don't know the frame size yet, then read it in.

Specified by:
getWidth in class VectorImageProducer

getHeight

public int getHeight()
Implements VectorImageProducer getHeight(). If we don't know the frame size yet, then read it in.

Specified by:
getHeight in class VectorImageProducer

playIt

public void playIt(java.awt.Graphics g,
                   java.awt.Component c)
Implements VectorImageProducer drawIt(). Re-read the whole PICT file and replay the drawing operations in it.

Specified by:
playIt in class VectorImageProducer

checkImage

public int checkImage()
Implements VectorImageProducer drawIntoImage(). Return the status of the drawing launched by drawIntoImage. NOT IMPLEMENTED YET!.

Specified by:
checkImage in class VectorImageProducer

setImageFile

public void setImageFile(java.lang.String filePath)
Sets the path of the image file to use.


setVerbose

public void setVerbose(boolean state)
Sets verbose to the state indicated.


isVerbose

public boolean isVerbose(boolean state)
Return if verbose or not.


readPICTFile

public boolean readPICTFile()
Open and read the PICT file. If we have a drawing graphics, then we try to draw the contents as well as possible. If "verbose" is true, the elements read are listed on stdout.