Gets the shape to be filled in the draw method. @param vidPanel the video panel @return the line shape
(VideoPanel vidPanel)
| 150 | * @return the line shape |
| 151 | */ |
| 152 | @Override |
| 153 | protected Shape getShape(VideoPanel vidPanel) { |
| 154 | this.center(end1, end2); |
| 155 | Point p1 = end1.getScreenPosition(vidPanel); |
| 156 | Point p2 = end2.getScreenPosition(vidPanel); |
| 157 | line.setLine(p1, p2); |
| 158 | end1Rect.setLocation(p1.x-4, p1.y-4); |
| 159 | end2Rect.setLocation(p2.x-4, p2.y-4); |
| 160 | return stroke.createStrokedShape(line); |
| 161 | } |
| 162 | |
| 163 | //_________________________ inner End classes _________________________ |
| 164 | class LineEnd extends TPoint { |
nothing calls this directly
no test coverage detected