public abstract class IlvComponentCSSAdapter extends Object
ilog.views.chart.IlvChart
to a customizer that customizes the CSS of the component.
You typically use a subclass of this class, for instance
the class ilog.views.chart.customizer.IlvChartCSSAdapter
:
IlvChart chart = ... IlvChartCSSAdapter adapter = new IlvChartCSSAdapter(chart); IlvCSSRule[] rules = adapter.getRules(false);
Modifier | Constructor and Description |
---|---|
protected |
IlvComponentCSSAdapter(Object internal)
Constructs a new component CSS adapter.
|
Modifier and Type | Method and Description |
---|---|
Object |
getInternal()
Returns the internal implementation object.
|
IlvCSSRule |
getRule(String selector,
boolean create)
Returns the rule that matches the input selector.
|
IlvRuleCustomizerLogic |
getRuleCustomizerLogic(IlvCSSRule rule)
Return the rule customizer logic that matches the input rule.
|
IlvRuleCustomizerLogic |
getRuleCustomizerLogic(String selector)
Returns the rule customizer logic that matches the input rule.
|
IlvRuleCustomizerLogic[] |
getRuleCustomizerLogics()
Returns all rule customizer logics of this component CSS adapter.
|
IlvCSSRule[] |
getRules(boolean includeDisabledRules)
Returns the CSS rules of the component.
|
void |
removeRule(String selector)
Remove the rule that matches the input selector from the rule set of
this object.
|
protected IlvComponentCSSAdapter(Object internal)
public IlvCSSRule[] getRules(boolean includeDisabledRules)
includeDisabledRules
- true
means to return disabled rules as well.public IlvCSSRule getRule(String selector, boolean create) throws IlvStylingException
"node:selected"
or "#node127"
.
If the parameter create
is true
,
a new rule is created and added to the rule set if no matching rule
exists yet.selector
- The selector string in CSS syntax.create
- true
means a new rule is returned if no matching
rule exists yet.IlvStylingException
public void removeRule(String selector) throws IlvStylingException
"node:selected"
or "#node127"
.selector
- The selector string in CSS syntax.IlvStylingException
public IlvRuleCustomizerLogic[] getRuleCustomizerLogics()
IlvDiagrammer
is different than the mechanism
to change rules of graphic objects.
To know which rule customizer logic can customize a rule, use the
IlvRuleCustomizerLogic.match(ilog.views.util.styling.IlvCSSRule)
method.
public IlvRuleCustomizerLogic getRuleCustomizerLogic(IlvCSSRule rule)
IlvDiagrammer
is different than the mechanism
to change rules of graphic objects.
The returned rule customizer logic is not yet initialized with the input
rule.
In order to initialize the rule customizer logic, call
IlvRuleCustomizerLogic.setMainRule(ilog.views.util.styling.IlvCSSRule)
.
rule
- The CSS rule to be customized.null
if no customizer
exists that matches the rule.IlvRuleCustomizerLogic.match(ilog.views.util.styling.IlvCSSRule)
public IlvRuleCustomizerLogic getRuleCustomizerLogic(String selector) throws IlvStylingException
IlvDiagrammer
is different than the mechanism
to change rules of graphic objects.
The input selector is a string in CSS syntax, e.g.
"node:selected"
or "#node127"
.
If no rule exists with the input selector, a corresponding rule is
created.selector
- The selector string in CSS syntax.IlvStylingException
IlvRuleCustomizerLogic.setMainRule(ilog.views.util.styling.IlvCSSRule)
public Object getInternal()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.