Overrides TPoint draw method. @param panel the drawing panel requesting the drawing @param _g the graphics context on which to draw
(DrawingPanel panel, Graphics _g)
| 156 | * @param _g the graphics context on which to draw |
| 157 | */ |
| 158 | @Override |
| 159 | public void draw(DrawingPanel panel, Graphics _g) { |
| 160 | if(!(panel instanceof VideoPanel)||!isVisible()) { |
| 161 | return; |
| 162 | } |
| 163 | VideoPanel vidPanel = (VideoPanel) panel; |
| 164 | fillShape = getShape(vidPanel); |
| 165 | Graphics2D g = (Graphics2D) _g; |
| 166 | Paint gpaint = g.getPaint(); |
| 167 | g.setPaint(color); |
| 168 | g.fill(fillShape); |
| 169 | g.setPaint(gpaint); |
| 170 | } |
| 171 | |
| 172 | /** |
| 173 | * Overrides TPoint findInteractive method. |