Class CompoundSkin

  • All Implemented Interfaces:
    Skin

    public final class CompoundSkin
    extends AbstractSkin
    Assembles two skins to create a new one.
    This can be used to combine features from two skins.
    Version:
    $Revision: 1.4 $, $Date: 2005/11/19 09:16:31 $
    Author:
    $Author: l2fprod $
    • Constructor Detail

      • CompoundSkin

        public CompoundSkin​(Skin a,
                            Skin b)
        Construct a new Skin by merging two skins.
        If a feature is missing in the first skin, the second skin is used.
        Parameters:
        a - Description of Parameter
        b - Description of Parameter
    • Method Detail

      • getColors

        public java.lang.String[] getColors()
        Gets the Colors attribute of the CompoundSkin object
        Specified by:
        getColors in interface Skin
        Overrides:
        getColors in class AbstractSkin
        Returns:
        The Colors value
      • getResource

        public java.lang.Object getResource​(java.lang.Object key)
        Gets the Resource attribute of the CompoundSkin object
        Specified by:
        getResource in interface Skin
        Overrides:
        getResource in class AbstractSkin
        Parameters:
        key - Description of Parameter
        Returns:
        The Resource value
      • addColors

        protected void addColors​(java.lang.String[] colors,
                                 java.util.Vector v)
        Adds a feature to the Colors attribute of the CompoundSkin object
        Parameters:
        colors - The feature to be added to the Colors attribute
        v - The feature to be added to the Colors attribute