| javax.swing.plaf.basic.BasicLabelUI com.jidesoft.plaf.basic.BasicStyledLabelUI
Inner Class :class StyledText | |
Method Summary | |
protected void | buildStyledText(StyledLabel label) | public static ComponentUI | createUI(JComponent c) | protected Dimension | getPreferredSize(StyledLabel label) | protected String | layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR) | public static String | layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, 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. | public static String | layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, 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(JLabel l, Graphics g, String s, int textX, int textY) | protected void | paintEnabledText(JLabel l, Graphics g, String s, int textX, int textY) | protected void | paintStyledText(StyledLabel label, Graphics g, int textX, int textY) | public void | propertyChange(PropertyChangeEvent e) |
layoutCompoundLabel | public static String layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)(Code) | | 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. Locations are computed
relative to the viewR rectangle.
The JComponents orientation (LEADING/TRAILING) will also be taken
into account and translated into LEFT/RIGHT values accordingly.
|
layoutCompoundLabel | public static String layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)(Code) | | 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. Locations are computed
relative to the viewR rectangle.
This layoutCompoundLabel() does not know how to handle LEADING/TRAILING
values in horizontalTextPosition (they will default to RIGHT) and in
horizontalAlignment (they will default to CENTER).
Use the other version of layoutCompoundLabel() instead.
|
Methods inherited from javax.swing.plaf.basic.BasicLabelUI | public static ComponentUI createUI(JComponent c)(Code)(Java Doc) public int getBaseline(JComponent c, int width, int height)(Code)(Java Doc) public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)(Code)(Java Doc) public Dimension getMaximumSize(JComponent c)(Code)(Java Doc) public Dimension getMinimumSize(JComponent c)(Code)(Java Doc) public Dimension getPreferredSize(JComponent c)(Code)(Java Doc) protected void installComponents(JLabel c)(Code)(Java Doc) protected void installDefaults(JLabel c)(Code)(Java Doc) protected void installKeyboardActions(JLabel l)(Code)(Java Doc) protected void installListeners(JLabel c)(Code)(Java Doc) public void installUI(JComponent c)(Code)(Java Doc) protected String layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)(Code)(Java Doc) public void paint(Graphics g, JComponent c)(Code)(Java Doc) protected void paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)(Code)(Java Doc) protected void paintEnabledText(JLabel l, Graphics g, String s, int textX, int textY)(Code)(Java Doc) public void propertyChange(PropertyChangeEvent e)(Code)(Java Doc) protected void uninstallComponents(JLabel c)(Code)(Java Doc) protected void uninstallDefaults(JLabel c)(Code)(Java Doc) protected void uninstallKeyboardActions(JLabel c)(Code)(Java Doc) protected void uninstallListeners(JLabel c)(Code)(Java Doc) public void uninstallUI(JComponent c)(Code)(Java Doc)
|
|
|