public abstract class AbstractDataView extends AbstractContextual implements DataView
DataView
s.Constructor and Description |
---|
AbstractDataView() |
Modifier and Type | Method and Description |
---|---|
void |
bck(int d) |
void |
dispose()
Discards the view, performing any needed cleanup.
|
void |
fwd(int d) |
Data |
getData()
Gets the
Data represented by this view. |
double |
getDoublePosition(int d) |
float |
getFloatPosition(int d) |
int |
getIntPosition(AxisType axis)
Returns the current position in a given dimension.
|
int |
getIntPosition(int d) |
long |
getLongPosition(AxisType axis)
Returns the current position in a given dimension.
|
long |
getLongPosition(int d) |
Position |
getPlanePosition()
Gets the N-dimensional plane position of this view.
|
void |
initialize(Data d)
Initializes the view with the given
Data . |
boolean |
isSelected() |
void |
localize(double[] position) |
void |
localize(float[] position) |
void |
localize(int[] position) |
void |
localize(long[] position) |
void |
move(int[] distance) |
void |
move(int distance,
int d) |
void |
move(Localizable localizable) |
void |
move(long[] distance) |
void |
move(long distance,
int d) |
int |
numDimensions() |
protected void |
publish(SciJavaEvent event) |
void |
setPosition(int[] position) |
void |
setPosition(int position,
int d) |
void |
setPosition(Localizable localizable) |
void |
setPosition(long[] position) |
void |
setPosition(long position,
AxisType axis)
Sets the position of the element for one dimension.
|
void |
setPosition(long position,
int d) |
void |
setSelected(boolean isSelected)
Set the view's selection state.
|
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPreferredHeight, getPreferredWidth, isCompatible, rebuild, update
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
context, getContext, setContext
public void initialize(Data d)
DataView
Data
. This method should only
be called once.initialize
in interface DataView
public Data getData()
DataView
Data
represented by this view.public Position getPlanePosition()
DataView
getPlanePosition
in interface DataView
public void setSelected(boolean isSelected)
DataView
setSelected
in interface DataView
isSelected
- - true if selected, false if not.public boolean isSelected()
isSelected
in interface DataView
public void dispose()
DataView
public int getIntPosition(AxisType axis)
PositionableByAxis
getIntPosition
in interface PositionableByAxis
public long getLongPosition(AxisType axis)
PositionableByAxis
getLongPosition
in interface PositionableByAxis
public void setPosition(long position, AxisType axis)
PositionableByAxis
setPosition
in interface PositionableByAxis
public void localize(int[] position)
localize
in interface Localizable
public void localize(long[] position)
localize
in interface Localizable
public int getIntPosition(int d)
getIntPosition
in interface Localizable
public long getLongPosition(int d)
getLongPosition
in interface Localizable
public void localize(float[] position)
localize
in interface RealLocalizable
public void localize(double[] position)
localize
in interface RealLocalizable
public float getFloatPosition(int d)
getFloatPosition
in interface Localizable
getFloatPosition
in interface RealLocalizable
public double getDoublePosition(int d)
getDoublePosition
in interface Localizable
getDoublePosition
in interface RealLocalizable
public int numDimensions()
numDimensions
in interface EuclideanSpace
public void fwd(int d)
fwd
in interface Positionable
public void bck(int d)
bck
in interface Positionable
public void move(int distance, int d)
move
in interface Positionable
public void move(long distance, int d)
move
in interface Positionable
public void move(Localizable localizable)
move
in interface Positionable
public void move(int[] distance)
move
in interface Positionable
public void move(long[] distance)
move
in interface Positionable
public void setPosition(Localizable localizable)
setPosition
in interface Positionable
public void setPosition(int[] position)
setPosition
in interface Positionable
public void setPosition(long[] position)
setPosition
in interface Positionable
public void setPosition(int position, int d)
setPosition
in interface Positionable
public void setPosition(long position, int d)
setPosition
in interface Positionable
protected void publish(SciJavaEvent event)
Copyright © 2014–2022 ImageJ. All rights reserved.