source: josm/trunk/src/org/openstreetmap/josm/gui/dialogs/relation/WayConnectionType.java@ 2298

Last change on this file since 2298 was 2298, checked in by stoecker, 15 years ago

fix linked hints in relation editor, added tooltip

File size: 919 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.dialogs.relation;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6public enum WayConnectionType {
7
8 none("", tr("Not connected")),
9 head_to_head("-><-", tr("Last points of ways are connected")),
10 tail_to_tail("<-->", tr("First points of ways are connected")),
11 head_to_tail("->->", tr("First point of second way connects to last point of first way")),
12 tail_to_head("<-<-", tr("First point of first way connects to last point of second way"));
13
14 private String textSymbol;
15 private String toolTip;
16
17 WayConnectionType(String textSymbol, String toolTip) {
18 this.textSymbol = textSymbol;
19 this.toolTip = toolTip;
20 }
21
22 @Override
23 public String toString() {
24 return textSymbol;
25 }
26
27 public String getToolTip() {
28 return toolTip;
29 }
30}
Note: See TracBrowser for help on using the repository browser.