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
Modifier and TypeFieldDescriptionstatic final URL
An array instance.static final URL
An array instance decorated as Garbage Collection Root.static final URL
A Java class icon.static final URL
inbound reference to a classstatic final URL
A Java class grey/green inbound icon.static final URL
A Java class grey inbound icon.static final URL
An instance of java.lang.Classstatic final URL
An instance of java.lang.Class decorated as Garbage Collection Root.static final URL
outbound reference from a classstatic final URL
A Java class grey/green outbound icon.static final URL
A Java class grey outbound icon.static final URL
A class loader instance.static final URL
A class loader instance decorated as Garbage Collection Root.static final URL
A Java object.static final URL
A Java object decorated as Garbage Collection Root.static final URL
A Java package.static final URL
A Java superclass. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final URL
Construct an icon URL for the current object pointing to the right image and containing the right GC decoration.static URL
Retrieve a URL for a named image.static final URL
Construct an inbound reference icon URL for the current object pointing to the right image and containing the right GC decoration.static final URL
Construct 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.
-