|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.ide.projectView.PresentationData
public class PresentationData
Default implementation of the ItemPresentation interface.
| Constructor Summary | |
|---|---|
PresentationData()
Creates an instance with no parameters specified. |
|
PresentationData(java.lang.String presentableText,
java.lang.String locationString,
javax.swing.Icon openIcon,
javax.swing.Icon closedIcon,
TextAttributesKey attributesKey)
Creates an instance with the specified parameters. |
|
| Method Summary | |
|---|---|
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. |
void |
setAttributesKey(TextAttributesKey attributesKey)
Sets the attributes for rendering the item text. |
void |
setClosedIcon(javax.swing.Icon closedIcon)
Sets the icon shown for the node when it is collapsed in a tree, or when it is displayed in a non-tree view. |
void |
setIcons(javax.swing.Icon icon)
Sets both the open and closed icons of the node to the specified icon. |
void |
setLocationString(java.lang.String locationString)
Sets the location of the object (for example, the package of a class). |
void |
setOpenIcon(javax.swing.Icon openIcon)
Sets the icon shown for the node when it is expanded in the tree. |
void |
setPresentableText(java.lang.String presentableText)
Sets the name of the object to be presented in most renderers across the program. |
void |
updateFrom(ItemPresentation presentation)
Copies the presentation parameters from the specified presentation instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PresentationData(java.lang.String presentableText,
java.lang.String locationString,
javax.swing.Icon openIcon,
javax.swing.Icon closedIcon,
TextAttributesKey attributesKey)
presentableText - the name of the object to be presented in most renderers across the program.locationString - the location of the object (for example, the package of a class). The location
string is used by some renderers and usually displayed as grayed text next to
the item name.openIcon - the icon shown for the node when it is expanded in the tree.closedIcon - the icon shown for the node when it is collapsed in a tree, or when it is displayed
in a non-tree view.attributesKey - the attributes for rendering the item text.public PresentationData()
| Method Detail |
|---|
public javax.swing.Icon getIcon(boolean open)
ItemPresentation
getIcon in interface ItemPresentationopen - only meaningful when used in a tree renderers. false is passed when icon for other renderers is required.
public java.lang.String getLocationString()
ItemPresentation
getLocationString in interface ItemPresentationpublic java.lang.String getPresentableText()
ItemPresentation
getPresentableText in interface ItemPresentationpublic void setClosedIcon(javax.swing.Icon closedIcon)
closedIcon - the closed icon for the node.setIcons(javax.swing.Icon)public void setLocationString(java.lang.String locationString)
locationString - the location of the object.public void setOpenIcon(javax.swing.Icon openIcon)
openIcon - the open icon for the node.setIcons(javax.swing.Icon)public void setPresentableText(java.lang.String presentableText)
presentableText - the name of the object.public void setIcons(javax.swing.Icon icon)
icon - the icon for the node.setOpenIcon(javax.swing.Icon),
setClosedIcon(javax.swing.Icon)public void updateFrom(ItemPresentation presentation)
presentation - the instance to copy the parameters from.public TextAttributesKey getTextAttributesKey()
ItemPresentation
getTextAttributesKey in interface ItemPresentationpublic void setAttributesKey(TextAttributesKey attributesKey)
attributesKey - the attributes for rendering the item text.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||