Class StyleBase<T>
An abstract base class for style objects throughout sciChart.
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public abstract class StyleBase<T> implements renderableSeries.IStyle
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
StyleBase(Class<T> styleableObjectType)
Creates a new instance of StyleBase class.
Declaration
protected StyleBase(Class<T> styleableObjectType)
Parameters
| Type | Name | Description |
|---|---|---|
| Class<T> | styleableObjectType | The type of the target styleable object. |
Fields
ERROR_MESSAGE
Declaration
public static final String ERROR_MESSAGE
Field Value
| Type | Description |
|---|---|
| String |
Methods
<TProperty>getPropertyValue(T objectToStyle, String propertyName, Class<TProperty> propertyType)
Reads the specified property from internal property storage.
Declaration
protected final TProperty <TProperty>getPropertyValue(T objectToStyle, String propertyName, Class<TProperty> propertyType)
Parameters
| Type | Name | Description |
|---|---|---|
| T | objectToStyle | The target styleable object. |
| String | propertyName | The property name to save. |
| Class<TProperty> | propertyType | The type of value. |
Returns
| Type | Description |
|---|---|
| TProperty | The specified property. |
<TProperty>putPropertyValue(T objectToStyle, String propertyName, TProperty propertyValue)
Saves the specified property into internal property storage.
Declaration
protected final void <TProperty>putPropertyValue(T objectToStyle, String propertyName, TProperty propertyValue)
Parameters
| Type | Name | Description |
|---|---|---|
| T | objectToStyle | The target styleable object. |
| String | propertyName | The property name to save. |
| TProperty | propertyValue | The property value to save. |
applyStyleInternal(T styleableObject)
Applies this style to specified styleable object.
Declaration
protected abstract void applyStyleInternal(T styleableObject)
Parameters
| Type | Name | Description |
|---|---|---|
| T | styleableObject | The styleable object instance. |
discardStyleInternal(T objectToStyle)
Discards this style on specified styleable object.
Declaration
protected abstract void discardStyleInternal(T objectToStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| T | objectToStyle | The styleable object instance. |
getStyleableObjectType()
Gets the target styleable object type.
Declaration
public final Class<? extends T> getStyleableObjectType()
Returns
| Type | Description |
|---|---|
| Class<? extends T> |
tryApplyStyle(Object styleableObject)
Applies this style to specified styleable object.
Declaration
public final void tryApplyStyle(Object styleableObject)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | styleableObject |
tryDiscardStyle(Object styleableObject)
Discards this style on specified styleable object.
Declaration
public final void tryDiscardStyle(Object styleableObject)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | styleableObject |