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()
ItemPresentationgetPresentableText in interface ItemPresentationpublic java.lang.String getLocationString()
ItemPresentationgetLocationString in interface ItemPresentationpublic javax.swing.Icon getIcon(boolean open)
ItemPresentationgetIcon in interface ItemPresentationopen - 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()
ColoredItemPresentationgetTextAttributesKey in interface ColoredItemPresentation