public class DelegatingItemPresentation extends java.lang.Object implements ColoredItemPresentation
Constructor and Description |
---|
DelegatingItemPresentation(ItemPresentation base) |
Modifier and Type | Method and Description |
---|---|
javax.swing.Icon |
getIcon(boolean open)
Returns the icon representing the object.
|
java.lang.String |
getLocationString()
Returns the location of the object (for example, the package of a class).
|
java.lang.String |
getPresentableText()
Returns the name of the object to be presented in most renderers across the program.
|
TextAttributesKey |
getTextAttributesKey()
Returns the text attributes for rendering the item text.
|
DelegatingItemPresentation |
withIcon(javax.swing.Icon icon) |
DelegatingItemPresentation |
withLocationString(java.lang.String locationString) |
DelegatingItemPresentation |
withPresentableText(java.lang.String presentableText) |
public DelegatingItemPresentation(ItemPresentation base)
public DelegatingItemPresentation withPresentableText(java.lang.String presentableText)
public DelegatingItemPresentation withLocationString(java.lang.String locationString)
public DelegatingItemPresentation withIcon(javax.swing.Icon icon)
public java.lang.String getPresentableText()
ItemPresentation
getPresentableText
in interface ItemPresentation
public java.lang.String getLocationString()
ItemPresentation
getLocationString
in interface ItemPresentation
public javax.swing.Icon getIcon(boolean open)
ItemPresentation
getIcon
in interface ItemPresentation
open
- Used to mean if open/close icons for tree renderer. No longer in use. The parameter is only there for API compatibility reason.public TextAttributesKey getTextAttributesKey()
ColoredItemPresentation
getTextAttributesKey
in interface ColoredItemPresentation