public class TLspBoundsQuery extends ALspPaintQuery<ALspBoundsInfo>
bounds(com.luciad.view.lightspeed.layer.ALspWorldBoundsInfo)
methods may be called multiple times if the object has multiple bounds. This
implementation only returns the first bounds as result. You can override this class if you want
to handle all bounds.Constructor and Description |
---|
TLspBoundsQuery(Object aObject,
TLspPaintRepresentation aPaintRepresentation)
Creates a new objects bounds query.
|
TLspBoundsQuery(TLspLabelID aLabel)
Creates a new label bounds query.
|
TLspBoundsQuery(TLspLabelID aLabel,
TLspPaintState aPaintState)
Creates a new label bounds query, this tries to find bounds for the given label,
in the given paint state.
|
TLspBoundsQuery(TLspLabelID aLabel,
TLspPaintState aPaintState,
ALspLabelLocation aLabelLocation)
Creates a new label bounds query, this tries to find bounds for the given label,
in the given paint state, for the given label location.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bounds(ALspViewBoundsInfo aBoundsInfo)
Called if the object has view bounds.
|
boolean |
bounds(ALspWorldBoundsInfo aBoundsInfo)
Called if the object has world bounds.
|
TLspLabelID |
getLabel()
Returns the label that should be queried.
|
ALspLabelLocation |
getLabelLocation()
Returns the label location for the label that should be queried.
|
Object |
getObject()
Returns the object that should be queried.
|
TLspPaintRepresentation |
getPaintRepresentation()
Returns the paint representation that should be queried.
|
TLspPaintState |
getPaintState()
Returns the paint stated that should be queried.
|
ALspBoundsInfo |
getResult()
Returns the bounds info for the object.
|
public TLspBoundsQuery(Object aObject, TLspPaintRepresentation aPaintRepresentation)
aObject
- the object whose bounds should be retrievedaPaintRepresentation
- the paint representationpublic TLspBoundsQuery(TLspLabelID aLabel)
aLabel
- the label whose bounds should be retrievedpublic TLspBoundsQuery(TLspLabelID aLabel, TLspPaintState aPaintState)
null
, all
paint states will be tried.aLabel
- the label whose bounds should be retrievedaPaintState
- the paint state of the labelpublic TLspBoundsQuery(TLspLabelID aLabel, TLspPaintState aPaintState, ALspLabelLocation aLabelLocation)
null
, all paint states will be tried.aLabel
- the label whose bounds should be retrievedaPaintState
- the paint state of the labelaLabelLocation
- the label location for the label.public Object getObject()
public TLspLabelID getLabel()
public TLspPaintRepresentation getPaintRepresentation()
public TLspPaintState getPaintState()
null
,
it means all paint states should be queried.null
.public ALspLabelLocation getLabelLocation()
null
.public ALspBoundsInfo getResult()
getResult
in class ALspPaintQuery<ALspBoundsInfo>
public boolean bounds(ALspWorldBoundsInfo aBoundsInfo)
aBoundsInfo
may change after this method call returns. The implementation
can create a ALspBoundsInfo.clone()
if it still needs
it after the method call returns.aBoundsInfo
- the bounds infotrue
if the query should continue, false
if it should stoppublic boolean bounds(ALspViewBoundsInfo aBoundsInfo)
aBoundsInfo
may change after this method call returns. The implementation
can create a ALspBoundsInfo.clone()
if it still needs
it after the method call returns.aBoundsInfo
- the bounds infotrue
if the query should continue, false
if it should stop