Package net.sf.jaxodraw.gui.panel
Class JaxoLookAndFeelPanel
- java.lang.Object
-
- net.sf.jaxodraw.gui.panel.JaxoLookAndFeelPanel
-
public class JaxoLookAndFeelPanel extends java.lang.Object
Wrapper for a panel that displays the currently installed LookAndFeels and allows to choose supported ones.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description JaxoLookAndFeelPanel()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponent
getRoot()
Root component (constant).java.lang.String
getUIManagerValue()
Current LookAndFeel class name.java.lang.String
getValue()
Chosen LookAndFeel class name.void
setToUIManagerValue()
Set chosen LookAndFeel to the current UIManager one.void
setValue(java.lang.String value)
Set chosen LookAndFeel to the one with matching 'name'.
-
-
-
Method Detail
-
getRoot
public final javax.swing.JComponent getRoot()
Root component (constant).- Returns:
- The root component.
-
getValue
public java.lang.String getValue()
Chosen LookAndFeel class name.- Returns:
- The chosen LAF as a string.
-
setValue
public void setValue(java.lang.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 java.lang.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.
-
-