|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.BasicLabelViewUI
public class BasicLabelViewUI
An extension of the BasicLabelUI. This implementation is completely static, i.e. there's only one UIView implementation that's shared by all LabelView objects.
Field Summary | |
---|---|
protected java.awt.Rectangle |
iconR
|
protected static BasicLabelViewUI |
labelViewUI
|
protected static java.awt.Rectangle |
oPaintIconR
|
protected static java.awt.Rectangle |
oPaintTextR
|
protected static java.awt.Rectangle |
paintIconR
|
protected static java.awt.Rectangle |
paintTextR
|
protected static java.awt.Insets |
paintViewInsets
|
protected static java.awt.Rectangle |
paintViewR
|
protected java.awt.Rectangle |
textR
|
protected static java.awt.Insets |
viewInsets
|
protected java.awt.Rectangle |
viewR
|
Constructor Summary | |
---|---|
BasicLabelViewUI()
Initializes static veriables. |
Method Summary | |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
|
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,
int orientation,
boolean lineWrap,
boolean wrapStyleWord,
int gapBetweenLines,
boolean clippedMode,
int tabSize,
int leadingContentOffset,
int topContentOffset)
Forwards the call to Util.layoutCompoundLabel(). |
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,
int orientation,
boolean lineWrap,
boolean wrapStyleWord,
int gapBetweenLines,
boolean clippedMode,
int tabSize,
int leadingContentOffset,
int topContentOffset,
boolean replaceTab)
Forwards the call to Util.layoutCompoundLabel(). |
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,
int orientation,
boolean lineWrap,
boolean wrapStyleWord,
int gapBetweenLines,
boolean clippedMode,
int tabSize,
int leadingContentOffset,
int topContentOffset,
boolean replaceTab,
boolean replaceNewline)
Forwards the call to Util.layoutCompoundLabel(). |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
protected boolean |
paintDisabledText(javax.swing.JLabel l,
java.awt.Graphics g,
java.lang.String s,
int textX,
int textY,
int accChar)
Paint clippedText at textX, textY with background.lighter() and then shifted down and to the right by one pixel with background.darker(). |
protected boolean |
paintEnabledText(javax.swing.JLabel l,
java.awt.Graphics g,
java.lang.String s,
int textX,
int textY,
int accChar)
Paint clippedText at textX, textY with the labels foreground color. |
Field Detail |
---|
protected static BasicLabelViewUI labelViewUI
protected java.awt.Rectangle iconR
protected java.awt.Rectangle textR
protected java.awt.Rectangle viewR
protected static java.awt.Insets viewInsets
protected static java.awt.Rectangle paintIconR
protected static java.awt.Rectangle paintTextR
protected static java.awt.Rectangle paintViewR
protected static java.awt.Insets paintViewInsets
protected static java.awt.Rectangle oPaintIconR
protected static java.awt.Rectangle oPaintTextR
Constructor Detail |
---|
public BasicLabelViewUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
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, int orientation, boolean lineWrap, boolean wrapStyleWord, int gapBetweenLines, boolean clippedMode, int tabSize, int leadingContentOffset, int topContentOffset)
SwingUtilities.layoutCompoundLabel(javax.swing.JComponent, java.awt.FontMetrics, java.lang.String, javax.swing.Icon, int, int, int, int, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, int)
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, int orientation, boolean lineWrap, boolean wrapStyleWord, int gapBetweenLines, boolean clippedMode, int tabSize, int leadingContentOffset, int topContentOffset, boolean replaceTab)
SwingUtilities.layoutCompoundLabel(javax.swing.JComponent, java.awt.FontMetrics, java.lang.String, javax.swing.Icon, int, int, int, int, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, int)
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, int orientation, boolean lineWrap, boolean wrapStyleWord, int gapBetweenLines, boolean clippedMode, int tabSize, int leadingContentOffset, int topContentOffset, boolean replaceTab, boolean replaceNewline)
SwingUtilities.layoutCompoundLabel(javax.swing.JComponent, java.awt.FontMetrics, java.lang.String, javax.swing.Icon, int, int, int, int, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, int)
protected boolean paintEnabledText(javax.swing.JLabel l, java.awt.Graphics g, java.lang.String s, int textX, int textY, int accChar)
paint(java.awt.Graphics, javax.swing.JComponent)
,
paintDisabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int, int)
protected boolean paintDisabledText(javax.swing.JLabel l, java.awt.Graphics g, java.lang.String s, int textX, int textY, int accChar)
paint(java.awt.Graphics, javax.swing.JComponent)
,
paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int, int)
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.basic.BasicLabelUI
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize
in class javax.swing.plaf.basic.BasicLabelUI
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize
in class javax.swing.plaf.basic.BasicLabelUI
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.basic.BasicLabelUI
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |