net.sourceforge.plantuml
Class UmlDiagram

java.lang.Object
  extended by net.sourceforge.plantuml.AbstractPSystem
      extended by net.sourceforge.plantuml.UmlDiagram
All Implemented Interfaces:
Diagram
Direct Known Subclasses:
ActivityDiagram3, CucaDiagram, FlowDiagram, PostItDiagram, SequenceDiagram

public abstract class UmlDiagram
extends AbstractPSystem
implements Diagram


Constructor Summary
UmlDiagram()
           
 
Method Summary
 void addSprite(java.lang.String name, Sprite sprite)
           
protected  void exportCmap(java.io.File suggestedFile, ImageData cmapdata)
           
 ImageData exportDiagram(java.io.OutputStream os, int index, FileFormatOption fileFormatOption)
          Export the diagram as an image to some format.
protected abstract  ImageData exportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption, java.util.List<java.awt.image.BufferedImage> flashcodes)
           
 int getDpi(FileFormatOption fileFormatOption)
           
 double getDpiFactor(FileFormatOption fileFormatOption)
           
 Display getFooter()
           
 HorizontalAlignment getFooterAlignment()
           
 Display getHeader()
           
 HorizontalAlignment getHeaderAlignment()
           
 Display getLegend()
           
 HorizontalAlignment getLegendAlignment()
           
 int getMinwidth()
           
 Pragma getPragma()
           
 Scale getScale()
           
 ISkinParam getSkinParam()
           
 Display getTitle()
           
abstract  UmlDiagramType getUmlDiagramType()
           
 java.lang.String getWarningOrError()
           
 boolean isHideUnlinkedData()
           
 boolean isRotation()
           
 void setFooter(Display footer)
           
 void setFooterAlignment(HorizontalAlignment footerAlignment)
           
 void setHeader(Display header)
           
 void setHeaderAlignment(HorizontalAlignment headerAlignment)
           
 void setHideUnlinkedData(boolean hideUnlinkedData)
           
 void setLegend(Display legend, HorizontalAlignment horizontalAlignment)
           
 void setMinwidth(int minwidth)
           
 void setParam(java.lang.String key, java.lang.String value)
           
 void setRotation(boolean rotation)
           
 void setScale(Scale scale)
           
 void setTitle(Display strings)
           
 
Methods inherited from class net.sourceforge.plantuml.AbstractPSystem
executeCommand, getMetadata, getNbImages, getSource, isOk, makeDiagramReady, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.plantuml.core.Diagram
getDescription, getMetadata, getNbImages, getSource
 

Constructor Detail

UmlDiagram

public UmlDiagram()
Method Detail

setTitle

public final void setTitle(Display strings)

getTitle

public final Display getTitle()
Overrides:
getTitle in class AbstractPSystem

getMinwidth

public final int getMinwidth()

setMinwidth

public final void setMinwidth(int minwidth)

isRotation

public final boolean isRotation()

setRotation

public final void setRotation(boolean rotation)

getSkinParam

public final ISkinParam getSkinParam()

setParam

public void setParam(java.lang.String key,
                     java.lang.String value)

getHeader

public final Display getHeader()

setHeader

public final void setHeader(Display header)

getFooter

public final Display getFooter()

setFooter

public final void setFooter(Display footer)

getHeaderAlignment

public final HorizontalAlignment getHeaderAlignment()

setHeaderAlignment

public final void setHeaderAlignment(HorizontalAlignment headerAlignment)

getFooterAlignment

public final HorizontalAlignment getFooterAlignment()

setFooterAlignment

public final void setFooterAlignment(HorizontalAlignment footerAlignment)

getUmlDiagramType

public abstract UmlDiagramType getUmlDiagramType()

getPragma

public Pragma getPragma()

setScale

public final void setScale(Scale scale)

getScale

public final Scale getScale()

getDpiFactor

public final double getDpiFactor(FileFormatOption fileFormatOption)

getDpi

public final int getDpi(FileFormatOption fileFormatOption)

isHideUnlinkedData

public final boolean isHideUnlinkedData()

setHideUnlinkedData

public final void setHideUnlinkedData(boolean hideUnlinkedData)

exportDiagram

public final ImageData exportDiagram(java.io.OutputStream os,
                                     int index,
                                     FileFormatOption fileFormatOption)
                              throws java.io.IOException
Description copied from interface: Diagram
Export the diagram as an image to some format. Note that a diagram could be drawn as several images (think about new page for sequence diagram for example).

Specified by:
exportDiagram in interface Diagram
Parameters:
os - where to write the image
index - useually 0 (index of the image to be exported for this diagram).
fileFormatOption - file format to use
Returns:
a description of the generated image
Throws:
java.io.IOException

exportDiagramInternal

protected abstract ImageData exportDiagramInternal(java.io.OutputStream os,
                                                   int index,
                                                   FileFormatOption fileFormatOption,
                                                   java.util.List<java.awt.image.BufferedImage> flashcodes)
                                            throws java.io.IOException
Throws:
java.io.IOException

exportCmap

protected final void exportCmap(java.io.File suggestedFile,
                                ImageData cmapdata)
                         throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

getWarningOrError

public java.lang.String getWarningOrError()
Specified by:
getWarningOrError in interface Diagram
Overrides:
getWarningOrError in class AbstractPSystem

addSprite

public void addSprite(java.lang.String name,
                      Sprite sprite)

getLegend

public final Display getLegend()

getLegendAlignment

public final HorizontalAlignment getLegendAlignment()

setLegend

public final void setLegend(Display legend,
                            HorizontalAlignment horizontalAlignment)


Copyright © 2013. All Rights Reserved.