Package org.apache.sis.gui.coverage
Class GridSliceSelector
- 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
Defined in the sis-javafx module
- 
Property SummaryPropertiesTypePropertyDescriptionfinal ReadOnlyProperty<GridExtent>Returns the property for the currently selected grid extent.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal ObjectProperty<GridGeometry>The grid geometry for which to provide sliders.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal RegiongetView()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.booleanisEmpty()Returnstrueif this slice selector has no component to shown.final ReadOnlyProperty<GridExtent>Returns the property for the currently selected grid extent.Methods inherited from class WidgetgetLocale
- 
Property Details- 
selectedExtentReturns the property for the currently selected grid extent. This value varies after the user finished to drag the slider.- See Also:
 
 
- 
- 
Field Details- 
gridGeometryThe grid geometry for which to provide sliders.
 
- 
- 
Constructor Details- 
GridSliceSelectorCreates a new widget.- Parameters:
- locale- the locale to use for axis labels, or- nullfor a default locale.
 
 
- 
- 
Method Details- 
selectedExtentPropertyReturns 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.
 
- 
getXYDimensionspublic 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.
 
- 
getViewpublic final Region getView()Returns the encapsulated JavaFX component to add in a scene graph for making the selectors visible. TheRegionsubclass is implementation dependent and may change in any future SIS version.
- 
isEmptypublic boolean isEmpty()Returnstrueif this slice selector has no component to shown. Slice selectors are always empty with two-dimensional data.- Returns:
- trueif this slice selector has no component to shown.
 
 
-