public class HintWidthAdjustment
extends java.lang.Object
InlayInfo#getText()
) to make hint's width equal to width of given editor text plus optionally
a width of a hint with another text. If matching widths would require decreasing hint's width, no adjustment is performed.InlayParameterHintsProvider.getParameterHints(PsiElement)
,
InlayInfo
Constructor and Description |
---|
HintWidthAdjustment(java.lang.String editorTextToMatch,
java.lang.String hintTextToMatch,
int adjustmentOffset) |
Modifier and Type | Method and Description |
---|---|
int |
getAdjustmentPosition()
Position in hint's text where the additional spacing should be inserted
|
java.lang.String |
getEditorTextToMatch()
Editor text, which width should be matched
|
java.lang.String |
getHintTextToMatch()
Text of hint, which width should be added to editor text width for matching
|
public HintWidthAdjustment(java.lang.String editorTextToMatch, java.lang.String hintTextToMatch, int adjustmentOffset)
public java.lang.String getEditorTextToMatch()
public java.lang.String getHintTextToMatch()
public int getAdjustmentPosition()