public class VisualStyleSet extends Object
Modifier | Constructor and Description |
---|---|
protected |
VisualStyleSet(String name,
String prefix,
GrouperConfig config,
VisualStyleSet parentStyleSet)
This constructs a new style set based on a previously loaded grouper.properties
config.
|
Modifier and Type | Method and Description |
---|---|
VisualStyle |
getDefaultStyle()
gets the default object type style
|
VisualStyle |
getStyle(String name)
retrieves a style based on its name
|
VisualStyle |
getStyle(StyleObjectType objectType)
retrieves a style based on its ObjectType enum
|
Set<String> |
getStyleNames()
retrieves the set of all style names
|
String |
getStyleProperty(String typeName,
String propertyName)
gets the value for a specific style and property
|
String |
getStyleProperty(String typeName,
String propertyName,
String defaultValue)
gets the value for a specific style and property, or a fallback default value
|
String |
getStyleProperty(StyleObjectType objectType,
String propertyName)
gets the value for a specific style and property
|
String |
getStyleProperty(StyleObjectType objectType,
String propertyName,
String defaultValue)
gets the value for a specific style and property, or a fallback default value
|
protected VisualStyleSet(String name, String prefix, GrouperConfig config, VisualStyleSet parentStyleSet)
StyleObjectType
enum. Styles not in the StyleObjectType
will be ignored.name
- the module nameprefix
- the config property prefix, for example
visualization.style.default or visualization.module.graphvizconfig
- an instantiated grouper config to read properties fromparentStyleSet
- an optional style set to inerit from, or null if not relevant or
is already the top level style setpublic VisualStyle getStyle(String name)
name
- lookup key for the stylepublic VisualStyle getStyle(StyleObjectType objectType)
objectType
- object type enumpublic String getStyleProperty(String typeName, String propertyName)
typeName
- lookup key for the stylepropertyName
- lookup key for the property within the stylepublic String getStyleProperty(String typeName, String propertyName, String defaultValue)
typeName
- lookup key for the stylepropertyName
- lookup key for the property within the stylepublic String getStyleProperty(StyleObjectType objectType, String propertyName)
objectType
- object type enum for the stylepropertyName
- lookup key for the property within the stylepublic String getStyleProperty(StyleObjectType objectType, String propertyName, String defaultValue)
objectType
- object type enum for the stylepropertyName
- lookup key for the property within the stylepublic VisualStyle getDefaultStyle()
Copyright © 2016 Internet2. All rights reserved.