|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.TransferHandler
jigcell.compare.impl.Transferer
jigcell.compare.transform.annotation.TransformAnnotation
public class TransformAnnotation
A default implementation of DataGeneratorAnnotation.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Nested Class Summary | |
|---|---|
static class |
TransformAnnotation.AnnotationDescriptor
A default implementation of AnnotationDescriptor. |
| Nested classes/interfaces inherited from interface jigcell.compare.transform.annotation.ITransformAnnotation |
|---|
ITransformAnnotation.IAnnotationDescriptor |
| Field Summary | |
|---|---|
protected java.util.Map |
descriptorMap
Storage for annotation descriptors |
protected static java.lang.Long |
LONG_ZERO
Zero |
protected static java.lang.Long |
NULL_KEY
Hash key for non-positional elements |
protected java.util.SortedMap |
recordMap
Storage for annotation records |
protected java.util.SortedMap |
valueMap
Storage for annotation values |
| Fields inherited from class jigcell.compare.impl.Transferer |
|---|
CSV_FOOTER, CSV_LINEPOSTPEND, CSV_LINEPREPEND, CSV_LINESEPARATOR, HTML_FOOTER, HTML_HEADPOSTPEND, HTML_HEADPREPEND, HTML_HEADSEPARATOR, HTML_LINEPOSTPEND, HTML_LINEPREPEND, HTML_LINESEPARATOR |
| Fields inherited from class javax.swing.TransferHandler |
|---|
COPY, COPY_OR_MOVE, MOVE, NONE |
| Constructor Summary | |
|---|---|
TransformAnnotation()
Creates a new annotation. |
|
| Method Summary | |
|---|---|
ITransformAnnotation.IAnnotationDescriptor |
getAnnotationDescriptor(java.lang.String key)
Description for a particular annotation type. |
ITransformAnnotation.IAnnotationDescriptor[] |
getAnnotationDescriptors()
All known annotation types. |
ITransformAnnotation |
getAnnotationRecord(long pos)
The annotation record at a particular position. |
java.lang.String |
getAnnotationValue(java.lang.String key)
The specified annotation value. |
java.lang.String |
getAnnotationValue(java.lang.String key,
long pos)
The specified annotation value at a particular position. |
java.util.Map |
getAnnotationValues()
All annotation values. |
java.util.Map |
getAnnotationValues(long pos)
All annotation values at a particular position. |
long |
getLength()
The last position with a recorded annotation. |
void |
setAnnotationDescriptor(java.lang.String key,
ITransformAnnotation.IAnnotationDescriptor value)
Sets description for a particular annotation type. |
void |
setAnnotationRecord(long pos,
ITransformAnnotation value)
Sets the annotation record at a particular position. |
void |
setAnnotationValue(java.lang.String key,
long pos,
java.lang.String value)
Sets an annotation value at a particular position. |
void |
setAnnotationValue(java.lang.String key,
java.lang.String value)
Sets an annotation value. |
| Methods inherited from class jigcell.compare.impl.Transferer |
|---|
addExtension, addFlavor, createCSVTable, createFormattedTable, createHTMLTable, getExceptionRecorder, getExpectedClasses, getExpectedClasses, getExpectedClasses, getFlavors, getFlavors, getPreferredExtensions, getPreferredExtensions, getTransferClass, getTransferData, getTransferDataFlavors, getTransferFlavor, isDataFlavorSupported, transfer |
| Methods inherited from class javax.swing.TransferHandler |
|---|
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getSourceActions, getVisualRepresentation, importData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.datatransfer.Transferable |
|---|
getTransferData, getTransferDataFlavors, isDataFlavorSupported |
| Field Detail |
|---|
protected static final java.lang.Long LONG_ZERO
protected static final java.lang.Long NULL_KEY
protected java.util.Map descriptorMap
protected java.util.SortedMap recordMap
protected java.util.SortedMap valueMap
| Constructor Detail |
|---|
public TransformAnnotation()
| Method Detail |
|---|
public ITransformAnnotation.IAnnotationDescriptor getAnnotationDescriptor(java.lang.String key)
getAnnotationDescriptor in interface ITransformAnnotationkey - Annotation typepublic ITransformAnnotation.IAnnotationDescriptor[] getAnnotationDescriptors()
getAnnotationDescriptors in interface ITransformAnnotationpublic ITransformAnnotation getAnnotationRecord(long pos)
getAnnotationRecord in interface ITransformAnnotationpos - Element positionpublic java.lang.String getAnnotationValue(java.lang.String key)
getAnnotationValue in interface ITransformAnnotationkey - Annotation type
public java.lang.String getAnnotationValue(java.lang.String key,
long pos)
getAnnotationValue in interface ITransformAnnotationkey - Annotation typepos - Element positionpublic java.util.Map getAnnotationValues()
getAnnotationValues in interface ITransformAnnotationpublic java.util.Map getAnnotationValues(long pos)
getAnnotationValues in interface ITransformAnnotationpos - Element positionpublic long getLength()
getLength in interface ITransformAnnotation
public void setAnnotationDescriptor(java.lang.String key,
ITransformAnnotation.IAnnotationDescriptor value)
setAnnotationDescriptor in interface ITransformAnnotationkey - Annotation typevalue - Annotation description
public void setAnnotationRecord(long pos,
ITransformAnnotation value)
setAnnotationRecord in interface ITransformAnnotationpos - Element positionvalue - Annotation record
public void setAnnotationValue(java.lang.String key,
java.lang.String value)
setAnnotationValue in interface ITransformAnnotationkey - Annotation typevalue - Annotation description
public void setAnnotationValue(java.lang.String key,
long pos,
java.lang.String value)
setAnnotationValue in interface ITransformAnnotationkey - Annotation typepos - Element positionvalue - Annotation value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||