Package org.apache.maven.doxia.site
Class MermaidConfiguration
java.lang.Object
org.apache.maven.doxia.site.MermaidConfiguration
- All Implemented Interfaces:
Serializable,Cloneable
The configuration used for rendering Mermaid diagrams
(https://mermaid.ai/open-source/) on client-side.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Method clone.booleanMethod equals.Get the Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.Get the URL from which to request the javascript used for rendering the diagrams.inthashCode()Method hashCode.booleanGet if Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used.voidSet the Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.voidsetExternalJs(ExternalJs externalJs) Set the URL from which to request the javascript used for rendering the diagrams.voidsetUseTiny(boolean useTiny) Set if Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used.toString()Method toString.
-
Constructor Details
-
MermaidConfiguration
public MermaidConfiguration()
-
-
Method Details
-
clone
Method clone. -
equals
Method equals. -
getConfig
Get the Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.- Returns:
- String
-
getExternalJs
Get the URL from which to request the javascript used for rendering the diagrams. If not set an embedded version of Mermaid is used (which is automatically deployed to the site).- Returns:
- ExternalJs
-
hashCode
public int hashCode()Method hashCode. -
isUseTiny
public boolean isUseTiny()Get if Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used. Only considered if "externalJsUrl" is not set.- Returns:
- boolean
-
setConfig
Set the Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.- Parameters:
config- a config object.
-
setExternalJs
Set the URL from which to request the javascript used for rendering the diagrams. If not set an embedded version of Mermaid is used (which is automatically deployed to the site).- Parameters:
externalJs- a externalJs object.
-
setUseTiny
public void setUseTiny(boolean useTiny) Set if Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used. Only considered if "externalJsUrl" is not set.- Parameters:
useTiny- a useTiny object.
-
toString
Method toString.
-