org.jopendocument.io.svm
Class SVMReader

java.lang.Object
  extended by org.jopendocument.io.svm.SVMReader

public class SVMReader
extends Object

Work in progress of a SVM Reader. It handles StarView metafiles : an undocumented format used in StarOffice, OpenOffice, LibreOffice... This code reflects all the hacks used in SVM files to encode BMP ;)


Field Summary
static int META_ARC_ACTION
           
static int META_BMP_ACTION
           
static int META_BMPEX_ACTION
           
static int META_BMPEXSCALE_ACTION
           
static int META_BMPEXSCALEPART_ACTION
           
static int META_BMPSCALE_ACTION
           
static int META_BMPSCALEPART_ACTION
           
static int META_CHORD_ACTION
           
static int META_CLIPREGION_ACTION
           
static int META_COMMENT_ACTION
           
static int META_ELLIPSE_ACTION
           
static int META_EPS_ACTION
           
static int META_FILLCOLOR_ACTION
           
static int META_FLOATTRANSPARENT_ACTION
           
static int META_FONT_ACTION
           
static int META_GRADIENT_ACTION
           
static int META_GRADIENTEX_ACTION
           
static int META_HATCH_ACTION
           
static int META_ISECTRECTCLIPREGION_ACTION
           
static int META_ISECTREGIONCLIPREGION_ACTION
           
static int META_LAYOUTMODE_ACTION
           
static int META_LINE_ACTION
           
static int META_LINECOLOR_ACTION
           
static int META_MAPMODE_ACTION
           
static int META_MASK_ACTION
           
static int META_MASKSCALE_ACTION
           
static int META_MASKSCALEPART_ACTION
           
static int META_MOVECLIPREGION_ACTION
           
static int META_NULL_ACTION
           
static int META_OVERLINECOLOR_ACTION
           
static int META_PIE_ACTION
           
static int META_PIXEL_ACTION
           
static int META_POINT_ACTION
           
static int META_POLYGON_ACTION
           
static int META_POLYLINE_ACTION
           
static int META_POLYPOLYGON_ACTION
           
static int META_POP_ACTION
           
static int META_PUSH_ACTION
           
static int META_RASTEROP_ACTION
           
static int META_RECT_ACTION
           
static int META_REFPOINT_ACTION
           
static int META_RENDERGRAPHIC_ACTION
           
static int META_ROUNDRECT_ACTION
           
static int META_STRETCHTEXT_ACTION
           
static int META_TEXT_ACTION
           
static int META_TEXTALIGN_ACTION
           
static int META_TEXTARRAY_ACTION
           
static int META_TEXTCOLOR_ACTION
           
static int META_TEXTFILLCOLOR_ACTION
           
static int META_TEXTLANGUAGE_ACTION
           
static int META_TEXTLINE_ACTION
           
static int META_TEXTLINECOLOR_ACTION
           
static int META_TEXTRECT_ACTION
           
static int META_TRANSPARENT_ACTION
           
static int META_WALLPAPER_ACTION
           
 
Constructor Summary
SVMReader(File f)
           
SVMReader(InputStream stream)
           
 
Method Summary
 BufferedImage getImage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

META_NULL_ACTION

public static final int META_NULL_ACTION
See Also:
Constant Field Values

META_PIXEL_ACTION

public static final int META_PIXEL_ACTION
See Also:
Constant Field Values

META_POINT_ACTION

public static final int META_POINT_ACTION
See Also:
Constant Field Values

META_LINE_ACTION

public static final int META_LINE_ACTION
See Also:
Constant Field Values

META_RECT_ACTION

public static final int META_RECT_ACTION
See Also:
Constant Field Values

META_ROUNDRECT_ACTION

public static final int META_ROUNDRECT_ACTION
See Also:
Constant Field Values

META_ELLIPSE_ACTION

public static final int META_ELLIPSE_ACTION
See Also:
Constant Field Values

META_ARC_ACTION

public static final int META_ARC_ACTION
See Also:
Constant Field Values

META_PIE_ACTION

public static final int META_PIE_ACTION
See Also:
Constant Field Values

META_CHORD_ACTION

public static final int META_CHORD_ACTION
See Also:
Constant Field Values

META_POLYLINE_ACTION

public static final int META_POLYLINE_ACTION
See Also:
Constant Field Values

META_POLYGON_ACTION

public static final int META_POLYGON_ACTION
See Also:
Constant Field Values

META_POLYPOLYGON_ACTION

public static final int META_POLYPOLYGON_ACTION
See Also:
Constant Field Values

META_TEXT_ACTION

public static final int META_TEXT_ACTION
See Also:
Constant Field Values

META_TEXTARRAY_ACTION

public static final int META_TEXTARRAY_ACTION
See Also:
Constant Field Values

META_STRETCHTEXT_ACTION

public static final int META_STRETCHTEXT_ACTION
See Also:
Constant Field Values

META_TEXTRECT_ACTION

public static final int META_TEXTRECT_ACTION
See Also:
Constant Field Values

META_BMP_ACTION

public static final int META_BMP_ACTION
See Also:
Constant Field Values

META_BMPSCALE_ACTION

public static final int META_BMPSCALE_ACTION
See Also:
Constant Field Values

META_BMPSCALEPART_ACTION

public static final int META_BMPSCALEPART_ACTION
See Also:
Constant Field Values

META_BMPEX_ACTION

public static final int META_BMPEX_ACTION
See Also:
Constant Field Values

META_BMPEXSCALE_ACTION

public static final int META_BMPEXSCALE_ACTION
See Also:
Constant Field Values

META_BMPEXSCALEPART_ACTION

public static final int META_BMPEXSCALEPART_ACTION
See Also:
Constant Field Values

META_MASK_ACTION

public static final int META_MASK_ACTION
See Also:
Constant Field Values

META_MASKSCALE_ACTION

public static final int META_MASKSCALE_ACTION
See Also:
Constant Field Values

META_MASKSCALEPART_ACTION

public static final int META_MASKSCALEPART_ACTION
See Also:
Constant Field Values

META_GRADIENT_ACTION

public static final int META_GRADIENT_ACTION
See Also:
Constant Field Values

META_HATCH_ACTION

public static final int META_HATCH_ACTION
See Also:
Constant Field Values

META_WALLPAPER_ACTION

public static final int META_WALLPAPER_ACTION
See Also:
Constant Field Values

META_CLIPREGION_ACTION

public static final int META_CLIPREGION_ACTION
See Also:
Constant Field Values

META_ISECTRECTCLIPREGION_ACTION

public static final int META_ISECTRECTCLIPREGION_ACTION
See Also:
Constant Field Values

META_ISECTREGIONCLIPREGION_ACTION

public static final int META_ISECTREGIONCLIPREGION_ACTION
See Also:
Constant Field Values

META_MOVECLIPREGION_ACTION

public static final int META_MOVECLIPREGION_ACTION
See Also:
Constant Field Values

META_LINECOLOR_ACTION

public static final int META_LINECOLOR_ACTION
See Also:
Constant Field Values

META_FILLCOLOR_ACTION

public static final int META_FILLCOLOR_ACTION
See Also:
Constant Field Values

META_TEXTCOLOR_ACTION

public static final int META_TEXTCOLOR_ACTION
See Also:
Constant Field Values

META_TEXTFILLCOLOR_ACTION

public static final int META_TEXTFILLCOLOR_ACTION
See Also:
Constant Field Values

META_TEXTALIGN_ACTION

public static final int META_TEXTALIGN_ACTION
See Also:
Constant Field Values

META_MAPMODE_ACTION

public static final int META_MAPMODE_ACTION
See Also:
Constant Field Values

META_FONT_ACTION

public static final int META_FONT_ACTION
See Also:
Constant Field Values

META_PUSH_ACTION

public static final int META_PUSH_ACTION
See Also:
Constant Field Values

META_POP_ACTION

public static final int META_POP_ACTION
See Also:
Constant Field Values

META_RASTEROP_ACTION

public static final int META_RASTEROP_ACTION
See Also:
Constant Field Values

META_TRANSPARENT_ACTION

public static final int META_TRANSPARENT_ACTION
See Also:
Constant Field Values

META_EPS_ACTION

public static final int META_EPS_ACTION
See Also:
Constant Field Values

META_REFPOINT_ACTION

public static final int META_REFPOINT_ACTION
See Also:
Constant Field Values

META_TEXTLINECOLOR_ACTION

public static final int META_TEXTLINECOLOR_ACTION
See Also:
Constant Field Values

META_TEXTLINE_ACTION

public static final int META_TEXTLINE_ACTION
See Also:
Constant Field Values

META_FLOATTRANSPARENT_ACTION

public static final int META_FLOATTRANSPARENT_ACTION
See Also:
Constant Field Values

META_GRADIENTEX_ACTION

public static final int META_GRADIENTEX_ACTION
See Also:
Constant Field Values

META_LAYOUTMODE_ACTION

public static final int META_LAYOUTMODE_ACTION
See Also:
Constant Field Values

META_TEXTLANGUAGE_ACTION

public static final int META_TEXTLANGUAGE_ACTION
See Also:
Constant Field Values

META_OVERLINECOLOR_ACTION

public static final int META_OVERLINECOLOR_ACTION
See Also:
Constant Field Values

META_RENDERGRAPHIC_ACTION

public static final int META_RENDERGRAPHIC_ACTION
See Also:
Constant Field Values

META_COMMENT_ACTION

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

SVMReader

public SVMReader(File f)
          throws IOException
Throws:
IOException

SVMReader

public SVMReader(InputStream stream)
          throws IOException
Throws:
IOException
Method Detail

getImage

public BufferedImage getImage()


Copyright © 2010 jOpenDocument All Rights Reserved.