com.businessobjects.rebean.wi
Interface Position

All Superinterfaces:
Unit
All Known Subinterfaces:
Attachable, Cell, FreeCell, ReportBlock, ReportCell, SectionContainer

public interface Position
extends Unit

Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.

Specifies the position of a report element, relative to the ReportElementContainer it is in. For all values, the unity from Unit.getUnit() is used. For coordinates, the 0-point is at the top-left.

 +--------------------------------+
 |              ^                 |
 |              | y               |
 |              v                 |
 |   x   +-------------+          |
 |<----->|             |          |
 |       +-------------+          |
 |                                |
 +--------------------------------+

All positions are exactly as in Structure Mode in the Web Intelligence Java Report Panel (applet).

Note that the behaviour of these methods changes when attached to another report element, see Attachable for details.


Method Summary
 double getX()
          Returns the distance at the left to the parent ReportElementContainer's beginning.
 double getY()
          Returns the distance at the top to the parent ReportElementContainer's beginning.
 void setLocation(double x, double y)
          Changes the position to the new coordinates.
 void setX(double x)
          Changes the distance at the left to the parent ReportElementContainer.
 void setY(double y)
          Changes the distance at the top to the parent ReportElementContainer.
 
Methods inherited from interface com.businessobjects.rebean.wi.Unit
getUnit, setUnit
 

Method Detail

getX

double getX()
Returns the distance at the left to the parent ReportElementContainer's beginning.

Returns:
the x distance

setX

void setX(double x)
Changes the distance at the left to the parent ReportElementContainer.

Parameters:
x - the x distance
Throws:
java.lang.IllegalArgumentException - when x < 0

getY

double getY()
Returns the distance at the top to the parent ReportElementContainer's beginning.

Returns:
the y distance

setY

void setY(double y)
Changes the distance at the top to the parent ReportElementContainer.

Parameters:
y - the y distance
Throws:
java.lang.IllegalArgumentException - when y < 0

setLocation

void setLocation(double x,
                 double y)
Changes the position to the new coordinates.

Parameters:
x - the new x coordinate
y - the new y coordinate
Throws:
java.lang.IllegalArgumentException - when x < 0 || y < 0