Package net.sf.jaxodraw.gui.panel
Class JaxoLookAndFeelPanel
java.lang.Object
net.sf.jaxodraw.gui.panel.JaxoLookAndFeelPanel
Wrapper for a panel that displays the currently installed LookAndFeels
and allows to choose supported ones.
- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal JComponent
getRoot()
Root component (constant).Current LookAndFeel class name.getValue()
Chosen LookAndFeel class name.void
Set chosen LookAndFeel to the current UIManager one.void
Set chosen LookAndFeel to the one with matching 'name'.
-
Constructor Details
-
JaxoLookAndFeelPanel
public JaxoLookAndFeelPanel()Constructor.
-
-
Method Details
-
getRoot
Root component (constant).- Returns:
- The root component.
-
getValue
Chosen LookAndFeel class name.- Returns:
- The chosen LAF as a string.
-
setValue
Set chosen LookAndFeel to the one with matching 'name'. If not found, reset to the current LookAndFeel.- Parameters:
value
- The LAF to set.
-
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.
-