Package net.sf.gridarta.mainactions
Class RandomFillDialog
- java.lang.Object
-
- net.sf.gridarta.mainactions.RandomFillDialog
-
public class RandomFillDialog extends java.lang.ObjectDisplays a dialog asking for parameters for the "random fill" function.
-
-
Constructor Summary
Constructors Constructor Description RandomFillDialog()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFillDensity()Returns the fill density.booleanisRandomFillSkipAdjacentSquares()Action method for "skip adjacent squares" action.voidrandomFillCancel()Action method to close the dialog with "Cancel".voidrandomFillOkay()Action method to close the dialog with "OK".voidsetRandomFillSkipAdjacentSquares(boolean skipAdjacentSquares)Action method for "skip adjacent squares" action.booleanshowRandomFillDialog(@NotNull java.awt.Component parent)Displays the random fill dialog.
-
-
-
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
-
-