Package com.structurizr.view
Class Configuration
java.lang.Object
com.structurizr.view.Configuration
public final class Configuration
extends java.lang.Object
Configuration associated with how information in the workspace is rendered.
-
Constructor Summary
Constructors Constructor Description Configuration() -
Method Summary
Modifier and Type Method Description voidcopyConfigurationFrom(Configuration configuration)BrandinggetBranding()Gets the Branding object associated with this workspace.java.lang.StringgetDefaultView()Gets the key of the view that should be shown by default.MetadataSymbolsgetMetadataSymbols()Gets the type of symbols to use when rendering metadata.StylesgetStyles()Gets the styles associated with this set of views.TerminologygetTerminology()Gets the Terminology object associated with this workspace.java.lang.StringgetTheme()Deprecated.java.lang.String[]getThemes()Gets the URLs of the themes used to render views.ViewSortOrdergetViewSortOrder()Gets the sort order used when displaying the list of views.voidsetDefaultView(View view)Sets the view that should be shown by default.voidsetMetadataSymbols(MetadataSymbols metadataSymbols)Sets the type of symbols to use when rendering metadata.voidsetThemes(java.lang.String... themes)Sets the themes used to render views.voidsetViewSortOrder(ViewSortOrder viewSortOrder)Sets the sort order used when displaying the list of views.
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
getStyles
Gets the styles associated with this set of views.- Returns:
- a Styles object
-
getTheme
@Deprecated public java.lang.String getTheme()Deprecated. -
getThemes
public java.lang.String[] getThemes()Gets the URLs of the themes used to render views.- Returns:
- an array of URLs
-
setThemes
public void setThemes(java.lang.String... themes)Sets the themes used to render views.- Parameters:
themes- an array of URLs
-
getDefaultView
public java.lang.String getDefaultView()Gets the key of the view that should be shown by default.- Returns:
- the key, as a String (or null if not specified)
-
setDefaultView
Sets the view that should be shown by default.- Parameters:
view- a View object
-
copyConfigurationFrom
-
getBranding
Gets the Branding object associated with this workspace.- Returns:
- a Branding object
-
getTerminology
Gets the Terminology object associated with this workspace.- Returns:
- a Terminology object
-
getMetadataSymbols
Gets the type of symbols to use when rendering metadata.- Returns:
- a MetadataSymbols enum value
-
setMetadataSymbols
Sets the type of symbols to use when rendering metadata.- Parameters:
metadataSymbols- a MetadataSymbols enum value
-
getViewSortOrder
Gets the sort order used when displaying the list of views.- Returns:
- a ViewSortOrder enum
-
setViewSortOrder
Sets the sort order used when displaying the list of views.- Parameters:
viewSortOrder- a ViewSortOrder enum
-