public class Tools extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AF0_EXP |
static String |
AF1_EXP |
static String |
AF3_EXP |
static String |
AP1_EXP |
static String |
AP2_EXP |
static String |
AP3_EXP |
static Font |
BIG_FONT |
static String |
CF0_EXP |
static String |
CF1_EXP |
static String |
CFC_EXP |
static String |
CS_EXP |
static Font |
defaultFont |
static String |
fcsFontInString |
static Color |
greenColor |
static Font |
HUGE_FONT |
static Insets |
insets_big |
static Insets |
insets_small |
static Insets |
insets_std |
static Color |
NICE_PINK |
static String |
NO_LOCKOUT |
static String |
NONE |
static Color |
OVERVIEWBORDER_COLOR |
static Dimension |
preferedPanelSize |
static int |
SP_V_LINE_HEIGHT |
static int |
SP_V_LINE_STARTINGY |
static String |
TIRETS |
static String |
UNKNOWN_ERROR |
static String |
UNKNOWN_STATE |
static String |
UNKNOWN_VALUE |
static Font |
VERY_BIG_FONT |
static String |
ZERO_VALUE |
| Constructor and Description |
|---|
Tools() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addToHorizontalLine(JPanel panel,
GridBagConstraints gbcl,
String componentName,
JComponent component,
boolean drawLine)
to add a component to the right on a horizontal line
|
static JPanel |
create_subPanelWith2Switch(String name1,
JComponent switch1,
String name2,
JComponent switch2) |
static JPanel |
createPanelWithComponent(String componentName,
JComponent component,
boolean drawHLineBefore,
boolean drawHLineAfter)
Create a Panel with a component name to display above the component and a
component.
|
static JPanel |
createPanelWithComponent(String componentName,
JComponent component,
boolean drawHLineBefore,
boolean drawHLineAfter,
int length)
Create a Panel with a component name to display above the component and a
component.
|
static String |
formatButtonLabelWhenLinkedWithATooltip(String label)
Hint that a label of a button has a tooltip by underlying the first 2 characters
|
static String |
formatTooltipText(String command,
String text)
Format a tooltip
|
static TitledBorder |
getConfigurationTitle() |
static Color |
getFilterPresenceColor(String filterPresenceStatus) |
static TitledBorder |
getGeneralPanelTitle(String title) |
static Component |
getPanelPlaceHolder(String type) |
static Component |
getPlaceHolder(String type) |
static String |
getShortComponentName(String fullPathName) |
static void |
resetTable(JTable table)
reset a table : remove all rows.
|
static int |
toInt(Map<String,String> config,
String parameterName)
Return value of parameterName found in map config if it exits.
|
public static final Color greenColor
public static final Color NICE_PINK
public static final Color OVERVIEWBORDER_COLOR
public static final String fcsFontInString
public static final Font BIG_FONT
public static final Font HUGE_FONT
public static final Font VERY_BIG_FONT
public static final Font defaultFont
public static final Insets insets_std
public static final Insets insets_big
public static final Insets insets_small
public static final String ZERO_VALUE
public static final String UNKNOWN_VALUE
public static final String UNKNOWN_STATE
public static final String UNKNOWN_ERROR
public static final String NONE
public static final String TIRETS
public static final int SP_V_LINE_HEIGHT
public static final int SP_V_LINE_STARTINGY
public static final Dimension preferedPanelSize
public static final String AP1_EXP
public static final String AP2_EXP
public static final String AP3_EXP
public static final String AF0_EXP
public static final String AF1_EXP
public static final String AF3_EXP
public static final String CS_EXP
public static final String CFC_EXP
public static final String CF0_EXP
public static final String CF1_EXP
public static final String NO_LOCKOUT
public static Color getFilterPresenceColor(String filterPresenceStatus)
filterPresenceStatus - public static int toInt(Map<String,String> config, String parameterName)
config - parameterName - public static void resetTable(JTable table)
table - public static String getShortComponentName(String fullPathName)
fullPathName - public static JPanel createPanelWithComponent(String componentName, JComponent component, boolean drawHLineBefore, boolean drawHLineAfter)
componentName - component - drawHLineBefore - if true an horizontal line is drawn before the
componentdrawHLineAfter - if false an horizontal line is drawn after the
componentpublic static JPanel createPanelWithComponent(String componentName, JComponent component, boolean drawHLineBefore, boolean drawHLineAfter, int length)
componentName - component - drawHLineBefore - if true an horizontal line is drawn before the
componentdrawHLineAfter - if false an horizontal line is drawn after the
componentlength - of the linespublic static void addToHorizontalLine(JPanel panel, GridBagConstraints gbcl, String componentName, JComponent component, boolean drawLine)
panel - gbcl - componentName - component - drawLine - if true draw an HorizontalLine after the componentpublic static JPanel create_subPanelWith2Switch(String name1, JComponent switch1, String name2, JComponent switch2)
public static TitledBorder getConfigurationTitle()
public static String formatButtonLabelWhenLinkedWithATooltip(String label)
label - public static String formatTooltipText(String command, String text)
command - name of the command (as listed in the "Command and lock browser")text - command definitionpublic static TitledBorder getGeneralPanelTitle(String title)
Copyright © 2024 LSST. All rights reserved.