public static class TLcdLookupTable.Builder extends Object
index color model
color map
buffer
TLcdLookupTable table = TLcdLookupTable.newBuilder().
fromColorMap(myColorMap).
build();
Modifier and Type | Method and Description |
---|---|
TLcdLookupTable |
build()
Builds the lookup table.
|
TLcdLookupTable.Builder |
componentCount(int aComponentCount)
Sets the number of components for a single table entry.
|
TLcdLookupTable.Builder |
componentType(TLcdLookupTable.ComponentType aComponentType)
Sets the type of a pixel component.
|
TLcdLookupTable.Builder |
data(Buffer aPixelData)
Sets the table's entries directly from a buffer.
|
TLcdLookupTable.Builder |
dimensions(int... aDimensions)
Sets the dimensions of the table.
|
TLcdLookupTable.Builder |
fromColorMap(TLcdColorMap aColorMap)
Sets the table's dimensions, component count, component type, interpolation type, interval and data from a color map.
|
TLcdLookupTable.Builder |
fromIndexColorModel(IndexColorModel aIndexColorModel)
Sets the table's dimensions, component count, component type and data from an index color model.
|
TLcdLookupTable.Builder |
fromSignedIndexColorModel(IndexColorModel aIndexColorModel)
Sets the table's dimensions, component count, component type and data from an index color model that is used
with signed indices.
|
TLcdLookupTable.Builder |
interpolation(ELcdInterpolationType aInterpolationType)
Sets the interpolation type between table pixels.
|
TLcdLookupTable.Builder |
mappedInterval(double aMin,
double aMax)
Sets the the interval of values that should be mapped on the table data.
|
TLcdLookupTable.Builder |
mappedInterval(ILcdInterval aInterval)
Sets the the interval of values that should be mapped on the table data.
|
public TLcdLookupTable.Builder dimensions(int... aDimensions)
aDimensions
- the size of the table along each dimension, the table must have at least 1 dimension and all
sizes must be greater than 0public TLcdLookupTable.Builder componentCount(int aComponentCount)
aComponentCount
- the number of components for a single entrypublic TLcdLookupTable.Builder componentType(TLcdLookupTable.ComponentType aComponentType)
aComponentType
- the type of a componentpublic TLcdLookupTable.Builder interpolation(ELcdInterpolationType aInterpolationType)
aInterpolationType
- the interpolation typepublic TLcdLookupTable.Builder data(Buffer aPixelData)
dimensions(int[])
dimensions},
component type
and #components
.aPixelData
- the pixel bufferpublic TLcdLookupTable.Builder mappedInterval(double aMin, double aMax)
aMin
- the interval minimumaMax
- the interval maximumpublic TLcdLookupTable.Builder mappedInterval(ILcdInterval aInterval)
aInterval
- the interval of values that should be mapped on the table or null
if it is unknownpublic TLcdLookupTable.Builder fromIndexColorModel(IndexColorModel aIndexColorModel)
fromSignedIndexColorModel(java.awt.image.IndexColorModel)
.aIndexColorModel
- the index color modelpublic TLcdLookupTable.Builder fromSignedIndexColorModel(IndexColorModel aIndexColorModel)
TLcdIndexColorModel
's and the color models from a
TLcdDTEDColorModelFactory
.aIndexColorModel
- the index color modelpublic TLcdLookupTable.Builder fromColorMap(TLcdColorMap aColorMap)
aColorMap
- the color mappublic TLcdLookupTable build()