Using API to access graphic properties specified in a CSS

Article ID: 2324
Last updated: 29 May, 2018
Article ID: 2324
Last updated: 29 May, 2018
Revision: 3
Views: 516
Posted: 17 Mar, 2011
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

How to use the API to access graphic properties specified in a CSS?

Answer

Properties specified in the CSS are understood by various renderers. To get the value of a rendered property for a model object, you have a whole family of static methods in:

ilog.views.sdm.renderer.IlvRendererUtil.getGraphicProperty*()

Example:

IlvDiagrammer diag = ...

IlvSDMEngine engine = diag.getEngine();

Object dataObj = engine.getObject(...);

This object is a model object. You can ask the renderer for the rendered property information:

Color value =

IlvRendererUtil.getGraphicPropertyAsColor(engine,
dataObj,"foreground", pseudoClasses, Color.black);

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2324
Last updated: 29 May, 2018
Revision: 3
Views: 516
Posted: 17 Mar, 2011 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Also listed in


Others in this category