public class VisualStyle extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VisualStyle.Property |
Constructor and Description |
---|
VisualStyle(String prefix,
GrouperConfig config,
StyleObjectType objectType,
VisualStyleSet owningStyleSet,
VisualStyleSet defaultStyleSet)
constructs a style mapping between property names and values
|
Modifier and Type | Method and Description |
---|---|
String |
getProperty(String name)
This method pursues a few different lines to get at the property value.
|
String |
getProperty(String name,
String defaultValue)
retrieves the property, or the default value if null
|
String |
getPropertyDirect(String name)
retrieves the property directly or null, without looking through the inheritance hierarchy
|
void |
setProperty(String name,
String value) |
public VisualStyle(String prefix, GrouperConfig config, StyleObjectType objectType, VisualStyleSet owningStyleSet, VisualStyleSet defaultStyleSet)
prefix
- config property prefix, for example visualization.style.stem
or visualization.module.graphviz.stemconfig
- previously instantiated GrouperConfigobjectType
- the style object typeowningStyleSet
- the current style set module this style resides in, or the default moduledefaultStyleSet
- the default style set, or null if this is the defaultpublic String getProperty(String name, String defaultValue)
name
- property namedefaultValue
- fallback value when property is nullpublic String getProperty(String name)
name
- property namepublic String getPropertyDirect(String name)
name
- Copyright © 2016 Internet2. All rights reserved.