Schnittstelle VehicleTheme
public interface VehicleTheme
Provides a vehicle theme.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungProvides a label that describes this vehicle.Provides the color to be used for drawing the label.Provides the font to be used for drawing the label.int
Provides the vertical offset of the label relative to the center of the vehicle figure.int
Provides the vertical offset of the label relative to the center of the vehicle figure.statefulImage
(Vehicle vehicle) Returns an image for the given vehicle, representing its current state.statelessImage
(Vehicle vehicle) Returns an image for the given vehicle, disregarding its current state.
-
Methodendetails
-
statelessImage
Returns an image for the given vehicle, disregarding its current state.- Parameter:
vehicle
- The vehicle for which to return the image.- Gibt zurück:
- An image for the given vehicle.
-
statefulImage
Returns an image for the given vehicle, representing its current state.- Parameter:
vehicle
- The vehicle for which to return the image.- Gibt zurück:
- An image for the given vehicle.
-
label
Provides a label that describes this vehicle. Usually this is the name of the vehicle or an abbreviation.- Parameter:
vehicle
- The vehicle to provide a label for.- Gibt zurück:
- A label that describes the given vehicle.
-
labelOffsetX
int labelOffsetX()Provides the vertical offset of the label relative to the center of the vehicle figure.- Gibt zurück:
- The horizontal offset.
-
labelOffsetY
int labelOffsetY()Provides the vertical offset of the label relative to the center of the vehicle figure.- Gibt zurück:
- The vertical offset.
-
labelColor
Color labelColor()Provides the color to be used for drawing the label.- Gibt zurück:
- The color to be used for drawing the label.
-
labelFont
Font labelFont()Provides the font to be used for drawing the label.- Gibt zurück:
- The font to be used for drawing the label.
-