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 EntityFactory
entityFactory
-
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 void
addLink(Link link)
void
applySingleStrategy()
ILeaf
createLeaf(Code code, Display display, LeafType type, USymbol symbol)
protected ILeaf
createLeafInternal(Code code, Display display, LeafType type, USymbol symbol)
void
endGroup()
protected ImageData
exportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption)
java.util.Collection<IGroup>
getChildrenGroups(IGroup parent)
ColorMapper
getColorMapper()
IGroup
getCurrentGroup()
protected abstract java.util.List<java.lang.String>
getDotStrings()
java.lang.String[]
getDotStringSkek()
EntityFactory
getEntityFactory()
protected Code
getFullyQualifiedCode(Code code)
IGroup
getGroup(Code code)
java.util.Collection<IGroup>
getGroups(boolean withRootGroup)
java.util.Set<VisibilityModifier>
getHides()
int
getHorizontalPages()
java.lang.String
getLabelangle()
java.lang.String
getLabeldistance()
ILeaf
getLastEntity()
Link
getLastLink()
ILeaf
getLeafsget(Code code)
int
getLeafssize()
java.util.Collection<ILeaf>
getLeafsvalues()
java.util.List<Link>
getLinks()
java.lang.String
getNamespaceSeparator()
int
getNbImages()
Number of images in this diagram (usually, 1)abstract IEntity
getOrCreateLeaf(Code code, LeafType type, USymbol symbol)
protected ILeaf
getOrCreateLeafDefault(Code code, LeafType type, USymbol symbol)
IGroup
getRootGroup()
int
getVerticalPages()
java.lang.String
getWarningOrError()
void
gotoGroup2(Code code, Display display, GroupType type, IGroup parent, NamespaceStrategy strategy)
protected void
gotoGroupInternal(Code code, Display display, Code namespace2, GroupType type, IGroup parent)
void
gotoThisGroup(IGroup group)
boolean
hasUrl()
Check if the Diagram have some links.void
hideOrShow(java.util.Set<VisibilityModifier> visibilities, boolean show)
void
hideOrShow(EntityGender gender, java.util.Set<EntityPortion> portions, boolean show)
void
hideOrShow2(java.lang.String what, boolean show)
protected void
incRawLayout()
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
removeOrRestore(java.lang.String what, boolean show)
void
resetPragmaLabel()
void
setHorizontalPages(int horizontalPages)
void
setNamespaceSeparator(java.lang.String namespaceSeparator)
void
setVerticalPages(int verticalPages)
void
setVisibilityModifierPresent(boolean visibilityModifierPresent)
boolean
showPortion(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:Diagram
Check if the Diagram have some links.- Specified by:
hasUrl
in interfaceDiagram
- Overrides:
hasUrl
in 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:
getChildrenGroups
in 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:Diagram
Number of images in this diagram (usually, 1)- Specified by:
getNbImages
in interfaceDiagram
- Overrides:
getNbImages
in 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:
exportDiagramInternal
in classUmlDiagram
- Throws:
java.io.IOException
-
getWarningOrError
public java.lang.String getWarningOrError()
- Specified by:
getWarningOrError
in interfaceDiagram
- Overrides:
getWarningOrError
in 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:
isEmpty
in interfaceGroupHierarchy
-
isVisibilityModifierPresent
public final boolean isVisibilityModifierPresent()
-
setVisibilityModifierPresent
public final void setVisibilityModifierPresent(boolean visibilityModifierPresent)
-
showPortion
public final boolean showPortion(EntityPortion portion, IEntity entity)
- Specified by:
showPortion
in 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()
-
-