Package net.sourceforge.plantuml.baraye
Class CucaDiagram
- java.lang.Object
-
- net.sourceforge.plantuml.AbstractPSystem
-
- net.sourceforge.plantuml.TitledDiagram
-
- net.sourceforge.plantuml.UmlDiagram
-
- net.sourceforge.plantuml.baraye.CucaDiagram
-
- All Implemented Interfaces:
Annotated
,Diagram
,GroupHierarchy
,ICucaDiagram
,PortionShower
,WithSprite
- Direct Known Subclasses:
AbstractEntityDiagram
,ActivityDiagram
public abstract class CucaDiagram extends UmlDiagram implements GroupHierarchy, PortionShower, ICucaDiagram
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityFactory
entityFactory
static boolean
QUARK
-
Fields inherited from class net.sourceforge.plantuml.TitledDiagram
FORCE_ELK, FORCE_SMETANA
-
-
Constructor Summary
Constructors Constructor Description CucaDiagram(UmlSource source, UmlDiagramType type, Map<String,String> orig)
-
Method Summary
-
Methods inherited from class net.sourceforge.plantuml.UmlDiagram
exportCmap, exportDiagramError, exportDiagramNow, getFailureText2, getFlashData, getFooterOrHeaderTeoz, getMinwidth, isRotation, setHideEmptyDescription, setMinwidth, setRotation
-
Methods inherited from class net.sourceforge.plantuml.TitledDiagram
addSprite, calculateBackColor, createImageBuilder, getAnimation, getCaption, getCurrentStyleBuilder, getFooter, getHeader, getLegend, getMainFrame, getPragma, getSkinParam, getTitle, getTitleDisplay, getUmlDiagramType, isUseElk, isUseSmetana, loadSkin, muteColorMapper, setAnimation, setCaption, setLegend, setMainFrame, setParam, setTitle, setUseElk, setUseSmetana
-
Methods inherited from class net.sourceforge.plantuml.AbstractPSystem
checkFinalError, executeCommand, exportDiagram, getMetadata, getNbImages, getScale, getSource, getSplitPagesHorizontal, getSplitPagesVertical, isOk, makeDiagramReady, seed, setScale, setSplitPagesHorizontal, setSplitPagesVertical
-
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.Annotated
getCaption, getFooter, getHeader, getLegend, getMainFrame, getTitle
-
Methods inherited from interface net.sourceforge.plantuml.core.Diagram
exportDiagram, getDescription, getMetadata, getNbImages, getSource, getSplitPagesHorizontal, getSplitPagesVertical, getTitleDisplay
-
Methods inherited from interface net.sourceforge.plantuml.cucadiagram.ICucaDiagram
createImageBuilder, getCurrentStyleBuilder, getFlashData, getMetadata, getPragma, getSkinParam, getSource, getUmlDiagramType, seed
-
Methods inherited from interface net.sourceforge.plantuml.WithSprite
addSprite
-
-
-
-
Field Detail
-
QUARK
public static final boolean QUARK
- See Also:
- Constant Field Values
-
entityFactory
protected final EntityFactory entityFactory
-
-
Constructor Detail
-
CucaDiagram
public CucaDiagram(UmlSource source, UmlDiagramType type, Map<String,String> orig)
-
-
Method Detail
-
currentQuark
public Quark currentQuark()
-
getPlasma
public Plasma getPlasma()
-
getOrCreateLeaf
public abstract IEntity getOrCreateLeaf(Ident ident, Code code, LeafType type, USymbol symbol)
-
setNamespaceSeparator
public final void setNamespaceSeparator(String namespaceSeparator)
-
getNamespaceSeparator
public final String getNamespaceSeparator()
- Specified by:
getNamespaceSeparator
in interfaceICucaDiagram
-
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
-
setLastEntity
public final void setLastEntity(ILeaf foo)
-
getOrCreateLeafDefault
protected final ILeaf getOrCreateLeafDefault(Ident idNewLong, Code code, LeafType type, USymbol symbol)
-
createLeaf
public ILeaf createLeaf(Ident idNewLong, Code code, Display display, LeafType type, USymbol symbol)
-
createLeafInternal
protected final ILeaf createLeafInternal(Ident newIdent, Code code, Display display, LeafType type, USymbol symbol)
-
leafExist
public boolean leafExist(Code code)
-
leafExistStrict
public boolean leafExistStrict(Ident ident)
-
getChildrenGroups
public final Collection<IGroup> getChildrenGroups(IGroup parent)
- Specified by:
getChildrenGroups
in interfaceGroupHierarchy
-
gotoTogether
public final CommandExecutionResult gotoTogether()
-
gotoGroup
public final CommandExecutionResult gotoGroup(Ident ident, Code code, Display display, GroupType type, IGroup parent, NamespaceStrategy strategy)
-
endGroup
public boolean endGroup()
-
gotoGroupExternal
protected final void gotoGroupExternal(Ident newIdLong, Code code, Display display, Code namespace, GroupType type, IGroup parent)
-
gotoThisGroup
public final void gotoThisGroup(IGroup group)
-
getCurrentGroup
public final IGroup getCurrentGroup()
-
isGroup
public final boolean isGroup(Code code)
-
isGroupStrict
public final boolean isGroupStrict(Ident ident)
-
isGroupVerySmart
public final boolean isGroupVerySmart(Ident ident)
-
getGroups
public final Collection<IGroup> getGroups(boolean withRootGroup)
- Specified by:
getGroups
in interfaceICucaDiagram
-
getRootGroup
public IGroup getRootGroup()
- Specified by:
getRootGroup
in interfaceGroupHierarchy
-
getLeafsvalues
public final Collection<ILeaf> getLeafsvalues()
- Specified by:
getLeafsvalues
in interfaceICucaDiagram
-
getLeafssize
public final int getLeafssize()
-
addLink
public final void addLink(Link link)
-
removeLink
protected final void removeLink(Link link)
-
getLinks
public final List<Link> getLinks()
- Specified by:
getLinks
in interfaceICucaDiagram
-
getDotStringSkek
public final String[] getDotStringSkek()
- Specified by:
getDotStringSkek
in interfaceICucaDiagram
-
exportDiagramInternal
protected ImageData exportDiagramInternal(OutputStream os, int index, FileFormatOption fileFormatOption) throws IOException
- Specified by:
exportDiagramInternal
in classUmlDiagram
- Throws:
IOException
-
getWarningOrError
public String getWarningOrError()
- Specified by:
getWarningOrError
in interfaceDiagram
- Overrides:
getWarningOrError
in classUmlDiagram
-
isAutarkic
public boolean isAutarkic(IGroup g)
- Specified by:
isAutarkic
in interfaceICucaDiagram
-
resetPragmaLabel
public void resetPragmaLabel()
-
getLabeldistance
public String getLabeldistance()
-
getLabelangle
public 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, EntityPortion portions, boolean show)
-
hideOrShow
public void hideOrShow(Set<VisibilityModifier> visibilities, boolean show)
-
hideOrShow2
public void hideOrShow2(String what, boolean show)
-
removeOrRestore
public void removeOrRestore(String what, boolean show)
-
getHides
public final Set<VisibilityModifier> getHides()
-
isStandalone
public final boolean isStandalone(IEntity ent)
-
isStandaloneForArgo
public final boolean isStandaloneForArgo(IEntity ent)
-
getLastLink
public final Link getLastLink()
-
getLastEntity
public final ILeaf getLastEntity()
-
getIEntityFactory
public final IEntityFactory getIEntityFactory()
-
getEntityFactory
public final EntityFactory getEntityFactory()
- Specified by:
getEntityFactory
in interfaceICucaDiagram
-
applySingleStrategy
public void applySingleStrategy()
-
isHideEmptyDescriptionForState
public boolean isHideEmptyDescriptionForState()
- Specified by:
isHideEmptyDescriptionForState
in interfaceICucaDiagram
-
incRawLayout
protected void incRawLayout()
-
constraintOnLinks
public CommandExecutionResult constraintOnLinks(Link link1, Link link2, Display display)
-
getDefaultMargins
public ClockwiseTopRightBottomLeft getDefaultMargins()
- Overrides:
getDefaultMargins
in classTitledDiagram
-
getUniqueSequence
public int getUniqueSequence()
- Specified by:
getUniqueSequence
in interfaceICucaDiagram
-
-