1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
|
package com.explodingpixels.macwidgets;
import java.awt.Color;
import java.awt.Component;
import javax.swing.Icon;
import com.explodingpixels.macwidgets.SourceList;
import com.explodingpixels.painter.MacWidgetsPainter;
/**
* Built from MacWidgets SourceListColorScheme
*
* An interface to provide a set of {@link com.explodingpixels.painter.MacWidgetsPainter}s and colors to use when painting a widget.
*/
public interface WidgetColorScheme {
/**
* The {@link Painter} to use for drawing the widget selection when the
* widget is in the active window and has focus.
*
* @return the {@code Painter} to use for painting the selection in an active window where the
* widget has focus.
*/
MacWidgetsPainter<Component> getActiveFocusedSelectedItemPainter();
/**
* The {@link Painter} to use for drawing the widget selection when the
* widget is in the active window and does not have focus.
*
* @return the {@code Painter} to use for painting the selection in an active window where the
* widget does not have focus.
*/
MacWidgetsPainter<Component> getActiveUnfocusedSelectedItemPainter();
/**
* The {@link Painter} to use for drawing the {@link SourceList} selection when the
* widget is in an inactive window.
*
* @return the {@code Painter} to use for painting the selection in an inactive window.
*/
MacWidgetsPainter<Component> getInactiveSelectedItemPainter();
Color getActiveFocusedSelectedItemBackgroundColor();
Color getActiveUnfocusedSelectedItemBackgroundColor();
Color getInactiveSelectedItemBackgroundColor();
/**
* The color to draw a widget category with.
*
* @return the color to draw a widget category text with.
*/
Color getCategoryTextColor();
/**
* The color to draw a widget category's shadow with.
*
* @return the color to draw a widget category text's shadow with.
*/
Color getCategoryTextShadowColor();
/**
* The color to draw an unselected widget item with.
*
* @return the color to draw an unselected widget item with.
*/
Color getUnselectedItemTextColor();
/**
* The color to draw a selected widget item with.
*
* @return the color to draw a selected widget item with.
*/
Color getSelectedItemTextColor();
/**
* The color to draw a selected widget item's shadow with.
*
* @return the color to draw a selected widget item's shadow with.
*/
Color getSelectedItemFontShadowColor();
/**
* The background color of the widget when it is in an active window.
*
* @return the background color of the widget when it is in an active window.
*/
Color getActiveBackgroundColor();
/**
* The background color of the widget when it is in an inactive window.
*
* @return the background color of the widget when it is in an inactive window.
*/
Color getInactiveBackgroundColor();
/**
* The icon to use when a widget node is collapsed and unselected.
*
* @return the icon to use when a widget node is collapsed and unselected.
*/
Icon getUnselectedCollapsedIcon();
/**
* The icon to use when a widget node is expanded and unselected.
*
* @return the icon to use when a widget node is expanded and unselected.
*/
Icon getUnselectedExpandedIcon();
/**
* The icon to use when a widget node is collapsed and selected.
*
* @return the icon to use when a widget node is collapsed and selected.
*/
Icon getSelectedCollapsedIcon();
/**
* The icon to use when a widget node is expanded and selected.
*
* @return the icon to use when a widget node is expanded and selected.
*/
Icon getSelectedExpandedIcon();
/**
* The color to draw a badge's text with.
*
* @return the color to draw a badge's text with.
*/
Color getBadgeTextColor();
/**
* The color to draw a badge's background with when it's corresponding widget item
* is selected. This color is used regardless of the whether the parent window is active or
* inactive.
*
* @return the color to draw a badge's background with when it's corresponding
* widget item is selected
*/
Color getSelectedBadgeColor();
/**
* The color to draw a badge's background with when it's corresponding widget item
* is unselected and the widget is in an active window.
*
* @return the color to draw a badge's background with when it's corresponding
* widget item is unselected and the widget is in an active
* window.
*/
Color getActiveUnselectedBadgeColor();
/**
* The color to draw a badge's background with when it's corresponding widget item
* is unselected and the widget is in an inactive window.
*
* @return the color to draw a badge's background with when it's corresponding
* widget item is unselected and the widget is in an inactive
* window.
*/
Color getInativeUnselectedBadgeColor();
}
|