Customizing a predefined chart symbol in the distribution to use in Dashboard Editor

Article ID: 2432
Last updated: 29 May, 2018
Article ID: 2432
Last updated: 29 May, 2018
Revision: 3
Views: 597
Posted: 02 Jul, 2012
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

How to customize a chart symbol provided in the palette of the distribution?

Answer

As stated in the JViews Diagrammer User's manual > Developing with design tools > Using the Dashboard Editor > Using the Dashboard Editor > Adding charts section, the chart palette is available only in Dashboard Editor. It is not supported in the Symbol Editor nor in the Designer.

As a result, it is not possible to edit the a chart symbol using the Symbol Editor

Nevertheless it is possible to manually customize the chart symbol by adding custom properties that could be used in the Dashboard Editor.

Below is the step by step instruction demonstrates how to add a parameter to change the grid color of the PolylineXY symbol.

  1. Open the Symbol Editor
     
  2. Open your jviews-palette-charts-X.Y.jar palette, available in libpalettes
     
  3. Open the 2D -> Line -> PolylineXY symbol and save it to a *new* palette : PolylineXY_grid_color in palette_grid_color.jar
     
  4. Using a tool of your choice (winrar, 7zip...) to extract your new palette and edit the ilogviewspalettespalette_gid_colorsymbolsPolylineXY_grid_color.css file
     
  5. Add your new CSS property to the PolylineXY_grid_color.css :
    Parameter#majorPaint {
    class : "java.awt.Color" ;
    default : "" ;
    }
    chartGrid {
    majorStroke : "@#majorStrokeForGrid" ;
    majorPaint : "@majorPaint" ;
    }

     
  6. In the ilogviewspalettespalette_gid_colorpalette.xml file, add your parameter with a default value if needed:
    <parameter id="majorPaint" type="java.awt.Color" value="red"/>
     
  7. In the ilogviewspalettespalette_gid_colorpalette.properties file, add name, short and long description for the new parameter:
    Symbols.PolylineXY.majorPaint.name=majorPaint
    Symbols.PolylineXY_grid_color.majorPaint.shortdescription=Grid color of the chart.
    Symbols.PolylineXY_grid_color.majorPaint.longdescription=Grid color of the chart.

     
  8. Repackage the files back to the palette_grid_color.jar.

You can find the modified symbol in the attached palette : palette_grid_color.jar

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2432
Last updated: 29 May, 2018
Revision: 3
Views: 597
Posted: 02 Jul, 2012 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Attached files

Also listed in


Others in this category