Class EnableCheckFactory


  • public class EnableCheckFactory
    extends Object
    Creates basic EnableChecks.
    See Also:
    EnableCheck
    • Method Detail

      • createTaskWindowMustBeActiveCheck

        public EnableCheck createTaskWindowMustBeActiveCheck()
      • createWindowWithSelectionManagerMustBeActiveCheck

        public EnableCheck createWindowWithSelectionManagerMustBeActiveCheck()
      • createWindowWithLayerManagerMustBeActiveCheck

        public EnableCheck createWindowWithLayerManagerMustBeActiveCheck()
      • createWindowWithAssociatedTaskFrameMustBeActiveCheck

        public EnableCheck createWindowWithAssociatedTaskFrameMustBeActiveCheck()
      • createWindowWithLayerNamePanelMustBeActiveCheck

        public EnableCheck createWindowWithLayerNamePanelMustBeActiveCheck()
      • createWindowWithLayerViewPanelMustBeActiveCheck

        public EnableCheck createWindowWithLayerViewPanelMustBeActiveCheck()
      • createOnlyOneLayerMayHaveSelectedFeaturesCheck

        public EnableCheck createOnlyOneLayerMayHaveSelectedFeaturesCheck()
      • createOnlyOneLayerMayHaveSelectedItemsCheck

        public EnableCheck createOnlyOneLayerMayHaveSelectedItemsCheck()
      • createSelectedItemsLayersMustBeEditableCheck

        public EnableCheck createSelectedItemsLayersMustBeEditableCheck()
      • createExactlyNCategoriesMustBeSelectedCheck

        public EnableCheck createExactlyNCategoriesMustBeSelectedCheck​(int n)
      • createExactlyNLayerablesMustBeSelectedCheck

        public EnableCheck createExactlyNLayerablesMustBeSelectedCheck​(int n,
                                                                       Class layerableClass)
      • createExactlyNLayersMustBeSelectedCheck

        public EnableCheck createExactlyNLayersMustBeSelectedCheck​(int n)
      • createAtLeastNCategoriesMustBeSelectedCheck

        public EnableCheck createAtLeastNCategoriesMustBeSelectedCheck​(int n)
      • createAtLeastNLayerablesMustBeSelectedCheck

        public EnableCheck createAtLeastNLayerablesMustBeSelectedCheck​(int n,
                                                                       Class layerableClass)
      • createAtLeastNLayersMustBeSelectedCheck

        public EnableCheck createAtLeastNLayersMustBeSelectedCheck​(int n)
      • createAtLeastNLayersMustBeEditableCheck

        public EnableCheck createAtLeastNLayersMustBeEditableCheck​(int n)
      • createAtLeastOneVisibleLayersMustBeEditableCheck

        public EnableCheck createAtLeastOneVisibleLayersMustBeEditableCheck()
      • createExactlyOneSelectedLayerMustBeEditableCheck

        public EnableCheck createExactlyOneSelectedLayerMustBeEditableCheck()
      • createAtLeastNLayerablesMustExistCheck

        public EnableCheck createAtLeastNLayerablesMustExistCheck​(int n)
      • createAtLeastNLayersMustExistCheck

        public EnableCheck createAtLeastNLayersMustExistCheck​(int n)
      • createAtMostNLayersMustExistCheck

        public EnableCheck createAtMostNLayersMustExistCheck​(int n)
      • createExactlyNVectorsMustBeDrawnCheck

        public EnableCheck createExactlyNVectorsMustBeDrawnCheck​(int n)
      • createAtLeastNVectorsMustBeDrawnCheck

        public EnableCheck createAtLeastNVectorsMustBeDrawnCheck​(int n)
      • createAtLeastNFeaturesMustBeSelectedCheck

        public EnableCheck createAtLeastNFeaturesMustBeSelectedCheck​(int n)
      • createAtLeastNItemsMustBeSelectedCheck

        public EnableCheck createAtLeastNItemsMustBeSelectedCheck​(int n)
      • createExactlyNFeaturesMustBeSelectedCheck

        public EnableCheck createExactlyNFeaturesMustBeSelectedCheck​(int n)
      • createExactlyNItemsMustBeSelectedCheck

        public EnableCheck createExactlyNItemsMustBeSelectedCheck​(int n)
      • createExactlyNLayersMustHaveSelectedItemsCheck

        public EnableCheck createExactlyNLayersMustHaveSelectedItemsCheck​(int n)
      • createExactlyNFeaturesMustHaveSelectedItemsCheck

        public EnableCheck createExactlyNFeaturesMustHaveSelectedItemsCheck​(int n)
      • createSelectedLayersMustBeEditableCheck

        public EnableCheck createSelectedLayersMustBeEditableCheck()
      • createSelectedLayersMustNotBeEmpty

        public EnableCheck createSelectedLayersMustNotBeEmpty()
      • createFenceMustBeDrawnCheck

        public EnableCheck createFenceMustBeDrawnCheck()
      • createBetweenNAndMVectorsMustBeDrawnCheck

        public EnableCheck createBetweenNAndMVectorsMustBeDrawnCheck​(int min,
                                                                     int max)
      • createAtLeastNFeaturesMustHaveSelectedItemsCheck

        public EnableCheck createAtLeastNFeaturesMustHaveSelectedItemsCheck​(int n)
      • createSelectedLayerablesMustBeEither

        public EnableCheck createSelectedLayerablesMustBeEither​(Class[] classes,
                                                                Class[] excluded)
        Check the current selection in layernamepanel against 2 lists of layerable classes. Returns an error message if at least one layerable is not an instance of the first class array or if at least one layerable is an instance of the second class array.
        Parameters:
        classes - layerables must all be instances of one of these classes
        excluded - no layerable must be an instances of one of these classes
        Returns:
        error message or null
      • createSelectedLayerablesMustBeEither

        public EnableCheck createSelectedLayerablesMustBeEither​(Class[] classes)
      • createSelectedLayerablesMustBeWMSLayers

        public EnableCheck createSelectedLayerablesMustBeWMSLayers()
      • createSelectedLayerablesMustBeRasterImageLayers

        public EnableCheck createSelectedLayerablesMustBeRasterImageLayers()
      • createSelectedLayerablesMustBeReferencedImagesLayers

        public EnableCheck createSelectedLayerablesMustBeReferencedImagesLayers()
      • createRasterImageLayerExactlyNBandsMustExistCheck

        public EnableCheck createRasterImageLayerExactlyNBandsMustExistCheck​(int n)
        Giuseppe Aruta - 2015-01-13 RasterImageLayer.class checks how many bands a Raster Image Layer (Sextante) has
      • createAtLeastNLayerablesOfTypeMustExistCheck

        public EnableCheck createAtLeastNLayerablesOfTypeMustExistCheck​(int n,
                                                                        Class<? extends Layerable> type)
        Check that at least n layerables of a type (Layer.class, RasterImageLayer.class, WMSLayer.class, etc) have been loaded
        Parameters:
        n - number of needed layerables
        type - implementation of Layerable (RasterImageLayer.class, Layer.class, WMSLayer.class, etc)
        Returns:
        error message or null