org.eclipse.swt.custom
Class EmbeddedObject.EmbeddedImage
java.lang.Object
org.eclipse.swt.custom.EmbeddedObject
org.eclipse.swt.custom.EmbeddedObject.EmbeddedImage
- Enclosing class:
- EmbeddedObject
- public static class EmbeddedObject.EmbeddedImage
- extends EmbeddedObject
Helper class to embedded a Image in a StyledText
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.