public static class IlvSDMCSSFunction.Test extends IlvSDMCSSFunction
This function is not registered by default. To register it in the designer, use the
edit/Function dialog and enter the qualified name:
ilog.views.sdm.renderer.IlvSDMCSSFunction$Test
IlvSDMCSSFunction.Feedback, IlvSDMCSSFunction.NumericSymbolInteractor, IlvSDMCSSFunction.StateSymbolInteractor, IlvSDMCSSFunction.SymbolInteractor, IlvSDMCSSFunction.Test
ANY, ANY_PROPERTIES, ANY_PSEUDOCLASSES
Constructor and Description |
---|
Test()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
call(Object[] args,
Class<?> type,
IlvSDMEngine engine,
Object node,
Object target)
Calls the function.
|
String |
getName()
Returns the name of the function that will be known in the
style sheet.
|
String |
getShortDescription()
Returns a short description of the function.
|
IlvSDMCSSFunction.Feedback[] |
invert(Object[] args,
Object value,
IlvSDMEngine engine,
Object node)
This method is called from the style sheet renderer to
update a model object property.
|
call, getDelimiters, getDependencies, returnDelimitersAsToken
getImportance
public String getName()
getName
in class IlvSDMCSSFunction
public String getShortDescription()
IlvLocaleUtil.getCurrentLocale()
.getShortDescription
in class IlvCSSFunction
public Object call(Object[] args, Class<?> type, IlvSDMEngine engine, Object node, Object target)
call
in class IlvSDMCSSFunction
args
- The parameters of the function.type
- The expected return type, which may be null
. It
is wise to return an object compatible with the expected type, or a
String.engine
- The current engine. It may be null
if the
IlvStyleSheetRenderer
is disconnected from an engine.node
- The current node. This is the current model object
being called on. Inside a @# construct, node represents the
parent of the fake node indeed used to process the @#
construct, i.e. the real node of interest.target
- The current rendered object being called on. Note that the
model object can easily be found if args
contains the
parameter id.public IlvSDMCSSFunction.Feedback[] invert(Object[] args, Object value, IlvSDMEngine engine, Object node)
IlvSDMCSSFunction
NOTE: inverting a function is not always possible. This method can return null to indicate the inversion fails.
invert
in class IlvSDMCSSFunction
args
- The parameters of the functions, as they come from
the style sheet.value
- The value coming from the graphic objects.engine
- The current engine.node
- The model object.IllegalArgumentException
if the
function is not able to compute back the result, or null
if
"don't care." The default implementation returns null
.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.