public interface Renderer
Modifier and Type | Field and Description |
---|---|
static int |
GRAB |
static int |
NONE |
static int |
ROTATION |
static int |
RULER |
static int |
TRANSLATION |
static java.awt.Color[] |
vehicleColors |
static int |
ZOOM |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener cl) |
void |
cleanup() |
void |
clearVehicleTail(java.lang.String[] vehicles)
Clears the vehicles tail.
|
void |
focusLocation(LocationType location)
Recenter the renderer in a way that the given location is centered on screen
|
void |
focusObject(AbstractElement mo)
Re-center the renderer in a way that the given object is centered on screen
|
void |
followVehicle(java.lang.String systemId) |
java.lang.String |
getLockedVehicle() |
MapGroup |
getMapGroup()
Gets the currently loaded maps
|
int |
getShowMode() |
void |
removeChangeListener(javax.swing.event.ChangeListener cl) |
void |
setMapGroup(MapGroup mapGroup)
Called for initialization of the renderers
|
void |
setVehicleTailOff(java.lang.String[] vehicles)
Sets the vehicles tail off.
|
void |
setVehicleTailOn(java.lang.String[] vehicles)
Sets the vehicles tail on.
|
void |
setViewMode(int mode)
Sets the current view mode:
1 -> Translation
2 -> Zoom
3 -> Rotation
4 -> Ruler
5 -> Grab/Move
-1 -> None
|
void |
vehicleStateChanged(java.lang.String systemId,
SystemPositionAndAttitude state)
This method is called whenever the vehicle state has changed or a new vehicle
has been added.
|
static final int TRANSLATION
static final int ZOOM
static final int ROTATION
static final int RULER
static final int GRAB
static final int NONE
static final java.awt.Color[] vehicleColors
void vehicleStateChanged(java.lang.String systemId, SystemPositionAndAttitude state)
systemId
- The vehicle whose statevoid setMapGroup(MapGroup mapGroup)
mapGroup
- The Group of Maps containing all the object to be renderedMapGroup getMapGroup()
void focusObject(AbstractElement mo)
mo
- The object to be focusedvoid focusLocation(LocationType location)
location
- The location to be focusedvoid setViewMode(int mode)
mode
- void followVehicle(java.lang.String systemId)
void addChangeListener(javax.swing.event.ChangeListener cl)
void removeChangeListener(javax.swing.event.ChangeListener cl)
int getShowMode()
java.lang.String getLockedVehicle()
void cleanup()
void setVehicleTailOn(java.lang.String[] vehicles)
vehicles
- If null sets all.void setVehicleTailOff(java.lang.String[] vehicles)
vehicles
- If null sets all.void clearVehicleTail(java.lang.String[] vehicles)
vehicles
- If null clears all.Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.