public class MultipleNameVisitor extends NameVisitor
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
displayName
Name to be displayed
|
private static javax.swing.Icon |
MULTI_CLASS_ICON |
private static java.lang.String |
MULTI_CLASS_NAME |
static IntegerProperty |
MULTIPLE_NAME_MAX_LENGTH
Maximum displayed length, in characters.
|
className, classNamePlural, icon, name| Constructor and Description |
|---|
MultipleNameVisitor() |
| Modifier and Type | Method and Description |
|---|---|
javax.swing.Icon |
getIcon()
Gets the icon of the items
|
java.lang.String |
getText()
Gets the name of the items
|
javax.swing.JLabel |
toLabel()
Returns an horizontal
JLabel with icon and name. |
java.lang.String |
toString() |
void |
visit(java.util.Collection<? extends OsmPrimitive> data)
Visits a collection of primitives
|
visit, visit, visitpublic static final IntegerProperty MULTIPLE_NAME_MAX_LENGTH
private static final java.lang.String MULTI_CLASS_NAME
private static final javax.swing.Icon MULTI_CLASS_ICON
private java.lang.String displayName
public MultipleNameVisitor()
public void visit(java.util.Collection<? extends OsmPrimitive> data)
data - The collection of primitivespublic javax.swing.JLabel toLabel()
NameVisitorJLabel with icon and name.toLabel in class NameVisitorJLabel with icon and namepublic java.lang.String getText()
public javax.swing.Icon getIcon()
public java.lang.String toString()
toString in class java.lang.Object