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 GifWriter

com.gentleware.jboogie.util.graphicswriter.GraphicsWriter
    inheritcom.gentleware.jboogie.util.graphicswriter.GifWriter

public class GifWriter


Cmd to save a diagram as a GIF image in a supplied OutputStream. Requires the Acme.JPM.Encoders.GifEncoder class.

Code loosely adapted from CmdPrint.

Authors:
Steve Poole, stevep@wrq.com


 Attribute Summary
public static int  TRANSPARENT_BG_COLOR
Used as background color in image and set transparent. 
arrow_up
 

 Method Summary
public String   getDefaultFileSuffix()
 
public String   getFormatName()
 
public ResourceId   getFormatNameResourceId()
 
public void   write(OutputStream s, PCanvas canvas, Rectangle drawingArea)
Write the diagram contained by the current editor into an OutputStream as a GIF image. 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

TRANSPARENT_BG_COLOR

public static int TRANSPARENT_BG_COLOR

Used as background color in image and set transparent. Chosen because it's unlikely to be selected by the user, and leaves the diagram readable if viewed without transparency.  
arrow_up
 Method Detail

getDefaultFileSuffix

public String getDefaultFileSuffix()

Returns:
arrow_up


getFormatName

public String getFormatName()

Returns:
arrow_up


getFormatNameResourceId

public ResourceId getFormatNameResourceId()

Returns:
arrow_up


write

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


Write the diagram contained by the current editor into an OutputStream as a GIF image.  
Parameters:
s -
canvas -
drawingArea -
arrow_up
Created  2004 - 10 - 21

    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.