Class IntensityGraphFigure.UnsignedPrimitiveArrayWrapper
- java.lang.Object
-
- org.eclipse.nebula.visualization.widgets.figures.IntensityGraphFigure.UnsignedPrimitiveArrayWrapper
-
- All Implemented Interfaces:
IPrimaryArrayWrapper
- Enclosing class:
- IntensityGraphFigure
public class IntensityGraphFigure.UnsignedPrimitiveArrayWrapper extends java.lang.Object implements IPrimaryArrayWrapper
Wraps an array of raw signed data to emulate an unsigned datatype.
-
-
Field Summary
Fields Modifier and Type Field Description private IPrimaryArrayWrapperarrayprivate doubleoffset
-
Constructor Summary
Constructors Constructor Description UnsignedPrimitiveArrayWrapper(IPrimaryArrayWrapper array, int bits)Wrap an array to return unsigned data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleget(int i)Get the array element value at index i.intgetSize()Get size of the array.
-
-
-
Field Detail
-
array
private IPrimaryArrayWrapper array
-
offset
private double offset
-
-
Constructor Detail
-
UnsignedPrimitiveArrayWrapper
public UnsignedPrimitiveArrayWrapper(IPrimaryArrayWrapper array, int bits)
Wrap an array to return unsigned data.- Parameters:
array- Array to be wrappedbits- Length of unsigned data, in bits
-
-
Method Detail
-
get
public double get(int i)
Description copied from interface:IPrimaryArrayWrapperGet the array element value at index i.- Specified by:
getin interfaceIPrimaryArrayWrapper- Parameters:
i- index- Returns:
- the value at index i.
-
getSize
public int getSize()
Description copied from interface:IPrimaryArrayWrapperGet size of the array.- Specified by:
getSizein interfaceIPrimaryArrayWrapper- Returns:
- size of the array.
-
-