| java.lang.Object org.cougaar.logistics.ui.inventory.dialog.ColoredBox
ColoredBox | public class ColoredBox implements Icon(Code) | | An icon used in the Color Preferences tab.
|
Field Summary | |
Color | color The main color of the rectangle. | protected boolean | drawOutline Should the outline be drawn. | final static Map | hints Hints on how to render the rectangle. | final static Stroke | wideStroke A wide stroke to draw the outline if any. | int | width |
Constructor Summary | |
public | ColoredBox(Color c, int width) Create a Colored rectangle icon. |
color | Color color(Code) | | The main color of the rectangle. *
|
drawOutline | protected boolean drawOutline(Code) | | Should the outline be drawn. *
|
hints | final static Map hints(Code) | | Hints on how to render the rectangle. *
|
wideStroke | final static Stroke wideStroke(Code) | | A wide stroke to draw the outline if any. *
|
width | int width(Code) | | The size of the rectangle (width and height) *
|
ColoredBox | public ColoredBox(Color c, int width)(Code) | | Create a Colored rectangle icon.
Parameters: c - the color Parameters: width - the width |
getIconHeight | public int getIconHeight()(Code) | | |
getIconWidth | public int getIconWidth()(Code) | | |
paintIcon | public void paintIcon(Component c, Graphics g, int x, int y)(Code) | | Paint the icon into the given Component at the specified
location.
|
|
|