Ignore:
Timestamp:
2011-07-13T10:41:01+02:00 (13 years ago)
Author:
stoecker
Message:

allow to color the entries in layer list dialog according to assigned layer drawing color

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/Layer.java

    r4183 r4230  
    55import static org.openstreetmap.josm.tools.I18n.tr;
    66
     7import java.awt.Color;
    78import java.awt.Component;
    89import java.awt.Graphics2D;
     
    5354    }
    5455
     56    public interface MultiLayerAction {
     57        Action getMultiLayerAction(List<Layer> layers);
     58    }
     59
     60
    5561    /**
    5662     * Special class that can be returned by getMenuEntries when JSeparator needs to be created
     
    128134     */
    129135    abstract public Icon getIcon();
     136
     137    /**
     138     * Return a Color for this layer. Return null when no color specified.
     139     * @param ignoreCustom Custom color should return null, as no default color
     140     *      is used. When this is true, then even for custom coloring the base
     141     *      color is returned - mainly for layer internal use.
     142     */
     143    public Color getColor(boolean ignoreCustom) {
     144        return null;
     145    }
    130146
    131147    /**
Note: See TracChangeset for help on using the changeset viewer.