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 classPositionablePropertiesUtil.TextDetails
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String[]_justification(package private) javax.swing.JComboBox<java.lang.String>_justificationComboprotected Positionable_parent(package private) javax.swing.JComponent_textPanel(package private) javax.swing.JCheckBoxautoWidth(package private) javax.swing.JSpinnerborderSizeTextSpin(package private) javax.swing.JPaneldetailpanelprotected javax.swing.JList<java.lang.String>fontSizeChoice(package private) javax.swing.JTextFieldfontSizeFieldprotected java.lang.String[]fontSizes(package private) javax.swing.JSpinnerheightSizeTextSpin(package private) javax.swing.JSpinnermarginSizeTextSpin(package private) java.awt.FramemFrame(package private) PositionablePopupUtilpop(package private) java.awt.event.ActionListenerpreviewActionListener(package private) javax.swing.event.ChangeListenerpreviewChangeListener(package private) java.awt.event.KeyListenerpreviewKeyActionListener(package private) javax.swing.JTabbedPanepropertiesPanel(package private) javax.swing.event.ChangeListenerspinnerChangeListener(package private) java.awt.event.FocusListenertextFieldFocus(package private) javax.swing.JSpinnerwidthSizeTextSpin(package private) javax.swing.JSpinnerxPositionTextSpin(package private) javax.swing.JSpinneryPositionTextSpin
-
Constructor Summary
Constructors Constructor Description PositionablePropertiesUtil(Positionable p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidborderPanel()Create and fill in the Border tab of the UI.(package private) voidcancelButton()voiddisplay()(package private) voideditText()Create and fill in the Contents tab of the UI (Text Label objects).(package private) voidfontApply()(package private) javax.swing.JSpinnergetSpinner(int value, java.lang.String tooltip)intmaxHeight(javax.swing.JLabel tmp)(package private) intmaxWidth(javax.swing.JLabel tmp)(package private) voidpreview()(package private) voidsizePosition()Create and fill in the Size & Position tab of the UI.(package private) voidtextPanel()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)
-
-