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
Maximum displayed length, in characters.
|
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()
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, 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()
NameVisitor
JLabel
with icon and name.toLabel
in class NameVisitor
JLabel
with icon and namepublic java.lang.String getText()
public javax.swing.Icon getIcon()
public java.lang.String toString()
toString
in class java.lang.Object