Class RandomFillDialog


  • public class RandomFillDialog
    extends java.lang.Object
    Displays a dialog asking for parameters for the "random fill" function.
    • Constructor Detail

      • RandomFillDialog

        public RandomFillDialog()
        Creates a new instance.
    • Method Detail

      • showRandomFillDialog

        public boolean showRandomFillDialog​(@NotNull
                                            @NotNull java.awt.Component parent)
        Displays the random fill dialog.
        Parameters:
        parent - the parent component for the dialog
        Returns:
        whether the dialog was closed with "OK"
      • randomFillOkay

        @ActionMethod
        public void randomFillOkay()
        Action method to close the dialog with "OK".
      • isRandomFillSkipAdjacentSquares

        @ActionMethod
        public boolean isRandomFillSkipAdjacentSquares()
        Action method for "skip adjacent squares" action.
        Returns:
        whether the checkbox is checked
      • setRandomFillSkipAdjacentSquares

        @ActionMethod
        public void setRandomFillSkipAdjacentSquares​(boolean skipAdjacentSquares)
        Action method for "skip adjacent squares" action.
        Parameters:
        skipAdjacentSquares - whether the checkbox is checked
      • randomFillCancel

        @ActionMethod
        public void randomFillCancel()
        Action method to close the dialog with "Cancel".
      • getFillDensity

        public int getFillDensity()
        Returns the fill density.
        Returns:
        the fill density