|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.tc.webdynpro.clientserver.uielib.graphics.api.WDGeoBorder
This class represents a geographical border i.e. a rectangle defined by its upper left and lower right corner in WGS84 format.
| Constructor Summary | |
WDGeoBorder()
Creates a new border with the co-ordinates 0,0; 0,0 |
|
WDGeoBorder(double left,
double top,
double right,
double bottom)
Creates a new border with the given co-ordinates |
|
WDGeoBorder(WDGeoBorder srcBorder)
Creates a copy of a border |
|
WDGeoBorder(WDGeoPosition topLeft,
WDGeoPosition bottomRight)
Creates a new border with the given geo-positions |
|
| Method Summary | |
WDGeoPosition |
bottomRight()
Returns the bottom-right position. |
WDGeoPosition |
centerPosition()
Returns the center position of the border. |
boolean |
equals(WDGeoBorder border)
Returns true if the current border has the same co-ordinates as the second one. |
double |
getBottom()
Returns the bottom co-ordinate of the border |
double |
getLeft()
Returns the left co-ordinate of the border |
double |
getRight()
Returns the right co-ordinate of the border |
double |
getTop()
Returns the top co-ordinate of the border |
double |
height()
Returns the difference between top and bottom co-ordinate |
void |
intersectBorder(WDGeoBorder border)
Intersects the current border with a second one. |
boolean |
intersectBorder(WDGeoBorder border1,
WDGeoBorder border2)
Merges the first border with the second one and saves the result in the current border. |
boolean |
isBorderEmpty()
Returns true if all co-ordinates are zero |
void |
moveBorder(double x,
double y)
Moves the border co-ordinates by x and y |
void |
normalizeBorder()
Ensures that the left co-ordinate is smaller or equal to the top, and ateh bottom smaller or equal to the top |
boolean |
positionInBorder(WDGeoPosition pos)
Tests whether a position is inside the border. |
void |
setBorder(double left,
double top,
double right,
double bottom)
Sets the co-ordinates of the border |
void |
setBorder(WDGeoPosition topLeft,
WDGeoPosition bottomRight)
Sets the co-ordinates to new values |
void |
setBorderEmpty()
Resets the border co-ordinates to zero |
WDGeoPosition |
topLeft()
Returns the top-left position. |
java.lang.String |
toString()
|
void |
unionBorder(WDGeoBorder border)
Merges the current border with a second one. |
double |
width()
Returns the difference between right and left co-ordinate. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WDGeoBorder()
public WDGeoBorder(double left,
double top,
double right,
double bottom)
public WDGeoBorder(WDGeoPosition topLeft,
WDGeoPosition bottomRight)
public WDGeoBorder(WDGeoBorder srcBorder)
| Method Detail |
public double getTop()
public double getLeft()
public double getBottom()
public double getRight()
public void setBorder(double left,
double top,
double right,
double bottom)
public void moveBorder(double x,
double y)
public void setBorder(WDGeoPosition topLeft,
WDGeoPosition bottomRight)
public void setBorderEmpty()
public double width()
public double height()
public WDGeoPosition topLeft()
public WDGeoPosition bottomRight()
public void normalizeBorder()
public boolean isBorderEmpty()
public boolean equals(WDGeoBorder border)
public boolean positionInBorder(WDGeoPosition pos)
public void unionBorder(WDGeoBorder border)
public void intersectBorder(WDGeoBorder border)
public boolean intersectBorder(WDGeoBorder border1,
WDGeoBorder border2)
public WDGeoPosition centerPosition()
public java.lang.String toString()
toString in class java.lang.Object
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||