|
Gridarta Editor
|
Displays a dialog asking for parameters for the "tile stretching set" function. More...
Collaboration diagram for net.sf.gridarta.mainactions.TileStretchingDialog:Public Member Functions | |
| int | getHeightValue () |
| Returns the height value. More... | |
| Integer [] | getSubLayers () |
| Returns the sub-layers to affect. More... | |
| boolean | isTileStretchingAbsolute () |
| Action method for "absolute" action. More... | |
| void | setTileStretchingAbsolute (final boolean isAbsolute) |
| Action method for "absolute" action. More... | |
| boolean | showTileStretchingDialog (@NotNull final Component parent) |
| Displays the tile stretching dialog. More... | |
| void | tileStretchingCancel () |
| Action method to close the dialog with "Cancel". More... | |
| TileStretchingDialog () | |
| Creates a new instance. More... | |
| void | tileStretchingOkay () |
| Action method to close the dialog with "OK". More... | |
Private Member Functions | |
| boolean | isOkButtonEnabled () |
| Returns whether the "OK" button is enabled. More... | |
| void | updateOkButton () |
| Updates the enabled state of the "OK" button depending on the dialog's contents. More... | |
Private Attributes | |
| final JButton | cancelButton = new JButton(ACTION_BUILDER.createAction(false, "tileStretchingCancel", this)) |
| The "Cancel" button. More... | |
| JDialog | dialog |
| The JDialog instance or. More... | |
| final JTextComponent | heightValueTextField = new JTextField(16) |
| The text field for specifying the height value. More... | |
| boolean | isAbsolute |
| Whether adjacent squares are checked. More... | |
| final JButton | okButton = new JButton(ACTION_BUILDER.createAction(false, "tileStretchingOkay", this)) |
| The "OK" button. More... | |
| final JOptionPane | optionPane = new JOptionPane() |
| The JOptionPane instance used to create dialogs. More... | |
| final JTextComponent | subLayerTextField = new JTextField(16) |
| The text field for specifying the sub-layer value. More... | |
| final WindowListener | windowListener |
| The WindowListener attached to dialog to call JOptionPane#selectInitialValue() after the dialog has been shown. More... | |
Static Private Attributes | |
| static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
| Action Builder to create Actions. More... | |
Displays a dialog asking for parameters for the "tile stretching set" function.
Definition at line 53 of file TileStretchingDialog.java.
| net.sf.gridarta.mainactions.TileStretchingDialog.TileStretchingDialog | ( | ) |
Creates a new instance.
Definition at line 105 of file TileStretchingDialog.java.
References net.sf.gridarta.gui.utils.GUIConstants.DIALOG_BORDER, net.sf.gridarta.utils.ActionBuilderUtils.getBoolean(), net.sf.gridarta.utils.ActionBuilderUtils.getString(), net.sf.gridarta.utils.ActionBuilderUtils.newLabel(), net.sf.gridarta.mainactions.TileStretchingDialog.okButton, net.sf.gridarta.gui.utils.TextComponentUtils.setAutoSelectOnFocus(), and net.sf.gridarta.mainactions.TileStretchingDialog.updateOkButton().
Here is the call graph for this function:| int net.sf.gridarta.mainactions.TileStretchingDialog.getHeightValue | ( | ) |
Returns the height value.
Definition at line 271 of file TileStretchingDialog.java.
References net.sf.gridarta.utils.NumberUtils.parseInt().
Here is the call graph for this function:
Here is the caller graph for this function:| Integer [] net.sf.gridarta.mainactions.TileStretchingDialog.getSubLayers | ( | ) |
Returns the sub-layers to affect.
Definition at line 280 of file TileStretchingDialog.java.
References net.sf.gridarta.utils.NumberUtils.parseInt().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Returns whether the "OK" button is enabled.
Definition at line 263 of file TileStretchingDialog.java.
Referenced by net.sf.gridarta.mainactions.TileStretchingDialog.showTileStretchingDialog(), net.sf.gridarta.mainactions.TileStretchingDialog.tileStretchingOkay(), and net.sf.gridarta.mainactions.TileStretchingDialog.updateOkButton().
Here is the caller graph for this function:| boolean net.sf.gridarta.mainactions.TileStretchingDialog.isTileStretchingAbsolute | ( | ) |
Action method for "absolute" action.
Definition at line 238 of file TileStretchingDialog.java.
References net.sf.gridarta.mainactions.TileStretchingDialog.isAbsolute.
Here is the caller graph for this function:| void net.sf.gridarta.mainactions.TileStretchingDialog.setTileStretchingAbsolute | ( | final boolean | isAbsolute | ) |
Action method for "absolute" action.
| isAbsolute | whether the checkbox is checked |
Definition at line 247 of file TileStretchingDialog.java.
References net.sf.gridarta.mainactions.TileStretchingDialog.isAbsolute.
| boolean net.sf.gridarta.mainactions.TileStretchingDialog.showTileStretchingDialog | ( | @NotNull final Component | parent | ) |
Displays the tile stretching dialog.
| parent | the parent component for the dialog |
Definition at line 205 of file TileStretchingDialog.java.
References net.sf.gridarta.mainactions.TileStretchingDialog.dialog, net.sf.gridarta.utils.ActionBuilderUtils.getString(), net.sf.gridarta.mainactions.TileStretchingDialog.isOkButtonEnabled(), and net.sf.gridarta.mainactions.TileStretchingDialog.okButton.
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.mainactions.TileStretchingDialog.tileStretchingCancel | ( | ) |
Action method to close the dialog with "Cancel".
Definition at line 255 of file TileStretchingDialog.java.
| void net.sf.gridarta.mainactions.TileStretchingDialog.tileStretchingOkay | ( | ) |
Action method to close the dialog with "OK".
Definition at line 227 of file TileStretchingDialog.java.
References net.sf.gridarta.mainactions.TileStretchingDialog.isOkButtonEnabled().
Here is the call graph for this function:
|
private |
Updates the enabled state of the "OK" button depending on the dialog's contents.
Definition at line 196 of file TileStretchingDialog.java.
References net.sf.gridarta.mainactions.TileStretchingDialog.isOkButtonEnabled().
Referenced by net.sf.gridarta.mainactions.TileStretchingDialog.TileStretchingDialog().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Action Builder to create Actions.
Definition at line 59 of file TileStretchingDialog.java.
|
private |
The "Cancel" button.
Definition at line 77 of file TileStretchingDialog.java.
|
private |
The JDialog instance or.
if not yet created.
Definition at line 95 of file TileStretchingDialog.java.
Referenced by net.sf.gridarta.mainactions.TileStretchingDialog.showTileStretchingDialog().
|
private |
The text field for specifying the height value.
Definition at line 83 of file TileStretchingDialog.java.
|
private |
Whether adjacent squares are checked.
Definition at line 100 of file TileStretchingDialog.java.
Referenced by net.sf.gridarta.mainactions.TileStretchingDialog.isTileStretchingAbsolute(), and net.sf.gridarta.mainactions.TileStretchingDialog.setTileStretchingAbsolute().
|
private |
The "OK" button.
Definition at line 71 of file TileStretchingDialog.java.
Referenced by net.sf.gridarta.mainactions.TileStretchingDialog.showTileStretchingDialog(), and net.sf.gridarta.mainactions.TileStretchingDialog.TileStretchingDialog().
|
private |
The JOptionPane instance used to create dialogs.
Definition at line 65 of file TileStretchingDialog.java.
|
private |
The text field for specifying the sub-layer value.
Definition at line 89 of file TileStretchingDialog.java.
|
private |
The WindowListener attached to dialog to call JOptionPane#selectInitialValue() after the dialog has been shown.
Definition at line 151 of file TileStretchingDialog.java.