|
||||||||||
| 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.data.DataElement
jigcell.compare.data.FlippedDataElement
public class FlippedDataElement
An implementation of DataElement that acts as the transpose of another DataElement. A FlippedDataElement is unsynchronized.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jigcell.compare.IDataElement |
|---|
IDataElement.Type |
| Field Summary | |
|---|---|
protected IEditableDataElement |
element
Untied element |
protected long |
index
Index within the flip to access |
protected static java.lang.String |
MESSAGE_UNTIEERROR
Error message when an element cannot be untied |
protected IDataElement |
tie
Original element |
| Fields inherited from class jigcell.compare.data.DataElement |
|---|
lockCount, LONGPOOL, PATTERN_FALSE, PATTERN_NAN, PATTERN_NINFINITY, PATTERN_NINFINITY2, PATTERN_NULL, PATTERN_PINFINITY, PATTERN_PINFINITY2, PATTERN_TRUE, PATTERN_VOID, SIZE_LONGPOOL |
| 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 | |
|---|---|
|
FlippedDataElement(IDataElement element)
Creates a new flipped data element from an existing data element. |
|
FlippedDataElement(IDataElement element,
boolean tied)
Creates a new flipped data element from an existing data element. |
protected |
FlippedDataElement(IDataElement element,
boolean tied,
long index)
Creates a new flipped data element from an existing data element. |
| Method Summary | |
|---|---|
static IDataElement |
flip(IDataElement element)
Produces a DataElement that acts as the transpose of another DataElement. |
static IDataElement |
flip(IDataElement element,
boolean tied)
Produces a DataElement that acts as the transpose of another DataElement. |
boolean |
getBooleanValue()
This element represented as a boolean when evaluated in a scalar context. |
boolean |
getBooleanValue(long pos)
The element at position pos represented as a boolean. |
long |
getIntegralValue()
This element represented as an integer when evaluated in a scalar context. |
long |
getIntegralValue(long pos)
The element at position pos represented as an integer. |
long |
getLength()
The number of elements in this element, or 0 if this element is scalar. |
IDataElement |
getListValue(long pos)
This element at position pos represented as a list. |
java.lang.String |
getLiteralValue()
This element represented as a string literal when evaluated in a scalar context. |
java.lang.String |
getLiteralValue(long pos)
The element at position pos represented as a string literal. |
double |
getRealValue()
This element represented as a real when evaluated in a scalar context. |
double |
getRealValue(long pos)
The element at position pos represented as a real. |
IDataElement |
getTiedElement()
The tied data element if this element is tied or null otherwise. |
IDataElement.Type |
getType()
The type of this element. |
IDataElement.Type |
getType(long pos)
The type of the element at position pos. |
boolean |
isAvailable()
Whether the element data can currently be worked with. |
void |
memoryLock()
Forces the element to guarantee that the element data can currently be worked with. |
void |
memoryUnlock()
Releases the element from the guarantee that the element data can currently be worked with. |
void |
untie()
Converts a FlippedDataElement to an untied FlippedDataElement or throws an exception if not possible. |
| Methods inherited from class jigcell.compare.data.DataElement |
|---|
forceBooleanValue, forceBooleanValue, forceIntegralValue, forceIntegralValue, forceListValue, forceLiteralValue, forceLiteralValue, forceRealValue, forceRealValue, forceSlice, forceSlice, forceSlice, forceSlice, forceSlice, getLongObject, getSlice, getSlice, getSlice, getSlice, getSlice, getTransferData, isScalar, isSpecialNonNumeric, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString |
| Methods inherited from class jigcell.compare.impl.Transferer |
|---|
addExtension, addFlavor, createCSVTable, createFormattedTable, createHTMLTable, getExceptionRecorder, getExpectedClasses, getExpectedClasses, getExpectedClasses, getFlavors, getFlavors, getPreferredExtensions, getPreferredExtensions, getTransferClass, 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, wait, wait, wait |
| Methods inherited from interface java.awt.datatransfer.Transferable |
|---|
getTransferDataFlavors, isDataFlavorSupported |
| Field Detail |
|---|
protected static final java.lang.String MESSAGE_UNTIEERROR
protected IDataElement tie
protected IEditableDataElement element
protected long index
| Constructor Detail |
|---|
public FlippedDataElement(IDataElement element)
element - Data element
public FlippedDataElement(IDataElement element,
boolean tied)
element - Data elementtied - Whether the flipped element should reflect changes in the original data element
protected FlippedDataElement(IDataElement element,
boolean tied,
long index)
element - Data elementtied - Whether the flipped element should reflect changes in the original data elementindex - Index into the original data element| Method Detail |
|---|
public static IDataElement flip(IDataElement element)
element - DataElement to flip
public static IDataElement flip(IDataElement element,
boolean tied)
element - DataElement to fliptied - Whether updates to element should be propogatedpublic boolean getBooleanValue()
getBooleanValue in interface IDataElementgetBooleanValue in class DataElementpublic boolean getBooleanValue(long pos)
getBooleanValue in interface IDataElementgetBooleanValue in class DataElementpos - Positionpublic long getIntegralValue()
getIntegralValue in interface IDataElementgetIntegralValue in class DataElementpublic long getIntegralValue(long pos)
getIntegralValue in interface IDataElementgetIntegralValue in class DataElementpos - Positionpublic long getLength()
getLength in interface IDataElementgetLength in class DataElementpublic IDataElement getListValue(long pos)
getListValue in interface IDataElementgetListValue in class DataElementpos - Positionpublic java.lang.String getLiteralValue()
getLiteralValue in interface IDataElementgetLiteralValue in class DataElementpublic java.lang.String getLiteralValue(long pos)
getLiteralValue in interface IDataElementgetLiteralValue in class DataElementpos - Positionpublic double getRealValue()
getRealValue in interface IDataElementgetRealValue in class DataElementpublic double getRealValue(long pos)
getRealValue in interface IDataElementgetRealValue in class DataElementpos - Positionpublic IDataElement getTiedElement()
public IDataElement.Type getType()
getType in interface IDataElementgetType in class DataElementpublic IDataElement.Type getType(long pos)
getType in interface IDataElementgetType in class DataElementpos - Positionpublic boolean isAvailable()
isAvailable in interface IDataElementisAvailable in class DataElementpublic void memoryLock()
memoryLock in interface IDataElementmemoryLock in class DataElementpublic void memoryUnlock()
memoryUnlock in interface IDataElementmemoryUnlock in class DataElementpublic void untie()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||