|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.yworks.yfiles.bpmn.view.BpmnIcon
Displays BPMN data object type icons, marker icons, or task type icons.
GraphML (de-)serialization support is provided by class BpmnIcon.Handler
.
DataObjectTypeEnum
,
MarkerTypeEnum
,
TaskTypeEnum
Nested Class Summary | |
static class |
BpmnIcon.Handler
Provides GraphML (de-)serialization support for BpmnIcon . |
Constructor Summary | |
BpmnIcon(DataObjectTypeEnum type)
Initializes a new BpmnIcon instance that displays an icon
corresponding to the specified data object type. |
|
BpmnIcon(MarkerTypeEnum type)
Initializes a new BpmnIcon instance that displays an icon
corresponding to the specified marker. |
|
BpmnIcon(TaskTypeEnum type)
Initializes a new BpmnIcon instance that displays an icon
corresponding to the specified task type. |
Method Summary | |
Color |
getIconFillColor()
Returns the primary fill color of this icon. |
Color |
getIconFillColor2()
Returns the secondary fill color of this icon. |
int |
getIconHeight()
Determines the height of the icon. |
Color |
getIconLineColor()
Returns the line color of this icon. |
Object |
getIconType()
Returns the type specifier identifying the displayed data object type, marker, or task type. |
int |
getIconWidth()
Determines the width of the icon. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paints this icon. |
protected void |
paintIcon(Graphics2D g,
Rectangle2D bounds)
Paints this icon. |
void |
setIconFillColor(Color color)
Specifies the primary fill color for this icon. |
void |
setIconFillColor2(Color color)
Specifies the secondary fill color for this icon. |
void |
setIconHeight(int iconHeight)
Specifies the height of the icon. |
void |
setIconLineColor(Color color)
Specifies the line (or border) color for this icon. |
void |
setIconWidth(int iconWidth)
Specifies the width of the icon. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BpmnIcon(DataObjectTypeEnum type)
BpmnIcon
instance that displays an icon
corresponding to the specified data object type.
type
- the data object type to visualize.public BpmnIcon(MarkerTypeEnum type)
BpmnIcon
instance that displays an icon
corresponding to the specified marker.
type
- the marker to visualize.public BpmnIcon(TaskTypeEnum type)
BpmnIcon
instance that displays an icon
corresponding to the specified task type.
type
- the task type to visualize.Method Detail |
public Object getIconType()
DataObjectTypeEnum
,
MarkerTypeEnum
,
TaskTypeEnum
public Color getIconFillColor()
The default is white.
setIconFillColor(java.awt.Color)
public void setIconFillColor(Color color)
The default is white.
color
- the primary fill color.getIconFillColor()
public Color getIconFillColor2()
The default is white.
setIconFillColor2(java.awt.Color)
public void setIconFillColor2(Color color)
The default is white.
color
- the secondary fill color.getIconFillColor2()
public Color getIconLineColor()
The default is black.
setIconLineColor(java.awt.Color)
public void setIconLineColor(Color color)
The default is black.
color
- the line (or border) color.getIconLineColor()
public int getIconHeight()
By default, the height is 10
.
paintIcon(java.awt.Component, java.awt.Graphics, int, int)
.
getIconHeight
in interface Icon
setIconHeight(int)
public void setIconHeight(int iconHeight)
By default, the height is 10
.
iconHeight
- the height of the icon.getIconHeight()
public int getIconWidth()
By default, the width is 10
.
paintIcon(java.awt.Component, java.awt.Graphics, int, int)
.
getIconWidth
in interface Icon
setIconWidth(int)
public void setIconWidth(int iconWidth)
By default, the width is 10
.
iconWidth
- the height of the icon.getIconWidth()
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon(java.awt.Graphics2D, java.awt.geom.Rectangle2D)
.
paintIcon
in interface Icon
c
- ignored.g
- the graphics context to paint upon.x
- the x-coordinate of the icon's upper left corner.y
- the y-coordinate of the icon's upper left corner.protected void paintIcon(Graphics2D g, Rectangle2D bounds)
paintIcon(java.awt.Component, java.awt.Graphics, int, int)
.
g
- the graphics context to paint upon.bounds
- the location and size of the icon.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |