public class ToolsSwingUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ICON_DESCRIPTION |
static int |
ICON_GROUP |
static int |
ICON_NAME |
static int |
ICON_SUBGROUP |
static int |
RELATIVE_TO_DESKTOPPANE |
static int |
RELATIVE_TO_SCREEN |
Modifier and Type | Method and Description |
---|---|
static void |
addInitComponentsListener(javax.swing.JComponent c,
InitComponentsListener l) |
static void |
addWindowClosedListener(javax.swing.JComponent c,
java.awt.event.ActionListener listener) |
static int |
cols2px(int cols) |
static javax.swing.AbstractButton |
configurePickersButton(javax.swing.AbstractButton button,
java.lang.String tip,
java.lang.String image,
java.awt.event.ActionListener actionListener,
java.awt.event.FocusListener focusListener) |
static javax.swing.JSplitPane |
createHorizontalSplit(javax.swing.JPanel container,
javax.swing.JPanel left,
boolean scrollleft,
javax.swing.JPanel right,
boolean scrollright) |
static javax.swing.JSplitPane |
createVerticalSplit(javax.swing.JPanel container,
javax.swing.JPanel top,
boolean scrolltop,
javax.swing.JPanel bottom,
boolean scrollbottom) |
static java.awt.Dimension |
ensureCols(java.awt.Dimension dim,
int cols) |
static java.awt.Dimension |
ensureCols(javax.swing.JComponent comp,
int cols) |
static java.awt.Dimension |
ensureHeightWitdh(Component comp,
int relativeto,
float minHeighPercent,
float minWidthPercent,
float maxHeighPercent,
float maxWidthPercent) |
static java.awt.Dimension |
ensureHeightWitdh(Component comp,
int relativeto,
float minHeighPercent,
float minWidthPercent,
float maxHeighPercent,
float maxWidthPercent,
int minHeigh,
int minWitdh) |
static java.awt.Dimension |
ensureHeightWitdh(java.awt.Dimension dim,
int minHeigh,
int minWitdh,
int maxHeigh,
int maxWitdh) |
static java.awt.Dimension |
ensureHeightWitdh(javax.swing.JComponent comp,
int relativeto,
float minHeighPercent,
float minWidthPercent,
float maxHeighPercent,
float maxWidthPercent) |
static java.awt.Dimension |
ensureHeightWitdh(javax.swing.JComponent comp,
int relativeto,
float minHeighPercent,
float minWidthPercent,
float maxHeighPercent,
float maxWidthPercent,
int minHeigh,
int minWitdh) |
static java.awt.Dimension |
ensureHeightWitdh(javax.swing.JComponent comp,
int minHeigh,
int minWitdh,
int maxHeigh,
int maxWitdh) |
static java.awt.Dimension |
ensureMaxRows(java.awt.Dimension dim,
int rows) |
static java.awt.Dimension |
ensureMaxRows(javax.swing.JComponent comp,
int rows) |
static java.awt.Dimension |
ensureRows(java.awt.Dimension dim,
int rows) |
static java.awt.Dimension |
ensureRows(javax.swing.JComponent comp,
int rows) |
static java.awt.Dimension |
ensureRowsCols(java.awt.Dimension dim,
int rows,
int cols) |
static java.awt.Dimension |
ensureRowsCols(java.awt.Dimension dim,
int minRows,
int minCols,
int maxRows,
int maxCols) |
static java.awt.Dimension |
ensureRowsCols(javax.swing.JComponent comp,
int rows,
int cols) |
static java.awt.Dimension |
ensureRowsCols(javax.swing.JComponent comp,
int minRows,
int minCols,
int maxRows,
int maxCols) |
static java.awt.Component |
findNextFocus() |
static java.awt.Dimension |
getCurrentScreenSize() |
static java.awt.Dimension |
getDesktopPanelSize() |
static javax.swing.ImageIcon |
loadImage(java.lang.Object obj,
java.lang.String imagepath) |
static java.lang.String |
makeTitle(java.lang.String base,
java.lang.String docname,
java.lang.String docname2) |
static void |
registerGroupIconDescription(java.lang.String group,
java.lang.String description) |
static void |
registerGroupIconScreenshot(java.lang.Class klass,
java.lang.String group,
java.lang.String path) |
static boolean |
registerIcons(java.lang.Class klass,
java.lang.String resourcePrefix,
java.lang.String provider,
java.lang.String[]... iconsInfo) |
static void |
registerSubgroupIconDescription(java.lang.String group,
java.lang.String subgroup,
java.lang.String description) |
static void |
registerSubgroupIconScreenshot(java.lang.Class klass,
java.lang.String group,
java.lang.String subgroup,
java.lang.String path) |
static int |
rows2px(int rows) |
static java.awt.Dimension |
rowscols2dimension(int rows,
int cols) |
static java.lang.String |
toHTML(java.lang.String s) |
static void |
waitCursor(java.awt.Component component,
java.lang.Runnable action) |
public static final int ICON_GROUP
public static final int ICON_NAME
public static final int ICON_SUBGROUP
public static final int ICON_DESCRIPTION
public static final int RELATIVE_TO_SCREEN
public static final int RELATIVE_TO_DESKTOPPANE
public static int rows2px(int rows)
public static int cols2px(int cols)
public static java.awt.Dimension rowscols2dimension(int rows, int cols)
public static java.awt.Dimension ensureRowsCols(javax.swing.JComponent comp, int rows, int cols)
public static java.awt.Dimension ensureRowsCols(java.awt.Dimension dim, int rows, int cols)
public static java.awt.Dimension ensureMaxRows(javax.swing.JComponent comp, int rows)
public static java.awt.Dimension ensureMaxRows(java.awt.Dimension dim, int rows)
public static java.awt.Dimension ensureRows(javax.swing.JComponent comp, int rows)
public static java.awt.Dimension ensureRows(java.awt.Dimension dim, int rows)
public static java.awt.Dimension ensureCols(javax.swing.JComponent comp, int cols)
public static java.awt.Dimension ensureCols(java.awt.Dimension dim, int cols)
public static java.awt.Dimension ensureRowsCols(java.awt.Dimension dim, int minRows, int minCols, int maxRows, int maxCols)
public static java.awt.Dimension ensureRowsCols(javax.swing.JComponent comp, int minRows, int minCols, int maxRows, int maxCols)
public static java.awt.Dimension ensureHeightWitdh(java.awt.Dimension dim, int minHeigh, int minWitdh, int maxHeigh, int maxWitdh)
public static java.awt.Dimension ensureHeightWitdh(javax.swing.JComponent comp, int minHeigh, int minWitdh, int maxHeigh, int maxWitdh)
public static javax.swing.JSplitPane createVerticalSplit(javax.swing.JPanel container, javax.swing.JPanel top, boolean scrolltop, javax.swing.JPanel bottom, boolean scrollbottom)
public static javax.swing.JSplitPane createHorizontalSplit(javax.swing.JPanel container, javax.swing.JPanel left, boolean scrollleft, javax.swing.JPanel right, boolean scrollright)
public static javax.swing.ImageIcon loadImage(java.lang.Object obj, java.lang.String imagepath)
public static void waitCursor(java.awt.Component component, java.lang.Runnable action)
public static void addWindowClosedListener(javax.swing.JComponent c, java.awt.event.ActionListener listener)
public static java.awt.Component findNextFocus()
public static javax.swing.AbstractButton configurePickersButton(javax.swing.AbstractButton button, java.lang.String tip, java.lang.String image, java.awt.event.ActionListener actionListener, java.awt.event.FocusListener focusListener)
public static boolean registerIcons(java.lang.Class klass, java.lang.String resourcePrefix, java.lang.String provider, java.lang.String[]... iconsInfo)
public static void registerGroupIconDescription(java.lang.String group, java.lang.String description)
public static void registerGroupIconScreenshot(java.lang.Class klass, java.lang.String group, java.lang.String path)
public static void registerSubgroupIconScreenshot(java.lang.Class klass, java.lang.String group, java.lang.String subgroup, java.lang.String path)
public static void registerSubgroupIconDescription(java.lang.String group, java.lang.String subgroup, java.lang.String description)
public static java.awt.Dimension getCurrentScreenSize()
public static java.awt.Dimension getDesktopPanelSize()
public static java.awt.Dimension ensureHeightWitdh(Component comp, int relativeto, float minHeighPercent, float minWidthPercent, float maxHeighPercent, float maxWidthPercent, int minHeigh, int minWitdh)
public static java.awt.Dimension ensureHeightWitdh(Component comp, int relativeto, float minHeighPercent, float minWidthPercent, float maxHeighPercent, float maxWidthPercent)
public static java.awt.Dimension ensureHeightWitdh(javax.swing.JComponent comp, int relativeto, float minHeighPercent, float minWidthPercent, float maxHeighPercent, float maxWidthPercent)
public static java.awt.Dimension ensureHeightWitdh(javax.swing.JComponent comp, int relativeto, float minHeighPercent, float minWidthPercent, float maxHeighPercent, float maxWidthPercent, int minHeigh, int minWitdh)
public static void addInitComponentsListener(javax.swing.JComponent c, InitComponentsListener l)
public static java.lang.String makeTitle(java.lang.String base, java.lang.String docname, java.lang.String docname2)
public static final java.lang.String toHTML(java.lang.String s)