Oxygen XML Editor 12.2 Author API

ro.sync.exml.view.graphics
Interface Shape

All Known Implementing Classes:
Ellipse, Rectangle

public interface Shape

Common shape


Method Summary
 Rectangle getBounds()
           
 Shape translate(int tx, int ty)
          Translate the shape into another one.
 

Method Detail

getBounds

Rectangle getBounds()
Returns:
The bounds of this shape.

translate

Shape translate(int tx,
                int ty)
Translate the shape into another one.

Parameters:
tx - the distance by which coordinates are translated in the X axis direction
ty - the distance by which coordinates are translated in the Y axis direction
Returns:
The newly translated shape

Oxygen XML Editor 12.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.