| | | | Browse by category |
Article ID: 2387
Last updated: 29 May, 2018
Question
How to set position of a symbol in the dashboard editor?
Answer
It is possible to define the position in the property sheet of the dashboard editor for each symbol:
- Open each of your symbols in the Symbol Editor.
- Define two new parameters (you can call them for example currentX and currentY) of type
float
with a default value of 0.0. - Save your palette.
- Define the
IlvDashboardPropertyPanel
as a static variable:static IlvDashboardPropertyPanel ppanel;
- Add a listener to the model so that the
IlvDashboardPropertyPanel
is updated properly when the property is changing:editor.getCurrentDashboardDiagram().getEngine().getModel() .addSDMPropertyChangeListener(new SDMPropertyChangeListener () { public void propertyChanged(SDMPropertyChangeEvent arg0) { ppanel.inspectSelection(); } } );
- Launch the Dashboard Editor.
- Open your
idbd
file. - Define the mapping for currentX and currentY to '
x
' and 'y
'.
currentX and currentY now reflect the values of the x
and y
properties. If you change their values in the property sheet editor, the symbol will be updated properly and saved in the idbd
file as well.
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 2387
Last updated: 29 May, 2018
Revision: 3
Views: 1033
Posted: 10 Jun, 2011 by
Dean J.
Updated: 29 May, 2018 by
Gargani A.
Also listed in
Others in this category
Powered by KBPublisher (Knowledge base software)