|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.uml.UMLIcon
public abstract class UMLIcon
Base class for drawing icons on a UML diagram
Field Summary | |
---|---|
protected int |
iconHeight
Description of the Field |
protected int |
iconWidth
Description of the Field |
protected double |
scale
Description of the Field |
Constructor Summary | |
---|---|
UMLIcon(int wide,
int high)
Constructor for the UMLIcon object |
Method Summary | |
---|---|
int |
getIconHeight()
Gets the IconHeight attribute of the UMLIcon object |
int |
getIconWidth()
Gets the IconWidth attribute of the UMLIcon object |
abstract void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Draws the icon |
void |
setScale(double value)
Sets the Scale attribute of the UMLIcon object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int iconHeight
protected int iconWidth
protected double scale
Constructor Detail |
---|
public UMLIcon(int wide, int high)
wide
- the size of the iconhigh
- the size of the iconMethod Detail |
---|
public void setScale(double value)
value
- The new Scale valuepublic int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public abstract void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
c
- The component on which we are drawingg
- The graphics objectx
- the x locationy
- the y location
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |