Eclipse Platform
Release 3.1

org.eclipse.swt.custom
Class EmbeddedObject.EmbeddedControl

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

public static class EmbeddedObject.EmbeddedControl
extends EmbeddedObject

Helper class to embedded a Control 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.EmbeddedControl(Control control, 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.EmbeddedControl

public EmbeddedObject.EmbeddedControl(Control control,
                                      int alignment)
Parameters:
control - the control
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.