Package jmri.jmrit.display
Class PositionablePropertiesUtil
- java.lang.Object
-
- jmri.jmrit.display.PositionablePropertiesUtil
-
public class PositionablePropertiesUtil extends java.lang.Object
Creates the UI to set the properties of a range of Positionable Icons on (Control) Panels.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
PositionablePropertiesUtil.TextDetails
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String[]
_justification
(package private) javax.swing.JComboBox<java.lang.String>
_justificationCombo
protected Positionable
_parent
(package private) javax.swing.JComponent
_textPanel
(package private) javax.swing.JCheckBox
autoWidth
(package private) javax.swing.JSpinner
borderSizeTextSpin
(package private) javax.swing.JPanel
detailpanel
protected javax.swing.JList<java.lang.String>
fontSizeChoice
(package private) javax.swing.JTextField
fontSizeField
protected java.lang.String[]
fontSizes
(package private) javax.swing.JSpinner
heightSizeTextSpin
(package private) javax.swing.JSpinner
marginSizeTextSpin
(package private) java.awt.Frame
mFrame
(package private) PositionablePopupUtil
pop
(package private) java.awt.event.ActionListener
previewActionListener
(package private) javax.swing.event.ChangeListener
previewChangeListener
(package private) java.awt.event.KeyListener
previewKeyActionListener
(package private) javax.swing.JTabbedPane
propertiesPanel
(package private) javax.swing.event.ChangeListener
spinnerChangeListener
(package private) java.awt.event.FocusListener
textFieldFocus
(package private) javax.swing.JSpinner
widthSizeTextSpin
(package private) javax.swing.JSpinner
xPositionTextSpin
(package private) javax.swing.JSpinner
yPositionTextSpin
-
Constructor Summary
Constructors Constructor Description PositionablePropertiesUtil(Positionable p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
borderPanel()
Create and fill in the Border tab of the UI.(package private) void
cancelButton()
void
display()
(package private) void
editText()
Create and fill in the Contents tab of the UI (Text Label objects).(package private) void
fontApply()
(package private) javax.swing.JSpinner
getSpinner(int value, java.lang.String tooltip)
int
maxHeight(javax.swing.JLabel tmp)
(package private) int
maxWidth(javax.swing.JLabel tmp)
(package private) void
preview()
(package private) void
sizePosition()
Create and fill in the Size & Position tab of the UI.(package private) void
textPanel()
Create and fill in the Font (Decoration) tab of the UI.
-
-
-
Field Detail
-
mFrame
java.awt.Frame mFrame
-
_parent
protected Positionable _parent
-
detailpanel
javax.swing.JPanel detailpanel
-
propertiesPanel
javax.swing.JTabbedPane propertiesPanel
-
_textPanel
javax.swing.JComponent _textPanel
-
fontSizeField
javax.swing.JTextField fontSizeField
-
_justification
java.lang.String[] _justification
-
_justificationCombo
javax.swing.JComboBox<java.lang.String> _justificationCombo
-
previewActionListener
java.awt.event.ActionListener previewActionListener
-
spinnerChangeListener
javax.swing.event.ChangeListener spinnerChangeListener
-
textFieldFocus
java.awt.event.FocusListener textFieldFocus
-
previewKeyActionListener
java.awt.event.KeyListener previewKeyActionListener
-
previewChangeListener
javax.swing.event.ChangeListener previewChangeListener
-
borderSizeTextSpin
javax.swing.JSpinner borderSizeTextSpin
-
marginSizeTextSpin
javax.swing.JSpinner marginSizeTextSpin
-
xPositionTextSpin
javax.swing.JSpinner xPositionTextSpin
-
yPositionTextSpin
javax.swing.JSpinner yPositionTextSpin
-
widthSizeTextSpin
javax.swing.JSpinner widthSizeTextSpin
-
heightSizeTextSpin
javax.swing.JSpinner heightSizeTextSpin
-
autoWidth
javax.swing.JCheckBox autoWidth
-
fontSizeChoice
protected javax.swing.JList<java.lang.String> fontSizeChoice
-
fontSizes
protected java.lang.String[] fontSizes
-
-
Constructor Detail
-
PositionablePropertiesUtil
PositionablePropertiesUtil(Positionable p)
-
-
Method Detail
-
display
public void display()
-
textPanel
void textPanel()
Create and fill in the Font (Decoration) tab of the UI.
-
borderPanel
void borderPanel()
Create and fill in the Border tab of the UI.
-
editText
void editText()
Create and fill in the Contents tab of the UI (Text Label objects).
-
sizePosition
void sizePosition()
Create and fill in the Size & Position tab of the UI.
-
fontApply
void fontApply()
-
cancelButton
void cancelButton()
-
preview
void preview()
-
maxWidth
int maxWidth(javax.swing.JLabel tmp)
-
maxHeight
public int maxHeight(javax.swing.JLabel tmp)
-
getSpinner
javax.swing.JSpinner getSpinner(int value, java.lang.String tooltip)
-
-