|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.property.ShapeFactory.Shape
public abstract static class ShapeFactory.Shape
Abstract implementation of a shape. Handles all common attributes such as position, dimension, color, etc. All implementing classes have to provide a possibility to get a new instance and to paint themselves.
Constructor Summary | |
---|---|
ShapeFactory.Shape()
|
Method Summary | |
---|---|
Icon |
getIcon()
|
void |
paint(Graphics g,
int x,
int y,
int size,
Color color,
boolean hilited,
boolean selected,
boolean faded)
Paints the dot and if hilited a border around the dot. |
void |
paintBorder(Graphics g,
int x,
int y,
int size,
boolean hilited,
boolean selected)
Paints the hilite border. |
abstract void |
paintShape(Graphics g,
int x,
int y,
int size,
boolean selected,
boolean hilited)
Paints the shape. |
abstract String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ShapeFactory.Shape()
Method Detail |
---|
public Icon getIcon()
public void paintBorder(Graphics g, int x, int y, int size, boolean hilited, boolean selected)
g
- the graphics object.x
- the x center positiony
- the y center positionsize
- the dimension of the shapehilited
- falg whether the shape is hilitedselected
- flag whether the dot is selectedpublic void paint(Graphics g, int x, int y, int size, Color color, boolean hilited, boolean selected, boolean faded)
g
- the graphics object.x
- the x position (center of the shape)y
- the y position (center of the shape)size
- the size (width and height)color
- the normal color of the shapehilited
- flag whether dot is hilitedselected
- flag whether dot is selected.faded
- flag whether point is faded.public abstract void paintShape(Graphics g, int x, int y, int size, boolean selected, boolean hilited)
g
- the graphics objectx
- the center x positiony
- the center y positionsize
- the dimension of the shapehilited
- flag whether the shape is hilitedselected
- flag whether the shape is selectedpublic abstract String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |