public class MultiLineLabelUI
extends javax.swing.plaf.basic.BasicLabelUI
Constructor and Description |
---|
MultiLineLabelUI() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Dimension |
computeMultiLineDimension(java.awt.FontMetrics fm,
java.lang.String[] strs) |
static java.lang.String |
convertTabs(java.lang.String text,
int tabLength) |
protected void |
drawString(java.awt.Graphics g,
java.lang.String s,
int accChar,
int textX,
int textY) |
protected java.lang.String |
layoutCL(javax.swing.JLabel label,
java.awt.FontMetrics fontMetrics,
java.lang.String text,
javax.swing.Icon icon,
java.awt.Rectangle viewR,
java.awt.Rectangle iconR,
java.awt.Rectangle textR) |
static java.lang.String |
layoutCompoundLabel(java.awt.FontMetrics fm,
java.lang.String[] text,
javax.swing.Icon icon,
int verticalAlignment,
int horizontalAlignment,
int verticalTextPosition,
int horizontalTextPosition,
java.awt.Rectangle viewR,
java.awt.Rectangle iconR,
java.awt.Rectangle textR,
int textIconGap)
Compute and return the location of the icons origin, the
location of origin of the text baseline, and a possibly clipped
version of the compound labels string.
|
static java.lang.String |
layoutCompoundLabel(javax.swing.JComponent c,
java.awt.FontMetrics fm,
java.lang.String[] text,
javax.swing.Icon icon,
int verticalAlignment,
int horizontalAlignment,
int verticalTextPosition,
int horizontalTextPosition,
java.awt.Rectangle viewR,
java.awt.Rectangle iconR,
java.awt.Rectangle textR,
int textIconGap)
Compute and return the location of the icons origin, the
location of origin of the text baseline, and a possibly clipped
version of the compound labels string.
|
protected void |
paintDisabledText(javax.swing.JLabel l,
java.awt.Graphics g,
java.lang.String s,
int textX,
int textY) |
protected void |
paintEnabledText(javax.swing.JLabel l,
java.awt.Graphics g,
java.lang.String s,
int textX,
int textY) |
java.lang.String[] |
splitStringByLines(java.lang.String str) |
createUI, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, paint, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
protected java.lang.String layoutCL(javax.swing.JLabel label, java.awt.FontMetrics fontMetrics, java.lang.String text, javax.swing.Icon icon, java.awt.Rectangle viewR, java.awt.Rectangle iconR, java.awt.Rectangle textR)
layoutCL
in class javax.swing.plaf.basic.BasicLabelUI
public static java.lang.String layoutCompoundLabel(javax.swing.JComponent c, java.awt.FontMetrics fm, java.lang.String[] text, javax.swing.Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, java.awt.Rectangle viewR, java.awt.Rectangle iconR, java.awt.Rectangle textR, int textIconGap)
public static java.lang.String layoutCompoundLabel(java.awt.FontMetrics fm, java.lang.String[] text, javax.swing.Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, java.awt.Rectangle viewR, java.awt.Rectangle iconR, java.awt.Rectangle textR, int textIconGap)
protected void paintEnabledText(javax.swing.JLabel l, java.awt.Graphics g, java.lang.String s, int textX, int textY)
paintEnabledText
in class javax.swing.plaf.basic.BasicLabelUI
protected void paintDisabledText(javax.swing.JLabel l, java.awt.Graphics g, java.lang.String s, int textX, int textY)
paintDisabledText
in class javax.swing.plaf.basic.BasicLabelUI
protected void drawString(java.awt.Graphics g, java.lang.String s, int accChar, int textX, int textY)
public static java.awt.Dimension computeMultiLineDimension(java.awt.FontMetrics fm, java.lang.String[] strs)
public java.lang.String[] splitStringByLines(java.lang.String str)
public static java.lang.String convertTabs(java.lang.String text, int tabLength)