Setting position of a symbol in the dashboard editor

Article ID: 2387
Last updated: 29 May, 2018
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.

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:

  1. Open each of your symbols in the Symbol Editor.
  2. Define two new parameters (you can call them for example currentX and currentY) of type float with a default value of 0.0.
  3. Save your palette.
  4. Define the IlvDashboardPropertyPanel as a static variable:
    static IlvDashboardPropertyPanel ppanel;
  5. 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();
            }
          }
        );
  6. Launch the Dashboard Editor.
  7. Open your idbd file.
  8. 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