Changeset 4207 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java
- Timestamp:
- 2011-07-07T10:51:48+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java
r3996 r4207 45 45 private ButtonGroup colorGroup; 46 46 private JRadioButton colorTypeVelocity = new JRadioButton(tr("Velocity (red = slow, green = fast)")); 47 private JRadioButton colorTypeDirection = new JRadioButton(tr("Direction (red = west, yellow = north, green = east, blue = south)")); 47 48 private JRadioButton colorTypeDilution = new JRadioButton(tr("Dilution of Position (red = high, green = low, if available)")); 48 49 private JRadioButton colorTypeNone = new JRadioButton(tr("Single Color (can be customized for named layers)")); … … 170 171 colorGroup.add(colorTypeNone); 171 172 colorGroup.add(colorTypeVelocity); 173 colorGroup.add(colorTypeDirection); 172 174 colorGroup.add(colorTypeDilution); 173 175 … … 188 190 colorTypeDilution.setSelected(true); 189 191 break; 192 case 3: 193 colorTypeDirection.setSelected(true); 194 break; 190 195 } 191 196 192 197 colorTypeNone.setToolTipText(tr("All points and track segments will have the same color. Can be customized in Layer Manager.")); 193 198 colorTypeVelocity.setToolTipText(tr("Colors points and track segments by velocity.")); 199 colorTypeDirection.setToolTipText(tr("Colors points and track segments by direction.")); 194 200 colorTypeDilution.setToolTipText(tr("Colors points and track segments by dilution of position (HDOP). Your capture device needs to log that information.")); 195 201 … … 206 212 panel.add(colorTypeVelocity, GBC.std().insets(40,0,0,0)); 207 213 panel.add(colorTypeVelocityTune, GBC.eop().insets(5,0,0,5)); 214 panel.add(colorTypeDirection, GBC.eol().insets(40,0,0,0)); 208 215 panel.add(colorTypeDilution, GBC.eol().insets(40,0,0,0)); 209 216 … … 300 307 } else if(colorTypeDilution.isSelected()) { 301 308 Main.pref.putInteger("draw.rawgps.colors", 2); 309 } else if(colorTypeDirection.isSelected()) { 310 Main.pref.putInteger("draw.rawgps.colors", 3); 302 311 } else { 303 312 Main.pref.putInteger("draw.rawgps.colors", 0);
Note:
See TracChangeset
for help on using the changeset viewer.