org.openbp.cockpit.modeler.skins
Class SkinMgr

java.lang.Object
  extended by org.openbp.cockpit.modeler.skins.SkinMgr

public final class SkinMgr
extends java.lang.Object

The skin manager keeps a list of skin definitions, which determine how the elements of the process model are being presented. This class is a singleton.

Author:
Heiko Erhardt

Method Summary
 void addSkin(Skin skin)
          Adds a skin descriptor.
 Skin getDefaultSkin()
          Gets the default skin.
static SkinMgr getInstance()
          Gets the singleton instance of this class.
 Skin getSkin(java.lang.String name)
          Gets a skin descriptor by its name.
 java.util.List getSkinList()
          Gets the list of skin descriptors.
 java.lang.String[] getSkinNames()
          Gets an array of all skin names.
 Skin[] getSkins()
          Gets an array of all skins.
 void load()
          Load all skin infos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SkinMgr getInstance()
Gets the singleton instance of this class.


load

public void load()
Load all skin infos.


getDefaultSkin

public Skin getDefaultSkin()
Gets the default skin.


getSkin

public Skin getSkin(java.lang.String name)
Gets a skin descriptor by its name.

Parameters:
name - Name of the skin
Returns:
The skin descriptor or null if no such skin descriptor exists

addSkin

public void addSkin(Skin skin)
Adds a skin descriptor.

Parameters:
skin - The skin descriptor to add

getSkinList

public java.util.List getSkinList()
Gets the list of skin descriptors.

Returns:
A list of Skin objects

getSkinNames

public java.lang.String[] getSkinNames()
Gets an array of all skin names.


getSkins

public Skin[] getSkins()
Gets an array of all skins.



Copyright © 2011. All Rights Reserved.