Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.ui
Class JavaElementImageDescriptor


java.lang.Object
  extended by 

org.eclipse.jface.resource.DeviceResourceDescriptor
      extended by 

org.eclipse.jface.resource.ImageDescriptor
          extended by 

org.eclipse.jface.resource.CompositeImageDescriptor
              extended by 
org.eclipse.jdt.ui.JavaElementImageDescriptor

public class JavaElementImageDescriptor
extends CompositeImageDescriptor

A JavaElementImageDescriptor consists of a base image and several adornments. The adornments are computed according to the flags either passed during creation or set via the method setAdornments(int).

This class may be instantiated; it is not intended to be subclassed.

Since:
2.0
Restriction:
This class is not intended to be subclassed by clients.

Field Summary
static int ABSTRACT
          Flag to render the abstract adornment.
static int CONSTRUCTOR
          Flag to render the 'constructor' adornment.
static int DEPRECATED
          Flag to render the 'deprecated' adornment.
static int ERROR
          Flag to render the error adornment.
static int FINAL
          Flag to render the final adornment.
static int IMPLEMENTS
          Flag to render the 'implements' adornment.
static int OVERRIDES
          Flag to render the 'override' adornment.
static int RUNNABLE
          Flag to render the runnable adornment.
static int STATIC
          Flag to render the static adornment.
static int SYNCHRONIZED
          Flag to render the synchronized adornment.
static int TRANSIENT
          Flag to render the 'transient' adornment.
static int VOLATILE
          Flag to render the 'volatile' adornment.
static int WARNING
          Flag to render the warning adornment.
 
Fields inherited from class org.eclipse.jface.resource. ImageDescriptor
DEFAULT_IMAGE_DATA
 
Constructor Summary
JavaElementImageDescriptor ( ImageDescriptor baseImage, int flags, Point size)
          Creates a new JavaElementImageDescriptor.
 
Method Summary
protected  void drawCompositeImage (int width, int height)
           
 boolean equals ( Object object)
           
 int getAdronments ()
          Returns the current adornments.
  Point getImageSize ()
          Returns the size of the image created by calling ImageDescriptor.createImage().
protected   Point getSize ()
           
 int hashCode ()
           
 void setAdornments (int adornments)
          Sets the descriptors adornments.
 void setImageSize ( Point size)
          Sets the size of the image created by calling ImageDescriptor.createImage().
 
Methods inherited from class org.eclipse.jface.resource. CompositeImageDescriptor
drawImage, getImageData, getTransparentPixel, setImageData
 
Methods inherited from class org.eclipse.jface.resource. ImageDescriptor
createFromFile, createFromImage, createFromImage, createFromImageData, createFromURL, createImage, createImage, createImage, createImage, createResource, createWithFlags, destroyResource, getMissingImageDescriptor
 
Methods inherited from class java.lang. Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ABSTRACT

public static final int ABSTRACT
Flag to render the abstract adornment.

See Also:
Constant Field Values

FINAL

public static final int FINAL
Flag to render the final adornment.

See Also:
Constant Field Values

SYNCHRONIZED

public static final int SYNCHRONIZED
Flag to render the synchronized adornment.

See Also:
Constant Field Values

STATIC

public static final int STATIC
Flag to render the static adornment.

See Also:
Constant Field Values

RUNNABLE

public static final int RUNNABLE
Flag to render the runnable adornment.

See Also:
Constant Field Values

WARNING

public static final int WARNING
Flag to render the warning adornment.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Flag to render the error adornment.

See Also:
Constant Field Values

OVERRIDES

public static final int OVERRIDES
Flag to render the 'override' adornment.

See Also:
Constant Field Values

IMPLEMENTS

public static final int IMPLEMENTS
Flag to render the 'implements' adornment.

See Also:
Constant Field Values

CONSTRUCTOR

public static final int CONSTRUCTOR
Flag to render the 'constructor' adornment.

See Also:
Constant Field Values

DEPRECATED

public static final int DEPRECATED
Flag to render the 'deprecated' adornment.

Since:
3.0
See Also:
Constant Field Values

VOLATILE

public static final int VOLATILE
Flag to render the 'volatile' adornment.

Since:
3.3
See Also:
Constant Field Values

TRANSIENT

public static final int TRANSIENT
Flag to render the 'transient' adornment.

Since:
3.3
See Also:
Constant Field Values
Constructor Detail

JavaElementImageDescriptor

public JavaElementImageDescriptor(
ImageDescriptor baseImage,
                                  int flags,
                                  
Point size)
Creates a new JavaElementImageDescriptor.

Parameters:
baseImage - an image descriptor used as the base image
flags - flags indicating which adornments are to be rendered. See setAdornments(int) for valid values.
size - the size of the resulting image
Method Detail

setAdornments

public void setAdornments(int adornments)
Sets the descriptors adornments. Valid values are: ABSTRACT, FINAL, SYNCHRONIZED, STATIC, RUNNABLE, WARNING, ERROR, OVERRIDES, IMPLEMENTS, CONSTRUCTOR, DEPRECATED, VOLATILE, TRANSIENT or any combination of those.

Parameters:
adornments - the image descriptors adornments

getAdronments

public int getAdronments()
Returns the current adornments.

Returns:
the current adornments

setImageSize

public void setImageSize(
Point size)
Sets the size of the image created by calling ImageDescriptor.createImage().

Parameters:
size - the size of the image returned from calling ImageDescriptor.createImage()

getImageSize

public 
Point getImageSize()
Returns the size of the image created by calling ImageDescriptor.createImage().

Returns:
the size of the image created by calling ImageDescriptor.createImage()

getSize

protected 
Point getSize()
Specified by:
getSize in class CompositeImageDescriptor

equals

public boolean equals(
Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

drawCompositeImage

protected void drawCompositeImage(int width,
                                  int height)
Specified by:
drawCompositeImage in class CompositeImageDescriptor

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire