| | | | Browse by category |
Article ID: 2404
Last updated: 29 May, 2018
Question
How to extend the Symbol Editor with custom CSS functions?
Answer
Three steps to successfully register your own predefined CSS function in the Symbol Editor:
- Develop and compile your custom CSS function. The custom function must implement
ilog.views.sdm.rendere.IlvSDMCSSFunction
. Refer to JViews Diagrammer > Programmer's documentation > Developing with the JViews Diagrammer SDK > Using CSS syntax in the style sheet > Applying CSS to Java Objects > Expressions > Custom Functions section for more detail information. - Modify the
ilog/views/util/css/cssfunctions.properties
file to register your CSS function. This file locates in thejviews-framework.jar
andjviews-framework-all.jar
. Detail instructions are available in the file itself. - Add the new CSS function and the modified
cssfunctions.properties
to the CLASSPATH. You can either add your CSS function class and the modifiedcssfunctions.properties
file directly into thejviews-framework.jar
andjviews-framework-all.jar
, or you can pack then in a separate jar and add this jar in front of the CLASSPATH.
To use this new function in Symbol Editor, Symbol Compiler, or Designer, simple editing the run.sh or run.bat of the appropriate application to include your jar file in front of the classpath.
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 2404
Last updated: 29 May, 2018
Revision: 3
Views: 614
Posted: 14 Mar, 2012 by
Dean J.
Updated: 29 May, 2018 by
Gargani A.
Also listed in
Others in this category
Powered by KBPublisher (Knowledge base software)