public abstract class UmlDiagram extends AbstractPSystem implements net.sourceforge.plantuml.core.Diagram
Constructor and Description |
---|
UmlDiagram() |
Modifier and Type | Method and Description |
---|---|
void |
addSprite(java.lang.String name,
net.sourceforge.plantuml.ugraphic.Sprite sprite) |
protected void |
exportCmap(java.io.File suggestedFile,
net.sourceforge.plantuml.core.ImageData cmapdata) |
net.sourceforge.plantuml.core.ImageData |
exportDiagram(java.io.OutputStream os,
int index,
FileFormatOption fileFormatOption)
Export the diagram as an image to some format.
|
protected abstract net.sourceforge.plantuml.core.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) |
net.sourceforge.plantuml.cucadiagram.Display |
getFooter() |
net.sourceforge.plantuml.graphic.HorizontalAlignment |
getFooterAlignment() |
net.sourceforge.plantuml.cucadiagram.Display |
getHeader() |
net.sourceforge.plantuml.graphic.HorizontalAlignment |
getHeaderAlignment() |
net.sourceforge.plantuml.cucadiagram.Display |
getLegend() |
net.sourceforge.plantuml.graphic.HorizontalAlignment |
getLegendAlignment() |
int |
getMinwidth() |
Pragma |
getPragma() |
Scale |
getScale() |
ISkinParam |
getSkinParam() |
net.sourceforge.plantuml.cucadiagram.Display |
getTitle() |
abstract UmlDiagramType |
getUmlDiagramType() |
java.lang.String |
getWarningOrError() |
boolean |
isHideUnlinkedData() |
boolean |
isRotation() |
void |
setFooter(net.sourceforge.plantuml.cucadiagram.Display footer) |
void |
setFooterAlignment(net.sourceforge.plantuml.graphic.HorizontalAlignment footerAlignment) |
void |
setHeader(net.sourceforge.plantuml.cucadiagram.Display header) |
void |
setHeaderAlignment(net.sourceforge.plantuml.graphic.HorizontalAlignment headerAlignment) |
void |
setHideUnlinkedData(boolean hideUnlinkedData) |
void |
setLegend(net.sourceforge.plantuml.cucadiagram.Display legend,
net.sourceforge.plantuml.graphic.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(net.sourceforge.plantuml.cucadiagram.Display strings) |
executeCommand, getMetadata, getNbImages, getSource, hasUrl, isOk, makeDiagramReady, setSource
public final void setTitle(net.sourceforge.plantuml.cucadiagram.Display strings)
public final net.sourceforge.plantuml.cucadiagram.Display getTitle()
getTitle
in class AbstractPSystem
public final int getMinwidth()
public final void setMinwidth(int minwidth)
public final boolean isRotation()
public final void setRotation(boolean rotation)
public final ISkinParam getSkinParam()
public void setParam(java.lang.String key, java.lang.String value)
public final net.sourceforge.plantuml.cucadiagram.Display getHeader()
public final void setHeader(net.sourceforge.plantuml.cucadiagram.Display header)
public final net.sourceforge.plantuml.cucadiagram.Display getFooter()
public final void setFooter(net.sourceforge.plantuml.cucadiagram.Display footer)
public final net.sourceforge.plantuml.graphic.HorizontalAlignment getHeaderAlignment()
public final void setHeaderAlignment(net.sourceforge.plantuml.graphic.HorizontalAlignment headerAlignment)
public final net.sourceforge.plantuml.graphic.HorizontalAlignment getFooterAlignment()
public final void setFooterAlignment(net.sourceforge.plantuml.graphic.HorizontalAlignment footerAlignment)
public abstract UmlDiagramType getUmlDiagramType()
public Pragma getPragma()
public final void setScale(Scale scale)
public final Scale getScale()
public final double getDpiFactor(FileFormatOption fileFormatOption)
public final int getDpi(FileFormatOption fileFormatOption)
public final boolean isHideUnlinkedData()
public final void setHideUnlinkedData(boolean hideUnlinkedData)
public final net.sourceforge.plantuml.core.ImageData exportDiagram(java.io.OutputStream os, int index, FileFormatOption fileFormatOption) throws java.io.IOException
net.sourceforge.plantuml.core.Diagram
new page
for sequence diagram for example).exportDiagram
in interface net.sourceforge.plantuml.core.Diagram
os
- where to write the imageindex
- useually 0 (index of the image to be exported for this diagram).fileFormatOption
- file format to usejava.io.IOException
protected abstract net.sourceforge.plantuml.core.ImageData exportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption, java.util.List<java.awt.image.BufferedImage> flashcodes) throws java.io.IOException
java.io.IOException
protected final void exportCmap(java.io.File suggestedFile, net.sourceforge.plantuml.core.ImageData cmapdata) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public java.lang.String getWarningOrError()
getWarningOrError
in interface net.sourceforge.plantuml.core.Diagram
getWarningOrError
in class AbstractPSystem
public void addSprite(java.lang.String name, net.sourceforge.plantuml.ugraphic.Sprite sprite)
public final net.sourceforge.plantuml.cucadiagram.Display getLegend()
public final net.sourceforge.plantuml.graphic.HorizontalAlignment getLegendAlignment()
public final void setLegend(net.sourceforge.plantuml.cucadiagram.Display legend, net.sourceforge.plantuml.graphic.HorizontalAlignment horizontalAlignment)