Class TruncLabelUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.LabelUI
javax.swing.plaf.basic.BasicLabelUI
com.jackmeng.halcyoninae.cosmos.components.TruncLabelUI
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
-
Field Summary
FieldsFields inherited from class javax.swing.plaf.basic.BasicLabelUI
labelUI
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
createUI, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, paint, paintDisabledText, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Field Details
-
before
private int before -
after
private int after
-
-
Constructor Details
-
TruncLabelUI
public TruncLabelUI()
-
-
Method Details
-
layoutCL
protected String layoutCL(JLabel l, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR) - Overrides:
layoutCL
in classBasicLabelUI
- Parameters:
l
-fontMetrics
-text
-icon
-viewR
-iconR
-textR
-- Returns:
- String
-
getBefore
public int getBefore()- Returns:
- int
-
getAfter
public int getAfter()- Returns:
- int
-