|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityIcon
Interface for the icons used to represent components in a template design.
| Field Summary | |
|---|---|
static int |
BOX_DISTANCE
The minimal width and height of the icon in pixels. |
| Method Summary | |
|---|---|
EntityIcon |
clone()
Create a clone of this icon. |
java.awt.Color |
getColor()
Retrieve the background color of the icon. |
java.lang.String |
getTag()
Retrieve the text rendered inside the icon. |
boolean |
isFlagged()
Check if the icon is "flagged". |
void |
paintIcon(java.awt.Graphics g,
int x,
int y,
java.awt.Color color)
Render the icon in the given graphics context according to the given parameters. |
void |
setColor(java.awt.Color color)
Set the background color of the icon. |
void |
setFlagged(boolean b)
Specify if the icon has to be "flagged". |
void |
setIsModule(boolean b)
Specify the type of icon to be painted. |
| Methods inherited from interface javax.swing.Icon |
|---|
getIconHeight, getIconWidth, paintIcon |
| Field Detail |
|---|
static final int BOX_DISTANCE
| Method Detail |
|---|
EntityIcon clone()
void setIsModule(boolean b)
b - specify true for an icon for template components
of type module, specify false for an icon for
template components of type channel
void paintIcon(java.awt.Graphics g,
int x,
int y,
java.awt.Color color)
g - the graphics context where the icon has to be renderedx - the location of the icon on the horizontal axisy - the location of the icon on the vertical axiscolor - the color to be used for the border of the iconvoid setColor(java.awt.Color color)
color - the new background color of the iconjava.awt.Color getColor()
void setFlagged(boolean b)
b - specify true if the icon has to be "flagged",
specify false otherwiseboolean isFlagged()
true if the icon is "flagged"; false
otherwisejava.lang.String getTag()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||