net.sourceforge.plantuml.cucadiagram
Class CucaDiagram

java.lang.Object
  extended by net.sourceforge.plantuml.AbstractPSystem
      extended by net.sourceforge.plantuml.UmlDiagram
          extended by net.sourceforge.plantuml.cucadiagram.CucaDiagram
All Implemented Interfaces:
Diagram, GroupHierarchy, PortionShower
Direct Known Subclasses:
AbstractEntityDiagram, ActivityDiagram

public abstract class CucaDiagram
extends UmlDiagram
implements GroupHierarchy, PortionShower


Constructor Summary
CucaDiagram()
           
 
Method Summary
 void addLink(Link link)
           
 void applySingleStrategy()
           
 ILeaf createLeaf(Code code, Display display, LeafType type)
           
protected  ILeaf createLeafInternal(Code code, Display display, LeafType type, IGroup group)
           
 List<File> createPng2(File pngFile)
           
 void createPng2(OutputStream os)
           
 void endGroup()
           
protected  ImageData exportDiagramInternal(OutputStream os, int index, FileFormatOption fileFormatOption, List<BufferedImage> flashcodes)
           
 Collection<IGroup> getChildrenGroups(IGroup parent)
           
 ColorMapper getColorMapper()
           
 IGroup getCurrentGroup()
           
protected abstract  List<String> getDotStrings()
           
 String[] getDotStringSkek()
           
 EntityFactory getEntityFactory()
           
 IGroup getGroup(Code code)
           
 Collection<IGroup> getGroups(boolean withRootGroup)
           
 Set<VisibilityModifier> getHides()
           
 int getHorizontalPages()
           
 String getLabelangle()
           
 String getLabeldistance()
           
 ILeaf getLastEntity()
           
 Link getLastLink()
           
 Map<Code,ILeaf> getLeafs()
           
 List<Link> getLinks()
           
 int getNbImages()
          Number of images in this diagram (usually, 1)
 IGroup getOrCreateGroup(Code code, Display display, String namespace, GroupType type, IGroup parent)
           
protected  IGroup getOrCreateGroupInternal(Code code, Display display, String namespace, GroupType type, IGroup parent)
           
abstract  IEntity getOrCreateLeaf1(Code code, LeafType type)
           
protected  ILeaf getOrCreateLeaf1Default(Code code, LeafType type)
           
 Rankdir getRankdir()
           
 IGroup getRootGroup()
           
 int getVerticalPages()
           
 String getWarningOrError()
           
 boolean hasUrl()
           
 void hideOrShow(EntityGender gender, Set<EntityPortion> portions, boolean show)
           
 void hideOrShow(ILeaf leaf, boolean show)
           
 void hideOrShow(Set<VisibilityModifier> visibilities, boolean show)
           
 boolean isAutarkic(IGroup g)
           
 boolean isEmpty(IGroup gToTest)
           
 boolean isGroup(Code code)
           
 boolean isHideEmptyDescriptionForState()
           
 boolean isStandalone(IEntity ent)
           
 boolean isVisibilityModifierPresent()
           
 boolean leafExist(Code code)
           
protected  void removeLink(Link link)
           
 void resetPragmaLabel()
           
 void setHorizontalPages(int horizontalPages)
           
 void setRankdir(Rankdir rankdir)
           
 void setVerticalPages(int verticalPages)
           
 void setVisibilityModifierPresent(boolean visibilityModifierPresent)
           
 boolean showPortion(EntityPortion portion, ILeaf entity)
           
 
Methods inherited from class net.sourceforge.plantuml.UmlDiagram
addSprite, exportCmap, exportDiagram, getDpi, getDpiFactor, getFooter, getFooterAlignment, getHeader, getHeaderAlignment, getLegend, getLegendAlignment, getMinwidth, getPragma, getScale, getSkinParam, getTitle, getUmlDiagramType, isHideUnlinkedData, isRotation, setFooter, setFooterAlignment, setHeader, setHeaderAlignment, setHideUnlinkedData, setLegend, setMinwidth, setParam, setRotation, setScale, setTitle
 
Methods inherited from class net.sourceforge.plantuml.AbstractPSystem
executeCommand, getMetadata, 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, getSource
 

Constructor Detail

CucaDiagram

public CucaDiagram()
Method Detail

getOrCreateLeaf1

public abstract IEntity getOrCreateLeaf1(Code code,
                                         LeafType type)

hasUrl

public boolean hasUrl()

getOrCreateLeaf1Default

protected final ILeaf getOrCreateLeaf1Default(Code code,
                                              LeafType type)

createLeaf

public ILeaf createLeaf(Code code,
                        Display display,
                        LeafType type)

createLeafInternal

protected final ILeaf createLeafInternal(Code code,
                                         Display display,
                                         LeafType type,
                                         IGroup group)

leafExist

public boolean leafExist(Code code)

getChildrenGroups

public final Collection<IGroup> getChildrenGroups(IGroup parent)
Specified by:
getChildrenGroups in interface GroupHierarchy

getOrCreateGroup

public final IGroup getOrCreateGroup(Code code,
                                     Display display,
                                     String namespace,
                                     GroupType type,
                                     IGroup parent)

getOrCreateGroupInternal

protected final IGroup getOrCreateGroupInternal(Code code,
                                                Display display,
                                                String namespace,
                                                GroupType type,
                                                IGroup parent)

getCurrentGroup

public final IGroup getCurrentGroup()

getGroup

public final IGroup getGroup(Code code)

endGroup

public void endGroup()

isGroup

public final boolean isGroup(Code code)

getGroups

public final Collection<IGroup> getGroups(boolean withRootGroup)

getRootGroup

public IGroup getRootGroup()

getLeafs

public final Map<Code,ILeaf> getLeafs()

addLink

public final void addLink(Link link)

removeLink

protected final void removeLink(Link link)

getLinks

public final List<Link> getLinks()

getHorizontalPages

public final int getHorizontalPages()

setHorizontalPages

public final void setHorizontalPages(int horizontalPages)

getVerticalPages

public final int getVerticalPages()

setVerticalPages

public final void setVerticalPages(int verticalPages)

createPng2

public final List<File> createPng2(File pngFile)
                            throws IOException,
                                   InterruptedException
Throws:
IOException
InterruptedException

createPng2

public final void createPng2(OutputStream os)
                      throws IOException
Throws:
IOException

getDotStrings

protected abstract List<String> getDotStrings()

getDotStringSkek

public final String[] getDotStringSkek()

exportDiagramInternal

protected final ImageData exportDiagramInternal(OutputStream os,
                                                int index,
                                                FileFormatOption fileFormatOption,
                                                List<BufferedImage> flashcodes)
                                         throws IOException
Specified by:
exportDiagramInternal in class UmlDiagram
Throws:
IOException

getWarningOrError

public String getWarningOrError()
Specified by:
getWarningOrError in interface Diagram
Overrides:
getWarningOrError in class UmlDiagram

getRankdir

public final Rankdir getRankdir()

setRankdir

public final void setRankdir(Rankdir rankdir)

isAutarkic

public boolean isAutarkic(IGroup g)

resetPragmaLabel

public void resetPragmaLabel()

getLabeldistance

public String getLabeldistance()

getLabelangle

public String getLabelangle()

isEmpty

public final boolean isEmpty(IGroup gToTest)
Specified by:
isEmpty in interface GroupHierarchy

isVisibilityModifierPresent

public final boolean isVisibilityModifierPresent()

setVisibilityModifierPresent

public final void setVisibilityModifierPresent(boolean visibilityModifierPresent)

showPortion

public final boolean showPortion(EntityPortion portion,
                                 ILeaf entity)
Specified by:
showPortion in interface PortionShower

hideOrShow

public final void hideOrShow(EntityGender gender,
                             Set<EntityPortion> portions,
                             boolean show)

hideOrShow

public void hideOrShow(Set<VisibilityModifier> visibilities,
                       boolean show)

hideOrShow

public void hideOrShow(ILeaf leaf,
                       boolean show)

getNbImages

public int getNbImages()
Description copied from interface: Diagram
Number of images in this diagram (usually, 1)

Specified by:
getNbImages in interface Diagram
Overrides:
getNbImages in class AbstractPSystem
Returns:
usually 1

getHides

public final Set<VisibilityModifier> getHides()

getColorMapper

public ColorMapper getColorMapper()

isStandalone

public final boolean isStandalone(IEntity ent)

getLastLink

public final Link getLastLink()

getLastEntity

public final ILeaf getLastEntity()

getEntityFactory

public final EntityFactory getEntityFactory()

applySingleStrategy

public void applySingleStrategy()

isHideEmptyDescriptionForState

public boolean isHideEmptyDescriptionForState()


Copyright © 2013. All Rights Reserved.