Eclipse Platform
Release 3.1

org.eclipse.swt.custom
Class EmbeddedObject.EmbeddedImage

java.lang.Object
  extended byorg.eclipse.swt.custom.EmbeddedObject
      extended byorg.eclipse.swt.custom.EmbeddedObject.EmbeddedImage
Enclosing class:
EmbeddedObject

public static class EmbeddedObject.EmbeddedImage
extends EmbeddedObject

Helper class to embedded a Image in a StyledText


Nested Class Summary
 
Nested classes inherited from class org.eclipse.swt.custom.EmbeddedObject
EmbeddedObject.Bullet, EmbeddedObject.EmbeddedControl, EmbeddedObject.EmbeddedImage
 
Constructor Summary
EmbeddedObject.EmbeddedImage(Image image, int alignment)
           
 
Method Summary
 void draw(GC gc, int x, int y, int ascent, int descent)
           
 int getAdvance()
           
 int getAscent()
           
 int getDescent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedObject.EmbeddedImage

public EmbeddedObject.EmbeddedImage(Image image,
                                    int alignment)
Parameters:
alignment - the vertical alignment for the control SWT.TOP == top of the line SWT.CENTER == baseline SWT.BOTTOM == bottom of the line
Method Detail

getAscent

public int getAscent()
Specified by:
getAscent in class EmbeddedObject

getDescent

public int getDescent()
Specified by:
getDescent in class EmbeddedObject

getAdvance

public int getAdvance()
Specified by:
getAdvance in class EmbeddedObject

draw

public void draw(GC gc,
                 int x,
                 int y,
                 int ascent,
                 int descent)
Specified by:
draw in class EmbeddedObject

Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.