Class TaggedAxis1D
- java.lang.Object
-
- com.metsci.glimpse.core.axis.Axis1D
-
- com.metsci.glimpse.core.axis.tagged.TaggedAxis1D
-
public class TaggedAxis1D extends Axis1D
An Axis1D which keeps track of a set of labeled locations along the axis. Tags may be manipulated programmatically or via mouse interaction. To enable mouse interaction, aTaggedAxisMouseListener1D
must be added to theGlimpseAxisLayout1D
for theTaggedAxis1D
. Tags may be visualized by drawing the TaggedAxis1D using a painter from thecom.metsci.glimpse.core.axis.tagged.painter
package.- Author:
- ulman
-
-
Constructor Summary
Constructors Constructor Description TaggedAxis1D()
TaggedAxis1D(Axis1D parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConstraint(Constraint constraint)
Tag
addTag(Tag tag)
Tag
addTag(String name, double value)
void
applyTagConstraints()
TaggedAxis1D
clone()
Collection<Constraint>
getAllConstraints()
List<Tag>
getSortedTags()
Tag
getTag(String id)
boolean
isLinkTags()
void
removeAllConstraints()
void
removeAllTags()
void
removeConstraint(String name)
void
removeTag(String id)
void
setLinkTags(boolean link)
String
toString()
void
validateTags()
-
Methods inherited from class com.metsci.glimpse.core.axis.Axis1D
addAxisListener, applyConstraints, getAbsoluteMax, getAbsoluteMin, getChildren, getLockedAspectAxis, getLockedAspectRatio, getLockMax, getLockMin, getMax, getMaxSpan, getMin, getMinSpan, getMouseValue, getParent, getPixelsPerValue, getSelectionCenter, getSelectionSize, getSizePixels, getUpdateMode, isInitialized, isLockMax, isLockMin, isMaxSpanConstrained, isMinSpanConstrained, isSelectionLocked, lock, lockAspectRatio, lockMax, lockMax, lockMin, lockMin, removeAxisListener, screenPixelToValue, setAbsoluteMax, setAbsoluteMin, setConstrainMaxSpan, setConstrainMinSpan, setInitialized, setLinkChildren, setMax, setMaxSpan, setMin, setMinSpan, setMouseValue, setParent, setParent, setSelectionCenter, setSelectionLock, setSelectionSize, setSizePixels, setSizePixels, setUpdateMode, unlock, unlockAspectRatio, unlockMax, unlockMin, updateLinkedAxes, updateLinkedAxes, validate, valueToScreenPixel, valueToScreenPixelUnits
-
-
-
-
Constructor Detail
-
TaggedAxis1D
public TaggedAxis1D(Axis1D parent)
-
TaggedAxis1D
public TaggedAxis1D()
-
-
Method Detail
-
clone
public TaggedAxis1D clone()
-
isLinkTags
public boolean isLinkTags()
-
setLinkTags
public void setLinkTags(boolean link)
-
validateTags
public void validateTags()
-
removeTag
public void removeTag(String id)
-
removeAllTags
public void removeAllTags()
-
addConstraint
public void addConstraint(Constraint constraint)
-
removeConstraint
public void removeConstraint(String name)
-
getAllConstraints
public Collection<Constraint> getAllConstraints()
-
removeAllConstraints
public void removeAllConstraints()
-
applyTagConstraints
public void applyTagConstraints()
-
-