org.apache.batik.ext.swing
public class JAffineTransformChooser extends JGridBagPanel
| Nested Class Summary | |
|---|---|
| static class | JAffineTransformChooser.Dialog |
| Field Summary | |
|---|---|
| static String | CONFIG_BOTTOM_PAD |
| static String | CONFIG_LEFT_PAD |
| static String | CONFIG_RIGHT_PAD |
| static String | CONFIG_TEXT_FIELD_WIDTH |
| static String | CONFIG_TOP_PAD |
| protected static double | DEG_TO_RAD |
| static String | LABEL_ANGLE |
| static String | LABEL_DEGREE |
| static String | LABEL_PERCENT |
| static String | LABEL_ROTATE |
| static String | LABEL_RX |
| static String | LABEL_RY |
| static String | LABEL_SCALE |
| static String | LABEL_SX |
| static String | LABEL_SY |
| static String | LABEL_TRANSLATE |
| static String | LABEL_TX |
| static String | LABEL_TY |
| protected DoubleDocument | rotateModel
The Model for the rotation |
| protected DoubleDocument | rxModel
The Model for the x-axis rotation center |
| protected DoubleDocument | ryModel
The Model for the y-axis rotation center |
| protected static double | RAD_TO_DEG |
| protected DoubleDocument | sxModel
The Model for the x-axis scale component |
| protected DoubleDocument | syModel
The Model for the y-axis scale component |
| protected AffineTransform | txf
The AffineTransform value represented by the
chooser |
| protected DoubleDocument | txModel
The Model for the x-axis translate component |
| protected DoubleDocument | tyModel
The Model for the y-axis translate component |
| Constructor Summary | |
|---|---|
| JAffineTransformChooser()
Default constructor | |
| Method Summary | |
|---|---|
| protected void | addToPanelAtRow(String label, Document model, String suffix, JGridBagPanel p, int row) |
| protected void | build()
Adds the control components into this panel. |
| protected Component | buildPanel(String panelName, String tfALabel, Document tfAModel, String tfBLabel, Document tfBModel, String tfASuffix, String tfBSuffix, boolean setBorder) |
| protected Component | buildRotatePanel() |
| static JAffineTransformChooser.Dialog | createDialog(Component cmp, String title)
Creates a new modal dialog box that can be used to
configure an AffineTransform
|
| AffineTransform | getAffineTransform() |
| static void | main(String[] args) |
| void | setAffineTransform(AffineTransform txf) |
| void | setPanelBorder(JComponent panel, String panelName) |
| static AffineTransform | showDialog(Component cmp, String title)
Displays the panel in a modal dialog box. |
Parameters: cmp the dialog's parent component title the dialog's title
Parameters: cmp the dialog's parent component title the dialog's title
Returns: null if the dialog was cancelled. Otherwise, the value entered by the user.