Package com.inductiveautomation.rm.app
Class FontPanel
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.app.FontPanel
This class is a Swing/Ribs Font panel for selecting fonts. It lets the user easily select a font family,
font size and font style (bold, italic, underline, outline). It also has a convenient slider for interactively
changing the size and a text field for specifically setting a size. In addition, there is a pick list that
shows all the individual fonts available for a given family.
-
Field Summary
Fields inherited from class com.inductiveautomation.snap.ui.UIOwner
DragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name for the inspector window.protected void
initUI()
Initialize Swing UI panel.void
resetUI()
Reset Swing UI from the current selection.void
respondUI
(SwingEvent anEvent) Respond to UI controls.Methods inherited from class com.inductiveautomation.snap.swing.SwingOwner
addKeyActionEvent, createTimer, createUI, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisible
Methods inherited from class com.inductiveautomation.snap.ui.UIOwner
addNodeBinding, disableEvents, enableEvents, getBindingModelValue, getBindingNodeValue, getConversionMap, getConversionMapKey, getConversionMaps, getConversionMapValue, getFirstFocus, getModelValue, getNode, getNodeAction, getNodeBoolValue, getNodeFloatValue, getNodeIntValue, getNodeItemDisplayKey, getNodeItems, getNodeSelectedIndex, getNodeSelectedItem, getNodeStringValue, getNodeText, getNodeValue, getUI, getUIHpr, initUI, isNodeEnabled, isNodeValueAdjusting, isSendEventDisabled, isUISet, processResetUI, processRespondUI, resetLater, resetNodeBindings, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
-
Constructor Details
-
FontPanel
public FontPanel()
-
-
Method Details
-
initUI
protected void initUI()Initialize Swing UI panel.- Overrides:
initUI
in classUIOwner<SwingEvent,
JComponent>
-
resetUI
public void resetUI()Reset Swing UI from the current selection.- Overrides:
resetUI
in classUIOwner<SwingEvent,
JComponent>
-
respondUI
Respond to UI controls.- Overrides:
respondUI
in classUIOwner<SwingEvent,
JComponent>
-
getWindowTitle
Returns the name for the inspector window.
-