public class GXAreaQuery extends Object implements GXITagQuery
GXAreaQuery(int, int)
or rectangle based GXAreaQuery(GXRectangle, int, boolean)
Modifier and Type | Field and Description |
---|---|
static int |
RETRIEVE_INSIDE_AREA
Indicates retrieval of tags from inside the area.
|
static int |
RETRIEVE_OUTSIDE_AREA
Indicates retrieval of tags from outside the area.
|
Constructor and Description |
---|
GXAreaQuery()
Creates an empty instance.
|
GXAreaQuery(GXRectangle area,
int retrievalMode,
boolean entireTag)
Creates an instance of a rectanglar area query.
|
GXAreaQuery(int startRow,
int endRow)
Creates an instance of a rectangular area query using to start and end
rows.
|
Modifier and Type | Method and Description |
---|---|
GXTagList |
find(GXIScreenTagModel screenModel)
Only tags that have host-screen positions will be returned.
|
void |
setArea(GXRectangle area)
Sets the rectangular area according to which tags will be retrieved.
|
void |
setEntireTag(boolean entireTag)
Defines whether tags that intersect with the area's frame will be
considered as meeting the criteria.
|
void |
setRetrievalMode(int retrievalMode)
Sets the retrieval mode, either tags inside or outside the area.
|
void |
setRowRange(int startRow,
int endRow)
Sets the rectangular area using the start and end rows.
|
public static int RETRIEVE_INSIDE_AREA
public static int RETRIEVE_OUTSIDE_AREA
public GXAreaQuery()
public GXAreaQuery(GXRectangle area, int retrievalMode, boolean entireTag)
area
- The rectangular area according which determine tags will be retrievedretrievalMode
- indicates retrieval of tags from either inside or outside the
areaentireTag
- indicates whether tags that intersect with the area's frame
will be considered as a matching tagspublic GXAreaQuery(int startRow, int endRow)
startRow
- the row where the range starts, inclusive.endRow
- the row where the range ends, inclusive.public void setArea(GXRectangle area)
area
- the rectangular area according to which tags will be retrievedpublic void setRowRange(int startRow, int endRow)
startRow
- the row where the range starts (including this row).endRow
- the row where the range ends (including this row).public void setRetrievalMode(int retrievalMode)
retrievalMode
- indicates retrieval of tags from either inside or outside the
areaRETRIEVE_INSIDE_AREA
,
RETRIEVE_OUTSIDE_AREA
public void setEntireTag(boolean entireTag)
entireTag
- true if the entire tag has to be contained in the areapublic GXTagList find(GXIScreenTagModel screenModel)
find
in interface GXITagQuery
screenModel
- The screen model that the query is performed againstCopyright 2021 Software AG. All rights reserved. Use is subject to license terms.