public class RealLookupElementPresentation extends LookupElementPresentation
LookupElementPresentation.TextFragment
Constructor and Description |
---|
RealLookupElementPresentation(int maximumWidth,
java.awt.FontMetrics normalMetrics,
java.awt.FontMetrics boldMetrics,
Lookup lookup) |
Modifier and Type | Method and Description |
---|---|
static int |
calculateWidth(LookupElementPresentation presentation,
java.awt.FontMetrics normalMetrics,
java.awt.FontMetrics boldMetrics) |
static int |
getStringWidth(java.lang.String text,
java.awt.FontMetrics metrics) |
boolean |
hasEnoughSpaceFor(java.lang.String text,
boolean bold) |
boolean |
isLookupSelectionTouched() |
boolean |
isReal()
Is equivalent to instanceof
RealLookupElementPresentation check. |
appendTailText, appendTailTextItalic, clearTail, copyFrom, getIcon, getItemText, getItemTextForeground, getTailFragments, getTailText, getTypeIcon, getTypeText, isItemTextBold, isItemTextItalic, isItemTextUnderlined, isStrikeout, isTailGrayed, isTypeGrayed, isTypeIconRightAligned, renderElement, setIcon, setItemText, setItemTextBold, setItemTextForeground, setItemTextItalic, setItemTextUnderlined, setStrikeout, setTailText, setTailText, setTailText, setTypeGrayed, setTypeIconRightAligned, setTypeText, setTypeText, toString
public RealLookupElementPresentation(int maximumWidth, java.awt.FontMetrics normalMetrics, java.awt.FontMetrics boldMetrics, Lookup lookup)
public boolean isLookupSelectionTouched()
public boolean isReal()
LookupElementPresentation
RealLookupElementPresentation
check.isReal
in class LookupElementPresentation
public boolean hasEnoughSpaceFor(java.lang.String text, boolean bold)
public static int calculateWidth(LookupElementPresentation presentation, java.awt.FontMetrics normalMetrics, java.awt.FontMetrics boldMetrics)
public static int getStringWidth(java.lang.String text, java.awt.FontMetrics metrics)