public class RouteGrafic extends java.lang.Object implements Grafic
Border_Default, BOUNDARY_WIDTH, COLOR_BACKGROUND, COLOR_BORDER, COLOR_FOREGROUND, COLOR_INFOPANE_MARKED, COLOR_SWITCH_BACKGROUND, COLOR_SWITCH_STOCK_BOUND, COLOR_ZOOM_MARKER, FONT_BIG, FONT_DEFAULT, FONT_SMALL, LAYER_BACKGROUND, LAYER_BackGroundElement, LAYER_BackGroundLine, LAYER_Bin, LAYER_ENTITY, LAYER_LIST, LAYER_MARKER, LAYER_PROCESS, LAYER_PROCESS_LINE_LIST, LAYER_RESOURCE, LAYER_ROUTE_DYNAMIC, LAYER_ROUTE_STATIC, LAYER_STATION, LAYER_STATISTIC, LAYER_STOCK, LAYER_WAITING_QUEUE, layer0, STATION_DEFAULT_DIMENSION
Constructor and Description |
---|
RouteGrafic(Route route,
java.awt.Point[] pointsExtern,
long time)
called by Route
|
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
getBoundsExtern() |
static java.awt.Rectangle |
getBoundsExternGlobal(Model model,
java.lang.String viewId)
Construct the smallest rectangle,
which include the positions of all routes in view
|
desmoj.extensions.visualization2d.engine.modelGrafic.RouteGrafic.RouteDynamicGrafic |
getRouteDynamicGrafic() |
desmoj.extensions.visualization2d.engine.modelGrafic.RouteGrafic.RouteStaticGrafic |
getRouteStaticGrafic() |
java.lang.String |
getViewId() |
static java.lang.String[] |
getViews(Model model)
get all views (viewId's) with Route
|
void |
transform(long time)
determine internal points for painting route
|
void |
update(long time)
update entities on route
|
static void |
updateInit(Model model,
java.lang.String viewId,
long time)
called by ViewGrafic by view or zoom change
|
public RouteGrafic(Route route, java.awt.Point[] pointsExtern, long time)
route
- pointsExtern
- time
- public static java.lang.String[] getViews(Model model)
model
- public static java.awt.Rectangle getBoundsExternGlobal(Model model, java.lang.String viewId)
model
- viewId
- id of viewpublic static void updateInit(Model model, java.lang.String viewId, long time)
model
- viewId
- time
- public java.lang.String getViewId()
public void transform(long time)
time
- actual simulationTimepublic java.awt.Rectangle getBoundsExtern()
public desmoj.extensions.visualization2d.engine.modelGrafic.RouteGrafic.RouteStaticGrafic getRouteStaticGrafic()
public desmoj.extensions.visualization2d.engine.modelGrafic.RouteGrafic.RouteDynamicGrafic getRouteDynamicGrafic()
public void update(long time)
time
- actual simulation time