Class BasicOffice2003Theme

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,​java.lang.Object>

    public class BasicOffice2003Theme
    extends Office2003Theme
    BasicOffice2003Theme is a special Office2003 theme that uses a base color to calculate all other colors used by JIDE components. This is done regardless what current XP theme you are using.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.UIDefaults

        javax.swing.UIDefaults.ActiveValue, javax.swing.UIDefaults.LazyInputMap, javax.swing.UIDefaults.LazyValue, javax.swing.UIDefaults.ProxyLazyValue
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicOffice2003Theme​(java.lang.String themeName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Color getBaseColor()
      Gets the base color for this theme.
      void setBaseColor​(java.awt.Color color, boolean derivedSelectionColor, java.lang.String prefix)
      Sets the base color.
      • Methods inherited from class javax.swing.UIDefaults

        addPropertyChangeListener, addResourceBundle, firePropertyChange, get, get, getBoolean, getBoolean, getBorder, getBorder, getColor, getColor, getDefaultLocale, getDimension, getDimension, getFont, getFont, getIcon, getIcon, getInsets, getInsets, getInt, getInt, getPropertyChangeListeners, getString, getString, getUI, getUIClass, getUIClass, getUIError, put, putDefaults, removePropertyChangeListener, removeResourceBundle, setDefaultLocale
      • Methods inherited from class java.util.Hashtable

        clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keys, keySet, merge, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BasicOffice2003Theme

        public BasicOffice2003Theme​(java.lang.String themeName)
    • Method Detail

      • setBaseColor

        public void setBaseColor​(java.awt.Color color,
                                 boolean derivedSelectionColor,
                                 java.lang.String prefix)
        Sets the base color. The Office2003 theme will use this color as base color and calculate all other colors that will be used by JIDE components.
        Parameters:
        color - the base color.
        derivedSelectionColor - if deriving selection colors from the base color. Selection color is used in places like JideButton's background and DockableFrame's title pane background.
        prefix - the prefix is for the expand/collapse icon on collapsible pane. Available prefixes are "default", "blue", "homestead", "metallic", and "gray". You can decide which one to use depending on what base color is. In most cases, "default" works just fine. But if your base color has more blue, using "blue" will produce a better result. If green, you can use "homestead".