Class CucaDiagram
- java.lang.Object
-
- net.sourceforge.plantuml.AbstractPSystem
-
- net.sourceforge.plantuml.UmlDiagram
-
- net.sourceforge.plantuml.cucadiagram.CucaDiagram
-
- All Implemented Interfaces:
Annotated,Diagram,GroupHierarchy,PortionShower,WithSprite
- Direct Known Subclasses:
AbstractEntityDiagram,ActivityDiagram
public abstract class CucaDiagram extends UmlDiagram implements GroupHierarchy, PortionShower
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityFactoryentityFactory-
Fields inherited from class net.sourceforge.plantuml.UmlDiagram
FORCE_JDOT
-
-
Constructor Summary
Constructors Constructor Description CucaDiagram()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddLink(Link link)voidapplySingleStrategy()ILeafcreateLeaf(Code code, Display display, LeafType type, USymbol symbol)protected ILeafcreateLeafInternal(Code code, Display display, LeafType type, USymbol symbol)voidendGroup()protected ImageDataexportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption)java.util.Collection<IGroup>getChildrenGroups(IGroup parent)ColorMappergetColorMapper()IGroupgetCurrentGroup()protected abstract java.util.List<java.lang.String>getDotStrings()java.lang.String[]getDotStringSkek()EntityFactorygetEntityFactory()protected CodegetFullyQualifiedCode(Code code)IGroupgetGroup(Code code)java.util.Collection<IGroup>getGroups(boolean withRootGroup)java.util.Set<VisibilityModifier>getHides()intgetHorizontalPages()java.lang.StringgetLabelangle()java.lang.StringgetLabeldistance()ILeafgetLastEntity()LinkgetLastLink()ILeafgetLeafsget(Code code)intgetLeafssize()java.util.Collection<ILeaf>getLeafsvalues()java.util.List<Link>getLinks()java.lang.StringgetNamespaceSeparator()intgetNbImages()Number of images in this diagram (usually, 1)abstract IEntitygetOrCreateLeaf(Code code, LeafType type, USymbol symbol)protected ILeafgetOrCreateLeafDefault(Code code, LeafType type, USymbol symbol)IGroupgetRootGroup()intgetVerticalPages()java.lang.StringgetWarningOrError()voidgotoGroup2(Code code, Display display, GroupType type, IGroup parent, NamespaceStrategy strategy)protected voidgotoGroupInternal(Code code, Display display, Code namespace2, GroupType type, IGroup parent)voidgotoThisGroup(IGroup group)booleanhasUrl()Check if the Diagram have some links.voidhideOrShow(java.util.Set<VisibilityModifier> visibilities, boolean show)voidhideOrShow(EntityGender gender, java.util.Set<EntityPortion> portions, boolean show)voidhideOrShow2(java.lang.String what, boolean show)protected voidincRawLayout()booleanisAutarkic(IGroup g)booleanisEmpty(IGroup gToTest)booleanisGroup(Code code)booleanisHideEmptyDescriptionForState()booleanisStandalone(IEntity ent)booleanisVisibilityModifierPresent()booleanleafExist(Code code)protected voidremoveLink(Link link)voidremoveOrRestore(java.lang.String what, boolean show)voidresetPragmaLabel()voidsetHorizontalPages(int horizontalPages)voidsetNamespaceSeparator(java.lang.String namespaceSeparator)voidsetVerticalPages(int verticalPages)voidsetVisibilityModifierPresent(boolean visibilityModifierPresent)booleanshowPortion(EntityPortion portion, IEntity entity)-
Methods inherited from class net.sourceforge.plantuml.UmlDiagram
addSprite, exportCmap, exportDiagramError, exportDiagramNow, getAnimation, getCaption, getDpi, getDpiFactor, getFailureText2, getFlashData, getFooter, getFooterOrHeaderTeoz, getHeader, getLegend, getMainFrame, getMinwidth, getPragma, getSkinParam, getTitle, getUmlDiagramType, isHideUnlinkedData, isRotation, isUseJDot, loadSkin, setAnimation, setCaption, setHideUnlinkedData, setLegend, setMainFrame, setMinwidth, setParam, setRotation, setTitle, setUseJDot
-
Methods inherited from class net.sourceforge.plantuml.AbstractPSystem
checkFinalError, executeCommand, exportDiagram, getMetadata, getScale, getSource, isOk, makeDiagramReady, seed, setScale, 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
exportDiagram, getDescription, getMetadata, getSource
-
-
-
-
Field Detail
-
entityFactory
protected final EntityFactory entityFactory
-
-
Method Detail
-
setNamespaceSeparator
public final void setNamespaceSeparator(java.lang.String namespaceSeparator)
-
getNamespaceSeparator
public final java.lang.String getNamespaceSeparator()
-
hasUrl
public boolean hasUrl()
Description copied from interface:DiagramCheck if the Diagram have some links.- Specified by:
hasUrlin interfaceDiagram- Overrides:
hasUrlin classAbstractPSystem- Returns:
-
getOrCreateLeafDefault
protected final ILeaf getOrCreateLeafDefault(Code code, LeafType type, USymbol symbol)
-
createLeafInternal
protected final ILeaf createLeafInternal(Code code, Display display, LeafType type, USymbol symbol)
-
leafExist
public boolean leafExist(Code code)
-
getChildrenGroups
public final java.util.Collection<IGroup> getChildrenGroups(IGroup parent)
- Specified by:
getChildrenGroupsin interfaceGroupHierarchy
-
gotoGroup2
public final void gotoGroup2(Code code, Display display, GroupType type, IGroup parent, NamespaceStrategy strategy)
-
gotoGroupInternal
protected final void gotoGroupInternal(Code code, Display display, Code namespace2, GroupType type, IGroup parent)
-
gotoThisGroup
public final void gotoThisGroup(IGroup group)
-
getCurrentGroup
public final IGroup getCurrentGroup()
-
endGroup
public void endGroup()
-
isGroup
public final boolean isGroup(Code code)
-
getGroups
public final java.util.Collection<IGroup> getGroups(boolean withRootGroup)
-
getRootGroup
public IGroup getRootGroup()
-
getLeafsvalues
public java.util.Collection<ILeaf> getLeafsvalues()
-
getLeafssize
public final int getLeafssize()
-
addLink
public final void addLink(Link link)
-
removeLink
protected final void removeLink(Link link)
-
getLinks
public final java.util.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)
-
getNbImages
public int getNbImages()
Description copied from interface:DiagramNumber of images in this diagram (usually, 1)- Specified by:
getNbImagesin interfaceDiagram- Overrides:
getNbImagesin classAbstractPSystem- Returns:
- usually 1
-
getDotStrings
protected abstract java.util.List<java.lang.String> getDotStrings()
-
getDotStringSkek
public final java.lang.String[] getDotStringSkek()
-
exportDiagramInternal
protected ImageData exportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption) throws java.io.IOException
- Specified by:
exportDiagramInternalin classUmlDiagram- Throws:
java.io.IOException
-
getWarningOrError
public java.lang.String getWarningOrError()
- Specified by:
getWarningOrErrorin interfaceDiagram- Overrides:
getWarningOrErrorin classUmlDiagram
-
isAutarkic
public boolean isAutarkic(IGroup g)
-
resetPragmaLabel
public void resetPragmaLabel()
-
getLabeldistance
public java.lang.String getLabeldistance()
-
getLabelangle
public java.lang.String getLabelangle()
-
isEmpty
public final boolean isEmpty(IGroup gToTest)
- Specified by:
isEmptyin interfaceGroupHierarchy
-
isVisibilityModifierPresent
public final boolean isVisibilityModifierPresent()
-
setVisibilityModifierPresent
public final void setVisibilityModifierPresent(boolean visibilityModifierPresent)
-
showPortion
public final boolean showPortion(EntityPortion portion, IEntity entity)
- Specified by:
showPortionin interfacePortionShower
-
hideOrShow
public final void hideOrShow(EntityGender gender, java.util.Set<EntityPortion> portions, boolean show)
-
hideOrShow
public void hideOrShow(java.util.Set<VisibilityModifier> visibilities, boolean show)
-
hideOrShow2
public void hideOrShow2(java.lang.String what, boolean show)
-
removeOrRestore
public void removeOrRestore(java.lang.String what, boolean show)
-
getHides
public final java.util.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()
-
incRawLayout
protected void incRawLayout()
-
-