public class DisplayObject extends Object implements ClientReceiverInterface, MapPane.MapScaleListener
Modifier and Type | Field and Description |
---|---|
private Map<Integer,Rectangle> |
_boundingRectangles |
private Map<Integer,List<Object>> |
_coordinates |
private DisplayObjectType |
_currentDisplayObjectType |
private static Debug |
_debug |
private int |
_defaultType |
private Map<PrimitiveFormPropertyPair,DisplayObjectType.DisplayObjectTypeItem> |
_displayObjectTypeItems |
private DOTCollection |
_dotCollection |
private MapPane |
_mapPane |
private DisplayObjectPainter |
_painter |
private Map<DisplayObjectType,Map<PrimitiveFormPropertyPair,DisplayObjectType.DisplayObjectTypeItem>> |
_resultCache |
private SystemObject |
_systemObject |
private Map<PrimitiveFormPropertyPair,Data> |
_values |
Constructor and Description |
---|
DisplayObject(SystemObject systemObject,
List<Object> coordinates,
DisplayObjectPainter painter,
DOTCollection dotCollection,
Map<DisplayObjectType,List<PrimitiveFormPropertyPair>> primitiveFormPropertyPairs,
MapPane mapPane)
Konstruiert ein DisplayObject.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
getBoundingRectangle()
Gibt die umgebende Rechteck zu diesem DisplayObject für den Default-(Koordinaten-)Typ zurück.
|
Rectangle |
getBoundingRectangle(int type)
Gibt die umgebende Rechteck zu diesem DisplayObject für den angebenen (Koordinaten-)Typ zurück.
|
List<Object> |
getCoordinates()
Gibt die Koordinaten zum Default(-Koordinaten)-Typ zurück.
|
List<Object> |
getCoordinates(int type)
Gibt die Koordinaten zu dem dem übergebenen (Koordinaten-)Typ zurück.
|
DisplayObjectType.DisplayObjectTypeItem |
getDisplayObjectTypeItem(PrimitiveFormPropertyPair pair)
Gibt das aktuell gültige
DisplayObjectType.DisplayObjectTypeItem für das pair zurück. |
DOTCollection |
getDOTCollection()
Gibt die
DOTCollection zu diesem DisplayObject zurück. |
private DisplayObjectType.DisplayObjectTypeItem |
getDOTItemForState(DisplayObjectType displayObjectType,
ResultData result,
DOTSubscriptionData subscriptionData,
PrimitiveFormPropertyPair pfPropertyPair) |
MapPane |
getMapPane() |
DisplayObjectPainter |
getPainter()
Gibt das Painter-Objekt
DisplayObjectPainter zu dieses DisplayObject zurück. |
private static Data |
getSubItem(Data data,
String attributeName) |
SystemObject |
getSystemObject()
Gibt das zugrundeliegende
SystemObject zurück. |
Data |
getValue(PrimitiveFormPropertyPair pair)
Gibt den aktuell gültigen Wert für das
pair zurück. |
void |
mapScaleChanged(double scale)
Diese Methode wird für die Listener aufgerufen, wenn eine Maßstabsänderung mitgeteilt werden muss.
|
void |
setDefaultType(int defaultType)
Setzt den Default-Type.
|
String |
toString()
Eine ausgabefreundliche Beschreibung des Objekts.
|
void |
update(ResultData[] results)
Aktualisierungsmethode, die nach Empfang eines angemeldeten Datensatzes von den Datenverteiler-Applikationsfunktionen aufgerufen wird.
|
private void |
update(ResultData result,
DOTSubscriptionData subscriptionData) |
private void |
updateResultCache(ResultData result,
DOTSubscriptionData subscriptionData) |
private final SystemObject _systemObject
private final DisplayObjectPainter _painter
private DisplayObjectType _currentDisplayObjectType
private Map<PrimitiveFormPropertyPair,DisplayObjectType.DisplayObjectTypeItem> _displayObjectTypeItems
private final Map<PrimitiveFormPropertyPair,Data> _values
private final DOTCollection _dotCollection
private int _defaultType
private final MapPane _mapPane
private Map<DisplayObjectType,Map<PrimitiveFormPropertyPair,DisplayObjectType.DisplayObjectTypeItem>> _resultCache
private static final Debug _debug
public DisplayObject(SystemObject systemObject, List<Object> coordinates, DisplayObjectPainter painter, DOTCollection dotCollection, Map<DisplayObjectType,List<PrimitiveFormPropertyPair>> primitiveFormPropertyPairs, MapPane mapPane)
DOTCollection
, eine speziell-aufbereitete Map mit mit Informationen
welche PrimitiveFormPropertyPair
-Objekte zu welchen Darstellungstypen gehören, und
schließlich die Kartenansicht, in der das Objekt gezeichnet werden soll, angegeben werden.
Die Konstruktion dieser Objekte ist eine der Aufgaben der Klasse DisplayObjectManager
.systemObject
- ein Systemobjektcoordinates
- die Koordinaten zum Default-Typepainter
- der PainterdotCollection
- die DOTCollcetionprimitiveFormPropertyPairs
- die Paare zu den DarstellungstypenmapPane
- die Kartenansichtpublic SystemObject getSystemObject()
SystemObject
zurück.public DisplayObjectType.DisplayObjectTypeItem getDisplayObjectTypeItem(PrimitiveFormPropertyPair pair)
DisplayObjectType.DisplayObjectTypeItem
für das pair
zurück.pair
- das Paarnull
, wenn kein solches existiertpublic Data getValue(PrimitiveFormPropertyPair pair)
pair
zurück.pair
- das Paarnull
, wenn kein solcher existiertpublic List<Object> getCoordinates(int type)
type
- der Koordinatentyppublic List<Object> getCoordinates()
public DisplayObjectPainter getPainter()
DisplayObjectPainter
zu dieses DisplayObject zurück.public DOTCollection getDOTCollection()
DOTCollection
zu diesem DisplayObject zurück.public Rectangle getBoundingRectangle(int type)
public Rectangle getBoundingRectangle()
public void update(ResultData[] results)
de.bsvrz.dav.daf.main.ClientReceiverInterface
update
in interface ClientReceiverInterface
results
- Feld mit den empfangenen Ergebnisdatensätzen.private DisplayObjectType.DisplayObjectTypeItem getDOTItemForState(DisplayObjectType displayObjectType, ResultData result, DOTSubscriptionData subscriptionData, PrimitiveFormPropertyPair pfPropertyPair)
private void update(ResultData result, DOTSubscriptionData subscriptionData)
private void updateResultCache(ResultData result, DOTSubscriptionData subscriptionData)
public void setDefaultType(int defaultType)
defaultType
- der Default-(Koordinaten-)Typpublic void mapScaleChanged(double scale)
MapPane.MapScaleListener
mapScaleChanged
in interface MapPane.MapScaleListener
scale
- der neue Maßstabsfaktorpublic String toString()
public MapPane getMapPane()