public class LocationType
extends java.lang.Object
location
type,
consisting of of two (x,y) co-ordinates. The associated type is represented
by LocationFieldType.TYPE
.
Values of the location type describe rectangular areas in a two-dimensional unit-less Cartesian coordinate plane. Locations are defined by the float coordinates of two points x1, y1 and x2, y2 at diagonally opposite corners of an enclosing boundary rectangle.
Constructor and Description |
---|
LocationType()
Construct a new instance of LocationType, with coordinates initialized to 0.0.
|
LocationType(double x1,
double y1,
double x2,
double y2)
Construct a new instance of LocationType, with input coordinates as constructor arguments.
|
Modifier and Type | Method and Description |
---|---|
double |
getX1()
Returns the x component of the first point that describes the rectangular area.
|
double |
getX2()
Returns the x component of the second point that describes the rectangular area.
|
double |
getY1()
Returns the y component of the first point that describes the rectangular area.
|
double |
getY2()
Returns the y component of the second point that describes the rectangular area.
|
java.lang.String |
toString()
Returns the x component of the first point that describes the rectangular area.
|
public LocationType(double x1, double y1, double x2, double y2)
public LocationType()
public double getX1()
public double getX2()
public double getY1()
public double getY2()
public java.lang.String toString()
toString
in class java.lang.Object
Submit a bug or feature
Copyright (c) 2013-2018 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.