Look and feel (extension point)
From BioUML platform
- Identifier
- ru.biosoft.workbench.lookAndFeel
- Plugin
- ru.biosoft.workbench
- Since
- 0.7.6
- Applicable for
- BioUML workbench
Description
Using this extension point plug-in can contribute new look and feel.
This look and feel will be loaded both into UIManager and LookAndFeelRegistry.
Configuration Markup
<!ELEMENT lookAndFeel (theme)*> <!ATTLIST lookAndFeel name CDATA #REQUIRED class CDATA #REQUIRED defaultTheme CDATA #IMPLIED >
- name
- name of look and feel.
- class
- the fully-qualified name of javax.swing.LookAndFeel subclass.
- defaultTheme
- name of default theme.
<!ELEMENT theme> <!ATTLIST theme name CDATA #REQUIRED class CDATA #REQUIRED >
Examples
This is an example from plaf.metal plugin:
<extension id="plaf.metal.themes" point="ru.biosoft.workbench.lookAndFeel"> <lookAndFeel name="Metal" defaultTheme="Steel"> <theme name="Steel" class="javax.swing.plaf.metal.DefaultMetalTheme"/> <theme name="Aqua" class="AquaTheme"/> <theme name="Charcoal" class="CharcoalTheme"/> <theme name="High contrast" class="ContrastTheme"/> <theme name="Emerald" class="EmeraldTheme"/> <theme name="Ruby" class="RubyTheme"/> <script name="getTheme"> lookAndFeel.getCurrentTheme(); </script> <script name="setTheme"> lookAndFeel.setCurrentTheme(theme); </script> </lookAndFeel> </extension>