Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.jboogie.util.graphicswriter

Class GraphicsWriter

com.gentleware.jboogie.util.graphicswriter.GraphicsWriter
All known Subclassifier:
EpsWmfWriter , EpsWriter , GifWriter , MultiSuffixWriter , SvgWriter , WmfWriter


public abstract class GraphicsWriter


A class that knows how to paint a rectangle area of a PCanvas and save the result to an output stream.

Created: 21.02.2003 11:30:58


 Inner Classifier Summary
public static   GraphicsWriter.WriteException
 
public static   GraphicsWriter.GraphicsFileFilter
 
arrow_up
 

 Attribute Summary
private static Map  _formatNameToWriter
 
arrow_up
 

 Association Summary
private GraphicsFileFilter  _graphicsFileFilter
 
private GraphicsWriter[]  _writers
 
arrow_up
 

 Constructor Summary
protected   GraphicsWriter()
 
arrow_up
 

 Method Summary
public static GraphicsWriter   get(String format)
Returns a graphics writer capable of writing in the specified format. 
public static GraphicsWriter[]   getAll()
 
public String   getDefaultFileSuffix()
 
public GraphicsWriter.GraphicsFileFilter   getFileChooserFilter()
 
public String[]   getFileSuffixes()
By default returns only the default file suffix, but subclasses whose format have multiple common suffixes may override this method. 
public String   getFormatName()
 
public ResourceId   getFormatNameResourceId()
 
private static void   init()
 
public boolean   isFileSuffix(String suffix)
 
public void   write(OutputStream s, PCanvas canvas)
 
public void   write(OutputStream s, PCanvas canvas, Rectangle drawingArea)
 
arrow_up
 

Tagged Values
static false
gentleware-imported-line-number 24
gentleware-imported-package-statement-line-number 5
 

 Inner Classifier Detail

GraphicsWriter.WriteException

public static  GraphicsWriter.WriteException

arrow_up


GraphicsWriter.GraphicsFileFilter

public static  GraphicsWriter.GraphicsFileFilter

arrow_up
 Attribute Detail

_formatNameToWriter

private static Map _formatNameToWriter

arrow_up
 Association Detail

_graphicsFileFilter

private GraphicsFileFilter _graphicsFileFilter

arrow_up


_writers

private GraphicsWriter[] _writers

arrow_up
 Constructor Detail

GraphicsWriter

protected com.gentleware.jboogie.util.graphicswriter.GraphicsWriter GraphicsWriter()

Returns:
arrow_up
 Method Detail

get

public static GraphicsWriter get(String format)


Returns a graphics writer capable of writing in the specified format.  
Parameters:
format - one of "eps", "epswmf" (eps with preview in wmf format), "gif", "jpg", "png", "ps", "svg", "wmf"
Returns:
arrow_up


getAll

public static GraphicsWriter[] getAll()

Returns:
arrow_up


getDefaultFileSuffix

public String getDefaultFileSuffix()

Returns:
the default file suffix for writing in this format, e.g. "jpg"
arrow_up


getFileChooserFilter

public GraphicsWriter.GraphicsFileFilter getFileChooserFilter()

Returns:
arrow_up


getFileSuffixes

public String[] getFileSuffixes()


By default returns only the default file suffix, but subclasses whose format have multiple common suffixes may override this method.  
Returns:
a list of common file suffixes for this format, e.g. {"jpg", "jpeg"}
arrow_up


getFormatName

public String getFormatName()

Returns:
a (localized) name of the image format supported by this writer, e.g. "Portable Network Graphics"
arrow_up


getFormatNameResourceId

public ResourceId getFormatNameResourceId()

Returns:
a (localized) key of the name of the image format supported by this writer, e.g. "Portable Network Graphics"
arrow_up


init

private static void init()

arrow_up


isFileSuffix

public boolean isFileSuffix(String suffix)

Parameters:
suffix -
Returns:
a convenience method to check if the suffix is contained in the list of file suffixes for this format (case insensitive)
arrow_up


write

public void write(OutputStream s, PCanvas canvas)

Parameters:
s -
canvas -
arrow_up


write

public void write(OutputStream s, PCanvas canvas, Rectangle drawingArea)

Parameters:
s -
canvas -
drawingArea -
arrow_up
Created  2004 - 12 - 1

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.