Package com.structurizr.view
Class ImageView
java.lang.Object
com.structurizr.view.View
com.structurizr.view.ImageView
- All Implemented Interfaces:
PropertyHolder
A view that has been rendered elsewhere (e.g. PlantUML, Mermaid, Kroki, etc) as a image (e.g. PNG).
-
Method Summary
Modifier and TypeMethodDescriptionGets the content of this view (a URL or a data URI).Gets the the content type of this view (e.g.Gets the ID of the element associated with this view.getName()
Gets the (computed) name of this view.void
setContent
(String content) Sets the content of this image view, which needs to be a URL or a data URI.void
setContentType
(String contentType) Sets the content type of this view (e.g.Methods inherited from class com.structurizr.view.View
addProperty, getDescription, getKey, getOrder, getProperties, getTitle, getViewSet, setDescription, setTitle
-
Method Details
-
getElementId
Gets the ID of the element associated with this view.- Returns:
- the ID, as a String, or null if not set
-
getElement
-
getContent
Gets the content of this view (a URL or a data URI).- Returns:
- the content, as a String
-
setContent
Sets the content of this image view, which needs to be a URL or a data URI.- Parameters:
content
- the content of this view
-
getContentType
Gets the the content type of this view (e.g. "image/png").- Returns:
- the content type, as a String
-
setContentType
Sets the content type of this view (e.g. "image/png").- Parameters:
contentType
- the content type, as a String
-
getName
Description copied from class:View
Gets the (computed) name of this view.
-