public interface VPShapeController
|Modifier and Type||Method and Description|
Check whether the location is inside the shape, used to check what is selected by the user.
Draw the shape by the graphics.
void drawShape(java.awt.Graphics2D aGraphics2D, java.awt.Paint aLineColor, java.awt.Paint aFillColor, java.awt.Stroke aStroke, VPShapeInfo aShapeInfo)
aGraphics2D- drawing the shape by Graphics2D. The Graphics2D have been translated to the location of the shape.
aShapeInfo- contains the information of the shape, e.g. the size of the shape.
boolean contains(int aX, int aY, VPShapeInfo aShapeInfo)
aX- x-location, relative to x-location of shape.
aY- y-location, relative to y-location of shape.