jApp
Class PartFactory
java.lang.Object
jApp.PartFactory
public final class PartFactory
- extends java.lang.Object
Method Summary |
static void |
addComboBoxUpdater(Variable variable,
PartFactory.ComboBoxModel cbm)
|
static void |
addjustToScrollBarSize(javax.swing.JScrollBar scrollbar,
javax.swing.JComponent c)
|
static void |
attachWindow(javax.swing.AbstractButton invoker,
java.awt.Window window,
int clicks)
|
static void |
configJToggleButton(javax.swing.JToggleButton b)
|
static PartFactory.ComponentPanel |
createButtonField(PartFactory.Alligner aligner,
java.lang.String title,
int width,
javax.swing.JComponent button)
|
static javax.swing.JPanel |
createCheckBox(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable)
|
static javax.swing.JPanel |
createCheckBox(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable,
double onValue,
double offValue)
|
static javax.swing.JPanel |
createCheckBox(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable,
long onValue,
long offValue)
|
static javax.swing.JPanel |
createCheckBox(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable,
java.lang.Object onValue,
java.lang.Object offValue)
|
static PartFactory.ComponentPanel |
createColorButton(PartFactory.Alligner aligner,
java.lang.String title,
int width,
ValueInterface variable)
|
static javax.swing.JComboBox |
createComboBox(java.lang.Object[] list)
|
static javax.swing.JPanel |
createComboBox(PartFactory.Alligner aligner,
java.lang.String title,
int width,
javax.swing.JComboBox combox)
|
static PartFactory.ComponentPanel |
createComboBox(PartFactory.Alligner aligner,
java.lang.String title,
Variable variable,
java.lang.Object[] list)
|
static javax.swing.JComboBox |
createComboBox(PartFactory.ComboBoxModel model,
javax.swing.AbstractAction selectAction,
javax.swing.AbstractAction editAction)
|
static PartFactory.ComponentPanel |
createComboBox(java.lang.String title,
PartFactory.Alligner aligner,
PartFactory.ComboBoxModel model,
javax.swing.AbstractAction selectAction,
javax.swing.AbstractAction editAction)
|
static PartFactory.ComponentPanel |
createEntryField(PartFactory.Alligner aligner,
java.lang.String title,
int width,
java.text.Format format,
ValueInterface variable,
Unit unit)
|
static PartFactory.ComponentPanel |
createEntryField(PartFactory.Alligner aligner,
java.lang.String title,
int width,
java.text.Format format,
ValueInterface variable,
Unit unit,
boolean liveUpdate)
|
static javax.swing.JPanel |
createFontComboBox(PartFactory.Alligner aligner,
java.lang.String title,
Variable variable)
|
static javax.swing.border.Border |
createFrame()
|
static javax.swing.border.Border |
createFrame(java.lang.String title)
|
static PartFactory.ComponentPanel |
createHorizontalBox()
|
static PartFactory.ComponentPanel |
createHorizontalBox(javax.swing.JComponent comp)
|
static PartFactory.ComponentPanel |
createHorizontalBox(java.lang.String title)
|
static javax.swing.JPanel |
createPathEntryField(Application app,
PartFactory.Alligner aligner,
java.lang.String fieldtitle,
java.lang.String browsetitle,
int mode,
ValueInterface variable,
int width)
|
static javax.swing.JPopupMenu |
createPopupMenu()
|
static javax.swing.JPopupMenu |
createPopupMenu(javax.swing.JComponent c)
|
static javax.swing.JPopupMenu |
createPopupMenu(javax.swing.JComponent c,
boolean isPrimaryFunction)
|
static javax.swing.JToggleButton |
createRadioButton(javax.swing.ImageIcon icon,
int borderWidth,
java.awt.Insets insets,
ValueInterface variable,
long value)
|
static javax.swing.JPanel |
createRadioButton(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable,
double value)
|
static javax.swing.JPanel |
createRadioButton(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable,
long value)
|
static javax.swing.JPanel |
createRadioButton(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable,
java.lang.Object value)
|
static java.text.Format |
createStringFormat()
|
static javax.swing.JPanel |
createTableEditor(javax.swing.JTable table,
java.util.Vector actions)
|
static javax.swing.JToggleButton |
createToggleButton(javax.swing.ImageIcon icon,
ValueInterface variable,
boolean polarity)
|
static javax.swing.JPanel |
createToggleButtonXX(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable)
|
static PartFactory.ComponentPanel |
createVerticalBox()
|
static PartFactory.ComponentPanel |
createVerticalBox(javax.swing.JComponent comp)
|
static PartFactory.ComponentPanel |
createVerticalBox(java.lang.String title)
|
static javax.swing.JPanel |
createZoomPane(javax.swing.JPanel view,
java.util.LinkedList vcomps,
java.util.LinkedList hcomps,
javax.swing.JComponent corner)
|
static java.lang.String |
getImagesPath()
|
static java.awt.Cursor |
loadCursor(java.lang.Class classObject,
java.lang.String name,
java.awt.Point hotSpot)
|
static javax.swing.ImageIcon |
loadIcon(java.lang.Class classObject,
java.lang.String name)
|
static javax.swing.ImageIcon |
loadIcon(java.lang.String name)
|
static java.awt.Image |
loadImage(java.lang.Class classObject,
java.lang.String name)
|
static java.awt.Image |
loadImage(java.lang.String name)
|
static void |
setImageIconClass(java.lang.Class c)
|
static void |
setImagesPath(java.lang.String path)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartFactory
public PartFactory()
getImagesPath
public static java.lang.String getImagesPath()
setImagesPath
public static void setImagesPath(java.lang.String path)
createToggleButtonXX
public static javax.swing.JPanel createToggleButtonXX(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable)
createCheckBox
public static javax.swing.JPanel createCheckBox(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable)
createCheckBox
public static javax.swing.JPanel createCheckBox(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable,
double onValue,
double offValue)
createCheckBox
public static javax.swing.JPanel createCheckBox(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable,
long onValue,
long offValue)
createCheckBox
public static javax.swing.JPanel createCheckBox(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable,
java.lang.Object onValue,
java.lang.Object offValue)
createRadioButton
public static javax.swing.JToggleButton createRadioButton(javax.swing.ImageIcon icon,
int borderWidth,
java.awt.Insets insets,
ValueInterface variable,
long value)
createRadioButton
public static javax.swing.JPanel createRadioButton(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable,
double value)
createRadioButton
public static javax.swing.JPanel createRadioButton(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable,
long value)
createRadioButton
public static javax.swing.JPanel createRadioButton(PartFactory.Alligner aligner,
java.lang.String title,
ValueInterface variable,
java.lang.Object value)
createButtonField
public static PartFactory.ComponentPanel createButtonField(PartFactory.Alligner aligner,
java.lang.String title,
int width,
javax.swing.JComponent button)
createColorButton
public static PartFactory.ComponentPanel createColorButton(PartFactory.Alligner aligner,
java.lang.String title,
int width,
ValueInterface variable)
createEntryField
public static PartFactory.ComponentPanel createEntryField(PartFactory.Alligner aligner,
java.lang.String title,
int width,
java.text.Format format,
ValueInterface variable,
Unit unit)
createEntryField
public static PartFactory.ComponentPanel createEntryField(PartFactory.Alligner aligner,
java.lang.String title,
int width,
java.text.Format format,
ValueInterface variable,
Unit unit,
boolean liveUpdate)
createComboBox
public static javax.swing.JPanel createComboBox(PartFactory.Alligner aligner,
java.lang.String title,
int width,
javax.swing.JComboBox combox)
createPathEntryField
public static javax.swing.JPanel createPathEntryField(Application app,
PartFactory.Alligner aligner,
java.lang.String fieldtitle,
java.lang.String browsetitle,
int mode,
ValueInterface variable,
int width)
createVerticalBox
public static PartFactory.ComponentPanel createVerticalBox(java.lang.String title)
createVerticalBox
public static PartFactory.ComponentPanel createVerticalBox()
createVerticalBox
public static PartFactory.ComponentPanel createVerticalBox(javax.swing.JComponent comp)
createHorizontalBox
public static PartFactory.ComponentPanel createHorizontalBox(java.lang.String title)
createHorizontalBox
public static PartFactory.ComponentPanel createHorizontalBox()
createHorizontalBox
public static PartFactory.ComponentPanel createHorizontalBox(javax.swing.JComponent comp)
createFrame
public static javax.swing.border.Border createFrame()
createFrame
public static javax.swing.border.Border createFrame(java.lang.String title)
loadImage
public static java.awt.Image loadImage(java.lang.String name)
loadImage
public static java.awt.Image loadImage(java.lang.Class classObject,
java.lang.String name)
setImageIconClass
public static void setImageIconClass(java.lang.Class c)
loadIcon
public static javax.swing.ImageIcon loadIcon(java.lang.String name)
loadIcon
public static javax.swing.ImageIcon loadIcon(java.lang.Class classObject,
java.lang.String name)
loadCursor
public static java.awt.Cursor loadCursor(java.lang.Class classObject,
java.lang.String name,
java.awt.Point hotSpot)
addjustToScrollBarSize
public static void addjustToScrollBarSize(javax.swing.JScrollBar scrollbar,
javax.swing.JComponent c)
createPopupMenu
public static javax.swing.JPopupMenu createPopupMenu(javax.swing.JComponent c)
createPopupMenu
public static javax.swing.JPopupMenu createPopupMenu(javax.swing.JComponent c,
boolean isPrimaryFunction)
createPopupMenu
public static javax.swing.JPopupMenu createPopupMenu()
createZoomPane
public static javax.swing.JPanel createZoomPane(javax.swing.JPanel view,
java.util.LinkedList vcomps,
java.util.LinkedList hcomps,
javax.swing.JComponent corner)
createTableEditor
public static javax.swing.JPanel createTableEditor(javax.swing.JTable table,
java.util.Vector actions)
createStringFormat
public static java.text.Format createStringFormat()
createComboBox
public static javax.swing.JComboBox createComboBox(PartFactory.ComboBoxModel model,
javax.swing.AbstractAction selectAction,
javax.swing.AbstractAction editAction)
createComboBox
public static PartFactory.ComponentPanel createComboBox(java.lang.String title,
PartFactory.Alligner aligner,
PartFactory.ComboBoxModel model,
javax.swing.AbstractAction selectAction,
javax.swing.AbstractAction editAction)
createComboBox
public static javax.swing.JComboBox createComboBox(java.lang.Object[] list)
createComboBox
public static PartFactory.ComponentPanel createComboBox(PartFactory.Alligner aligner,
java.lang.String title,
Variable variable,
java.lang.Object[] list)
createFontComboBox
public static javax.swing.JPanel createFontComboBox(PartFactory.Alligner aligner,
java.lang.String title,
Variable variable)
attachWindow
public static void attachWindow(javax.swing.AbstractButton invoker,
java.awt.Window window,
int clicks)
addComboBoxUpdater
public static void addComboBoxUpdater(Variable variable,
PartFactory.ComboBoxModel cbm)
configJToggleButton
public static void configJToggleButton(javax.swing.JToggleButton b)
createToggleButton
public static javax.swing.JToggleButton createToggleButton(javax.swing.ImageIcon icon,
ValueInterface variable,
boolean polarity)