- All Implemented Interfaces:
Localized
A control for selecting a two-dimensional slice in a grid extent having more than 2 dimensions.
For example if a n-dimensional data cube contains a time axis, this widget provides
a slider for selecting a slice on the time axis.
- Since:
- 1.3
-
Property Summary
TypePropertyDescriptionfinal ReadOnlyProperty
<GridExtent> Returns the property for the currently selected grid extent. -
Field Summary
Modifier and TypeFieldDescriptionfinal ObjectProperty
<GridGeometry> The grid geometry for which to provide sliders. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Region
getView()
Returns the encapsulated JavaFX component to add in a scene graph for making the selectors visible.final int[]
Returns the grid dimensions of x and y axes rendered in a two-dimensional image or table.boolean
isEmpty()
Returnstrue
if this slice selector has no component to shown.final ReadOnlyProperty
<GridExtent> Returns the property for the currently selected grid extent.Methods inherited from class Widget
getLocale
-
Property Details
-
selectedExtent
Returns the property for the currently selected grid extent. This value varies after the user finished to drag the slider.- See Also:
-
-
Field Details
-
gridGeometry
The grid geometry for which to provide sliders.
-
-
Constructor Details
-
GridSliceSelector
Creates a new widget.- Parameters:
locale
- the locale to use for axis labels, ornull
for a default locale.
-
-
Method Details
-
selectedExtentProperty
Returns the property for the currently selected grid extent. This value varies after the user finished to drag the slider.- Returns:
- the currently selected grid extent as a read-only property.
-
getXYDimensions
public final int[] getXYDimensions()Returns the grid dimensions of x and y axes rendered in a two-dimensional image or table. This value is inferred from the grid geometry property value. It is almost always {0,1}, i.e. the 2 first dimensions in a coordinate tuple.- Returns:
- indices of x and y coordinate values in a grid coordinate tuple.
-
getView
Returns the encapsulated JavaFX component to add in a scene graph for making the selectors visible. TheRegion
subclass is implementation dependent and may change in any future SIS version. -
isEmpty
public boolean isEmpty()Returnstrue
if this slice selector has no component to shown. Slice selectors are always empty with two-dimensional data.- Returns:
true
if this slice selector has no component to shown.
-