Package org.eclipse.mat.snapshot.query
Class Icons
java.lang.Object
org.eclipse.mat.snapshot.query.Icons
A factory class for well-known icons, such as object, class and class loader.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final URLAn array instance.static final URLAn array instance decorated as Garbage Collection Root.static final URLA Java class icon.static final URLinbound reference to a classstatic final URLA Java class grey/green inbound icon.static final URLA Java class grey inbound icon.static final URLAn instance of java.lang.Classstatic final URLAn instance of java.lang.Class decorated as Garbage Collection Root.static final URLoutbound reference from a classstatic final URLA Java class grey/green outbound icon.static final URLA Java class grey outbound icon.static final URLA class loader instance.static final URLA class loader instance decorated as Garbage Collection Root.static final URLA Java object.static final URLA Java object decorated as Garbage Collection Root.static final URLA Java package.static final URLA Java superclass. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final URLConstruct an icon URL for the current object pointing to the right image and containing the right GC decoration.static URLRetrieve a URL for a named image.static final URLConstruct an inbound reference icon URL for the current object pointing to the right image and containing the right GC decoration.static final URLConstruct an outbound reference icon URL for the current object pointing to the right image and containing the right GC decoration.
-
Field Details
-
CLASS
A Java class icon. -
CLASS_IN
inbound reference to a class -
CLASS_OUT
outbound reference from a class -
CLASS_IN_OLD
A Java class grey inbound icon. Used to show that all the instances of the class have already been seen. -
CLASS_OUT_OLD
A Java class grey outbound icon. Used to show that all the instances of the class have already been seen. -
CLASS_IN_MIXED
A Java class grey/green inbound icon. Used to show that some of the instances of the class have already been seen. -
CLASS_OUT_MIXED
A Java class grey/green outbound icon. Used to show that some of the instances of the class have already been seen. -
OBJECT_INSTANCE
A Java object. -
CLASS_INSTANCE
An instance of java.lang.Class -
ARRAY_INSTANCE
An array instance. -
CLASSLOADER_INSTANCE
A class loader instance. -
OBJECT_INSTANCE_AS_GC_ROOT
A Java object decorated as Garbage Collection Root. -
CLASS_INSTANCE_AS_GC_ROOT
An instance of java.lang.Class decorated as Garbage Collection Root. -
ARRAY_INSTANCE_AS_GC_ROOT
An array instance decorated as Garbage Collection Root. -
CLASSLOADER_INSTANCE_AS_GC_ROOT
A class loader instance decorated as Garbage Collection Root. -
PACKAGE
A Java package. -
SUPERCLASS
A Java superclass.- Since:
- 1.0
-
-
Constructor Details
-
Icons
public Icons()
-
-
Method Details
-
forObject
Construct an icon URL for the current object pointing to the right image and containing the right GC decoration.- Parameters:
snapshot- the snapshotobjectId- the object- Returns:
- URL of the icon
-
inbound
Construct an inbound reference icon URL for the current object pointing to the right image and containing the right GC decoration.- Parameters:
snapshot- the snapshotobjectId- the object- Returns:
- URL of the icon
-
outbound
Construct an outbound reference icon URL for the current object pointing to the right image and containing the right GC decoration.- Parameters:
snapshot- the snapshotobjectId- the object- Returns:
- URL of the icon
-
getURL
Retrieve a URL for a named image.- Parameters:
imageName- the image- Returns:
- the URL used to retrieve the icon.
-