public class MultipleNameVisitor extends NameVisitor
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
displayName
Name to be displayed
|
static int |
MULTIPLE_NAME_MAX_LENGTH |
private java.lang.String |
multipleClassname
The class name of the combined primitives
|
private int |
size
Size of the collection
|
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() |
java.lang.String |
toString() |
void |
visit(java.util.Collection<? extends OsmPrimitive> data)
Visits a collection of primitives
|
visit, visit, visit
visit
public static final int MULTIPLE_NAME_MAX_LENGTH
private java.lang.String multipleClassname
private java.lang.String displayName
private int size
public MultipleNameVisitor()
public void visit(java.util.Collection<? extends OsmPrimitive> data)
data
- The collection of primitivespublic javax.swing.JLabel toLabel()
toLabel
in class NameVisitor
public java.lang.String getText()
public javax.swing.Icon getIcon()
public java.lang.String toString()
toString
in class java.lang.Object