| java.lang.Object com.sun.rave.designtime.ext.componentgroup.util.ComponentGroupHelper
ComponentGroupHelper | public class ComponentGroupHelper (Code) | | Helper class to paint Component Group colors, etc.
author: mbohm |
Method Summary | |
public static String | getComponentGroupColorKey(String holderName, String groupName) | public static ComponentGroupHolder[] | getComponentGroupHolders(DesignContext dcontext) | public static Color | getMappedColor(String key, Map colorMap) | public static void | populateColorGroupArray(DesignContext dcontext, ComponentGroupHolder[] holders, ComponentGroup[][] groupArr) | public static void | populateColorMap(DesignContext dcontext, ComponentGroupHolder[] holders, Map<String, Color> colorMap) | public static void | populateColorModels(DesignContext dcontext, ComponentGroupHolder[] holders, ComponentGroup[][] groupArr, Map<String, Color> colorMap) |
DEFAULT_COLOR_SET | public static Color[] DEFAULT_COLOR_SET(Code) | | The colors which can be assigned to a Component Group.
|
getComponentGroupColorKey | public static String getComponentGroupColorKey(String holderName, String groupName)(Code) | | Get a design context data key to store a component group color.
|
getComponentGroupHolders | public static ComponentGroupHolder[] getComponentGroupHolders(DesignContext dcontext)(Code) | | Get all the ComponentGroupHolder instances associated
with the supplied DesignContext .
Parameters: dcontext - The design context. |
getMappedColor | public static Color getMappedColor(String key, Map colorMap)(Code) | | Get the appropriate Color in the supplied
Map , assigning one if necessary.
|
populateColorGroupArray | public static void populateColorGroupArray(DesignContext dcontext, ComponentGroupHolder[] holders, ComponentGroup[][] groupArr)(Code) | | Populate a two-dimensional array of ComponentGroup based on the supplied
holders , adding color information if necessary.
Parameters: dcontext - The design context. Parameters: holders - The array of existing holders. Parameters: groupArr - The two-dimensional array of ComponentGroup to populate based on holders . |
populateColorMap | public static void populateColorMap(DesignContext dcontext, ComponentGroupHolder[] holders, Map<String, Color> colorMap)(Code) | | Populate a Map<String,Color> based on the supplied
holders , adding color information if necessary.
Parameters: dcontext - The design context. Parameters: holders - The array of existing holders. Parameters: groupArr - The Map<String,Color> to populate based on holders . |
populateColorModels | public static void populateColorModels(DesignContext dcontext, ComponentGroupHolder[] holders, ComponentGroup[][] groupArr, Map<String, Color> colorMap)(Code) | | Populate a two-dimensional array of ComponentGroup and
a Map<String,Color> based on the supplied
holders , adding color information to both if necessary.
Parameters: dcontext - The design context. Parameters: holders - The array of existing holders. Parameters: groupArr - The two-dimensional array of ComponentGroup to populate based on holders . Parameters: groupArr - The Map<String,Color> to populate based on holders . |
|
|