Class DatasetsWidget

java.lang.Object
gaiasky.interafce.DatasetsWidget

public class DatasetsWidget extends Object
Widget which lists all detected catalogs and offers a way to select them.
  • Field Details

    • cbs

      public OwnCheckBox[] cbs
    • candidates

      public Map<com.badlogic.gdx.scenes.scene2d.ui.Button,​String> candidates
    • types

      public com.badlogic.gdx.utils.Array<DatasetType> types
    • datasets

      public com.badlogic.gdx.utils.Array<DatasetDesc> datasets
  • Constructor Details

    • DatasetsWidget

      public DatasetsWidget(com.badlogic.gdx.scenes.scene2d.Stage ui, com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
  • Method Details

    • reloadLocalCatalogs

      public void reloadLocalCatalogs()
    • buildDatasetsWidget

      public com.badlogic.gdx.scenes.scene2d.Actor buildDatasetsWidget()
    • buildDatasetsWidget

      public com.badlogic.gdx.scenes.scene2d.Actor buildDatasetsWidget(boolean scrollOn)
    • setPadFactor

      public void setPadFactor(float factor)
      This function sets the padding factor of this widget. Call before buildDatasetsWidget().
      Parameters:
      factor - The pad factor
    • buildDatasetsWidget

      public com.badlogic.gdx.scenes.scene2d.Actor buildDatasetsWidget(boolean scrollOn, int maxCharsDescription, float descriptionWidth)
    • findDatasetByDescriptor

      public DatasetDesc findDatasetByDescriptor(Path descriptorFile) throws IOException
      Finds the dataset with the given descriptor file in the dataset descriptor list.
      Parameters:
      descriptorFile - The filename of the descriptor file.
      Returns:
      The dataset descriptor or null if it was not found.
      Throws:
      IOException