Returns a new Overlay that has the same properties as this one.
()
| 324 | |
| 325 | /** Returns a new Overlay that has the same properties as this one. */ |
| 326 | public Overlay create() { |
| 327 | Overlay overlay2 = new Overlay(); |
| 328 | overlay2.drawLabels(label); |
| 329 | overlay2.drawNames(drawNames); |
| 330 | overlay2.drawBackgrounds(drawBackgrounds); |
| 331 | overlay2.setLabelColor(labelColor); |
| 332 | overlay2.setLabelFont(labelFont, scalableLabels); |
| 333 | overlay2.setIsCalibrationBar(isCalibrationBar); |
| 334 | overlay2.selectable(selectable); |
| 335 | overlay2.setDraggable(draggable); |
| 336 | return overlay2; |
| 337 | } |
| 338 | |
| 339 | /** Returns a clone of this Overlay. */ |
| 340 | public Overlay duplicate() { |
no test coverage detected