Theme

open class Theme

Represents a set of Style objects for different diagram item types.

  • Undocumented

    Declaration

    Swift

    public init()
  • Loads this theme from the specified XML context and element.

    Declaration

    Swift

    open func loadFromXml(_ themeElement: XmlElement?, context: XmlContext)

    Parameters

    element

    The XmlElement, which contains this theme.

    context

    The XmlContext, which contains this theme.

  • Gets the default theme.

    Declaration

    Swift

    open class func defaultTheme() -> Theme

    Return Value

    The default theme.

  • Gets the styles associated with this theme by using the colon mark.

    Declaration

    Swift

    open var styles: [String : Style?]

    Return Value

    A collection of string-s that identify the Style-s.