Ticket #12933: patch-mapview-deprecate-paint-poly.patch

File patch-mapview-deprecate-paint-poly.patch, 2.4 KB (added by michael2402, 5 years ago)
  • src/org/openstreetmap/josm/gui/NavigatableComponent.java

    diff --git a/src/org/openstreetmap/josm/gui/NavigatableComponent.java b/src/org/openstreetmap/josm/gui/NavigatableComponent.java
    index 9334562..433d0f1 100644
    a b public class NavigatableComponent extends JComponent implements Helpful { 
    143143    protected EastNorth center = calculateDefaultCenter();
    144144
    145145    private final transient Object paintRequestLock = new Object();
     146    /**
     147     * @deprecated To be removed in July 2016
     148     */
     149    @Deprecated
    146150    private Rectangle paintRect;
     151    /**
     152     * @deprecated To be removed in July 2016
     153     */
     154    @Deprecated
    147155    private Polygon paintPoly;
    148156
    149157    protected transient ViewportData initialViewport;
    public class NavigatableComponent extends JComponent implements Helpful { 
    15951603     * @param r The Rectangle to draw
    15961604     * @see #requestClearRect
    15971605     * @since 5500
     1606     * @deprecated To be removed in July 2016. Use a temporary layer instead.
    15981607     */
     1608    @Deprecated
    15991609    public void requestPaintRect(Rectangle r) {
    16001610        if (r != null) {
    16011611            synchronized (paintRequestLock) {
    public class NavigatableComponent extends JComponent implements Helpful { 
    16101620     * @param p The Polygon to draw
    16111621     * @see #requestClearPoly
    16121622     * @since 5500
     1623     * @deprecated To be removed in July 2016. Use a temporary layer instead.
    16131624     */
     1625    @Deprecated
    16141626    public void requestPaintPoly(Polygon p) {
    16151627        if (p != null) {
    16161628            synchronized (paintRequestLock) {
    public class NavigatableComponent extends JComponent implements Helpful { 
    16241636     * Requests to clear the rectangled previously drawn.
    16251637     * @see #requestPaintRect
    16261638     * @since 5500
     1639     * @deprecated To be removed in July 2016. Use a temporary layer instead.
    16271640     */
     1641    @Deprecated
    16281642    public void requestClearRect() {
    16291643        synchronized (paintRequestLock) {
    16301644            paintRect = null;
    public class NavigatableComponent extends JComponent implements Helpful { 
    16361650     * Requests to clear the polyline previously drawn.
    16371651     * @see #requestPaintPoly
    16381652     * @since 5500
     1653     * @deprecated To be removed in July 2016. Use a temporary layer instead.
    16391654     */
     1655    @Deprecated
    16401656    public void requestClearPoly() {
    16411657        synchronized (paintRequestLock) {
    16421658            paintPoly = null;