|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LineShapeInterface
An interface for shapes based on a set of lines that we need to modify at point level instead of bounds of the shape. A simple straight line can be modified using the bounds of the shape or using one of its ends. If the line is horizontal or vertical the bounds widht or height is equal to zero and this generates problems to resize it. It is also more natural to change the line shape by moving one of its ends instead of resising its bounds.
Method Summary | |
---|---|
int |
getX(int index)
Get point coordinates |
int |
getY(int index)
Get point coordinates |
int |
pointsNumber()
|
void |
translatePoint(int index,
int dx,
int dy)
Translate a point |
Methods inherited from interface simtools.diagram.SelectableShapeInterface |
---|
createSelectedShape, createSelectedShape, createSelectedShape |
Method Detail |
---|
int pointsNumber()
int getX(int index)
index
- the index of the point between 0 and pointsNumber
int getY(int index)
index
- the index of the point between 0 and pointsNumber
void translatePoint(int index, int dx, int dy)
index
- the index of the point between 0 and pointsNumberdx
- the x value for the translationdy
- the y value for the translation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |