public class CollapseTransform extends ImageTransform
| Modifier and Type | Field and Description |
|---|---|
protected int |
axis
Dimensional axis to collapse.
|
protected CollapseWidget |
controls
Controls for this dimensional collapse.
|
protected RealType[] |
range
Range display mappings.
|
MICRON, micronHeight, micronStep, micronWidth, xType, yType, zType| Constructor and Description |
|---|
CollapseTransform()
Creates an uninitialized dimensional collapse.
|
CollapseTransform(DataTransform parent,
String name,
int axis)
Creates a dimensional collapse from the given transform.
|
| Modifier and Type | Method and Description |
|---|---|
static FlatField |
collapse(FlatField[] fields,
RealType[] types)
Collapses the given fields.
|
String |
getCacheId(int[] pos,
boolean global)
Gets a string id uniquely describing this data transform at the given
dimensional position, for the purposes of thumbnail caching.
|
JComponent |
getControls()
Gets associated GUI controls for this transform.
|
Data |
getData(TransformLink link,
int[] pos,
int dim,
DataCache cache)
Retrieves the data corresponding to the given dimensional position, for the
given display dimensionality.
|
int |
getImageHeight()
Gets height of each image.
|
int |
getImageWidth()
Gets width of each image.
|
int |
getRangeCount()
Gets number of range components at each pixel.
|
void |
initState(Dynamic dyn)
Modifies this object's state to match that of the given object.
|
boolean |
isCompatible(Dynamic dyn)
Tests whether the given dynamic object can be used as an argument to
initState, for initializing this dynamic object.
|
static boolean |
isParentRequired()
Indicates whether this transform type requires a parent transform.
|
boolean |
isValidDimension(int dim)
Gets whether this transform provides data of the given dimensionality.
|
static boolean |
isValidParent(DataTransform data)
Indicates whether this transform type would accept the given transform as
its parent transform.
|
static DataTransform |
makeTransform(DataManager dm)
Creates a new dimensional collapse, with user interaction.
|
boolean |
matches(Dynamic dyn)
Tests whether two dynamic objects are equivalent.
|
void |
restoreState(Element el)
Restores the current state from the given DOM element
("DimensionalCollapse").
|
void |
saveState(Element el)
Writes the current state to the given DOM element ("DataTransforms").
|
void |
setParameters(int axis)
Assigns the parameters for this dimensional collapse.
|
canDisplay3D, getHTMLDescription, getImage, getImageUnits, getMicronHeight, getMicronStep, getMicronStep, getMicronWidth, getRangeTypes, getSuggestedMaps, getType, getXType, getYType, getZType, getZUnit, isImmediateaddTransformListener, canDisplay2D, discard, displayChanged, getDimTypes, getFont, getLabels, getLengths, getName, getParent, getThumbHandler, getTransformId, getUnitDescription, makeLabels, notifyListeners, removeTransformListener, setFont, toStringprotected int axis
protected RealType[] range
protected CollapseWidget controls
public CollapseTransform()
public CollapseTransform(DataTransform parent, String name, int axis)
public void setParameters(int axis)
public int getImageWidth()
getImageWidth in class ImageTransformpublic int getImageHeight()
getImageHeight in class ImageTransformpublic int getRangeCount()
getRangeCount in class ImageTransformpublic static DataTransform makeTransform(DataManager dm)
public static boolean isValidParent(DataTransform data)
public static boolean isParentRequired()
public Data getData(TransformLink link, int[] pos, int dim, DataCache cache)
getData in class ImageTransformpublic boolean isValidDimension(int dim)
isValidDimension in class DataTransformpublic String getCacheId(int[] pos, boolean global)
getCacheId in class DataTransformpublic JComponent getControls()
getControls in class DataTransformpublic boolean matches(Dynamic dyn)
matches in interface Dynamicmatches in class DataTransformpublic boolean isCompatible(Dynamic dyn)
isCompatible in interface DynamicisCompatible in class DataTransformpublic void initState(Dynamic dyn)
initState in interface DynamicinitState in class DataTransformpublic void saveState(Element el) throws SaveException
saveState in interface SaveablesaveState in class ImageTransformSaveExceptionpublic void restoreState(Element el) throws SaveException
restoreState in interface SaveablerestoreState in class ImageTransformSaveExceptionCopyright © 2015–2022 SciJava. All rights reserved.