net.sf.jaxodraw.gui.panel
Class JaxoLookAndFeelPanel

java.lang.Object
  extended by 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 Summary
JaxoLookAndFeelPanel()
          Constructor.
 
Method Summary
 JComponent getRoot()
          Root component (constant).
 String getUIManagerValue()
          Current LookAndFeel class name.
 String getValue()
          Chosen LookAndFeel class name.
 void setToUIManagerValue()
          Set chosen LookAndFeel to the current UIManager one.
 void setValue(String value)
          Set chosen LookAndFeel to the one with matching 'name'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxoLookAndFeelPanel

public JaxoLookAndFeelPanel()
Constructor.

Method Detail

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.



Copyright © 2003-2011 The JaxoDraw team. All Rights Reserved.