SimulationCanvas
Canvas component responsible for rendering the simulation environment. Supports static layer caching for improved performance.
Value parameters
- insideConfiguration
-
If true, the static layer is recreated on every paint and robot sensor lines are not drawn (for configuration preview)
Attributes
- Graph
-
- Supertypes
-
trait EnvironmentDrawingclass JPaneltrait Accessibleclass JComponentclass Containerclass Componenttrait Serializabletrait MenuContainertrait ImageObserverclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- JComponent
- Supertypes
-
class Objecttrait Matchableclass Any
Inherited and Abstract classlikes
Attributes
- Inherited from:
- JComponent
- Supertypes
-
trait AccessibleExtendedComponenttrait AccessibleComponenttrait Serializableclass AccessibleContextclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Adds a mouse-click listener for robot selection.
Adds a mouse-click listener for robot selection.
Value parameters
- onSelect
-
Callback function called with robot ID when clicked
Attributes
Attributes
- Definition Classes
-
JComponent
Updates the canvas with new environment data.
Updates the canvas with new environment data.
Value parameters
- env
-
The environment to render
- selectedId
-
Optional ID of the selected robot
Attributes
Inherited methods
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Calculates viewport transformation for centering and scaling.
Calculates viewport transformation for centering and scaling.
Value parameters
- env
-
The environment to fit in the viewport
- height
-
Target height in pixels
- width
-
Target width in pixels
Attributes
- Returns
-
Viewport configuration
- Inherited from:
- EnvironmentDrawing
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Draws all robots in the environment.
Draws all robots in the environment.
Value parameters
- env
-
Environment containing robots
- g
-
Graphics context
- selectedId
-
Optional ID of the selected robot
- vp
-
Viewport configuration
Attributes
- Inherited from:
- EnvironmentDrawing
Draws the robot's circular body with gradient and border.
Draws the robot's circular body with gradient and border.
Value parameters
- g
-
Graphics context
- isSelected
-
True if this robot is currently selected
- radius
-
Radius of the robot
- robot
-
The robot to draw
- vp
-
Viewport configuration
Attributes
- Inherited from:
- EnvironmentDrawing
Draws an arrow indicating the robot's orientation.
Draws an arrow indicating the robot's orientation.
Value parameters
- g
-
Graphics context
- radius
-
Radius of the robot
- robot
-
The robot to draw
- vp
-
Viewport configuration
Attributes
- Inherited from:
- EnvironmentDrawing
Draws the coordinate grid.
Draws the coordinate grid.
Value parameters
- env
-
Environment for dimensions
- g
-
Graphics context
- vp
-
Viewport configuration
Attributes
- Inherited from:
- EnvironmentDrawing
Draws coordinate labels with adaptive stepping.
Draws coordinate labels with adaptive stepping.
Value parameters
- env
-
Environment for dimensions
- g
-
Graphics context
- vp
-
Viewport configuration
Attributes
- Inherited from:
- EnvironmentDrawing
Draws sensor detection lines for a robot.
Draws sensor detection lines for a robot.
Value parameters
- env
-
Environment for sensor readings
- g
-
Graphics context
- radius
-
Radius of the robot
- robot
-
The robot whose sensors to draw
- vp
-
Viewport configuration
Attributes
- Inherited from:
- EnvironmentDrawing
Draws all static entities (obstacles and lights).
Draws all static entities (obstacles and lights).
Value parameters
- env
-
Environment containing entities
- g
-
Graphics context
- vp
-
Viewport configuration
Attributes
- Inherited from:
- EnvironmentDrawing
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JPanel
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JPanel
Attributes
- Inherited from:
- JPanel
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JPanel
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Container
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JComponent
Attributes
- Inherited from:
- JPanel
Attributes
- Inherited from:
- Container
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Container
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- JComponent
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Component