Gets the shape to be filled in the draw method. @param vidPanel the video panel @return the fill shape
(VideoPanel vidPanel)
| 210 | * @return the fill shape |
| 211 | */ |
| 212 | protected Shape getShape(VideoPanel vidPanel) { |
| 213 | Point p = getScreenPosition(vidPanel); |
| 214 | setHitRectCenter(p.x, p.y); |
| 215 | if(stroke==null) { |
| 216 | return(Rectangle) hitRect.clone(); |
| 217 | } |
| 218 | return stroke.createStrokedShape(hitRect); |
| 219 | } |
| 220 | |
| 221 | /** |
| 222 | * Centers the hit testing rectangle on the specified screen point. |
no test coverage detected