com.metsci.glimpse.axis.tagged
Class TaggedAxis1D
java.lang.Object
com.metsci.glimpse.axis.Axis1D
com.metsci.glimpse.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, a TaggedAxisMouseListener1D
must
be added to the GlimpseAxisLayout1D
for the TaggedAxis1D
.
Tags may be visualized by drawing the TaggedAxis1D using a painter from the
com.metsci.glimpse.axis.tagged.painter
package.
- Author:
- ulman
Fields inherited from class com.metsci.glimpse.axis.Axis1D |
logger |
Methods inherited from class com.metsci.glimpse.axis.Axis1D |
addAxisListener, applyConstraints, getAbsoluteMax, getAbsoluteMin, getLockedAspectAxis, getLockedAspectRatio, getLockMax, getLockMin, getMax, getMaxSpan, getMin, getMinSpan, getMouseValue, getPixelsPerValue, getSelectionCenter, getSelectionSize, getSizePixels, getUpdateMode, isInitialized, isLockMax, isLockMin, isMaxSpanConstrained, isMinSpanConstrained, isSelectionLocked, lockAspectRatio, lockMax, lockMin, removeAxisListener, screenPixelToValue, setAbsoluteMax, setAbsoluteMin, setConstrainMaxSpan, setConstrainMinSpan, setInitialized, setLinkChildren, setMax, setMaxSpan, setMin, setMinSpan, setMouseValue, setParent, setParent, setSelectionCenter, setSelectionLock, setSelectionSize, setSizePixels, setSizePixels, setUpdateMode, toString, unlockAspectRatio, unlockMax, unlockMin, updateLinkedAxes, updateLinkedAxes, validate, valueToScreenPixel, valueToScreenPixelUnits |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TaggedAxis1D
public TaggedAxis1D(Axis1D parent)
TaggedAxis1D
public TaggedAxis1D()
clone
public Axis1D clone()
- Overrides:
clone
in class Axis1D
validateTags
public void validateTags()
addTag
public Tag addTag(Tag tag)
addTag
public Tag addTag(java.lang.String name,
double value)
removeTag
public void removeTag(java.lang.String id)
removeAllTags
public void removeAllTags()
addConstraint
public void addConstraint(Constraint constraint)
removeConstraint
public void removeConstraint(java.lang.String name)
getAllConstraints
public java.util.Collection<Constraint> getAllConstraints()
removeAllConstraints
public void removeAllConstraints()
getTag
public Tag getTag(java.lang.String id)
getSortedTags
public java.util.List<Tag> getSortedTags()
applyTagConstraints
public void applyTagConstraints()
Copyright © 2012 Metron, Inc.. All Rights Reserved.