Class JaxoLookAndFeelPanel

java.lang.Object
net.sf.jaxodraw.gui.panel.JaxoLookAndFeelPanel

public class JaxoLookAndFeelPanel extends Object
Wrapper for a panel that displays the currently installed LookAndFeels and allows to choose supported ones.
Since:
2.0
  • Constructor Details

    • JaxoLookAndFeelPanel

      public JaxoLookAndFeelPanel()
      Constructor.
  • Method Details

    • getRoot

      public final JComponent getRoot()
      Root component (constant).
      Returns:
      The root component.
    • getValue

      public String getValue()
      Chosen LookAndFeel class name.
      Returns:
      The chosen LAF as a string.
    • setValue

      public void setValue(String value)
      Set chosen LookAndFeel to the one with matching 'name'. If not found, reset to the current LookAndFeel.
      Parameters:
      value - The LAF to set.
    • getUIManagerValue

      public String getUIManagerValue()
      Current LookAndFeel class name. This is the LookAndFeel name that would be selected (possibly added to the list) if setToUIManagerValue() or setValue(.) with unknown argument were called.
      Returns:
      The current LAF class name.
    • setToUIManagerValue

      public void setToUIManagerValue()
      Set chosen LookAndFeel to the current UIManager one.