The constructor of the MultiLevelBar can be used to set text, image-path, image-insets, initial value and enable/disabled dropShadow for text painting.

Use #addBar() to add an additional barlevel to the bar. The name/ID of the added bar can be used to change the value. Use #setValue(String ID, int value) to change a level value be it's name/ID.

All relevant lines are highlighted. Press the "Run..." button to start the example.