public class Tag extends Object
TaggedAxis1D
. Tags have a name and a
position along their axis. Tags may also have a number of optional
named attributes with double precision values. See
TaggedPartialColorXAxisPainter
for one use of Tag attributes.
Tags may be manipulated programmatically or via mouse interaction.
To enable mouse interaction, a TaggedAxisMouseListener1D
must
be added to the GlimpseAxisLayout1D
for the TaggedAxis1D
.
Modifier and Type | Field and Description |
---|---|
static Comparator<Tag> |
tagValueComparator |
static String |
TEX_COORD_ATTR |
Constructor and Description |
---|
Tag(String name) |
Tag(String name,
double value) |
Tag(Tag tag) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
getAttribute(String key) |
float |
getAttributeFloat(String key) |
String |
getName() |
double |
getValue() |
boolean |
hasAttribute(String key) |
int |
hashCode() |
Tag |
setAttribute(String key,
Object value) |
void |
setName(String name) |
void |
setValue(double value) |
public static final String TEX_COORD_ATTR
public static final Comparator<Tag> tagValueComparator
public Tag(Tag tag)
public Tag(String name, double value)
public Tag(String name)
Copyright © 2013 Metron, Inc.. All rights reserved.