Package org.baseagent.ui.defaults
Class VisualizationLibrary
java.lang.Object
org.baseagent.ui.defaults.VisualizationLibrary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
drawArrow
(javafx.scene.canvas.GraphicsContext graphics, double x1, double y1, double x2, double y2, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, int thickness, boolean drawPointAtOrigin, boolean drawPointAtDestination) static void
drawArrow
(javafx.scene.canvas.GraphicsContext graphics, int x1, int y1, int x2, int y2, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, int thickness, boolean drawPointAtOrigin, boolean drawPointAtDestination) static void
drawArrow
(GridCanvasContext gcc, double ax, double ay, double bx, double by, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, int thickness, boolean drawPointAtOrigin, boolean drawPointAtDestination) static void
drawArrow
(GridCanvasContext gcc, HasFineGridPosition a, HasFineGridPosition b, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, int thickness, boolean drawPointAtOrigin, boolean drawPointAtDestination) static void
drawArrow
(GridCanvasContext gcc, HasGridPosition a, HasGridPosition b, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, int thickness, boolean drawPointAtOrigin, boolean drawPointAtDestination) static void
drawCircle
(javafx.scene.canvas.GraphicsContext graphics, double centerX, double centerY, double xRadius, double yRadius, javafx.scene.paint.Color stroke) static void
drawCircleForCell
(GridCanvasContext gcc, int cellX, int cellY, double magnifier, javafx.scene.paint.Color stroke) static void
drawCircleForCell
(GridCanvasContext gcc, int cellX, int cellY, javafx.scene.paint.Color stroke) static void
drawEmbodiedAgent
(javafx.scene.canvas.GraphicsContext gcc, int x, int y, int width, int height, EmbodiedAgent embodied, javafx.scene.paint.Color color) static void
drawTriangleWithHeading
(javafx.scene.canvas.GraphicsContext graphics, double x, double y, int cellWidth, int cellHeight, double headingInRadians, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke) static void
fillCircle
(javafx.scene.canvas.GraphicsContext graphics, double centerX, double centerY, double xRadius, double yRadius, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill) static void
fillCircleForCell
(GridCanvasContext gcc, int cellX, int cellY, double magnifier, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill, double margin) static void
fillCircleForCell
(GridCanvasContext gcc, int cellX, int cellY, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill, double margin) static void
fillRect
(javafx.scene.canvas.GraphicsContext graphics, double x, double y, double width, double height, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill) static void
fillRectForCell
(GridCanvasContext gcc, int cellX, int cellY, double magnifier, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill, double margin) static void
fillRectForCell
(GridCanvasContext gcc, int cellX, int cellY, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill, double margin) static int
getCellXForGraphicX
(GridCanvasContext gcc, double graphicX) static int
getCellYForGraphicY
(GridCanvasContext gcc, double graphicY) static int
getGraphicXForCellX
(GridCanvasContext gcc, int cellX) static int
getGraphicYForCellY
(GridCanvasContext gcc, int cellY)
-
Constructor Details
-
VisualizationLibrary
public VisualizationLibrary()
-
-
Method Details
-
drawTriangleWithHeading
public static void drawTriangleWithHeading(javafx.scene.canvas.GraphicsContext graphics, double x, double y, int cellWidth, int cellHeight, double headingInRadians, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke) -
drawCircle
public static void drawCircle(javafx.scene.canvas.GraphicsContext graphics, double centerX, double centerY, double xRadius, double yRadius, javafx.scene.paint.Color stroke) -
drawCircleForCell
public static void drawCircleForCell(GridCanvasContext gcc, int cellX, int cellY, javafx.scene.paint.Color stroke) -
drawCircleForCell
public static void drawCircleForCell(GridCanvasContext gcc, int cellX, int cellY, double magnifier, javafx.scene.paint.Color stroke) -
fillCircle
public static void fillCircle(javafx.scene.canvas.GraphicsContext graphics, double centerX, double centerY, double xRadius, double yRadius, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill) -
fillCircleForCell
public static void fillCircleForCell(GridCanvasContext gcc, int cellX, int cellY, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill, double margin) -
fillCircleForCell
public static void fillCircleForCell(GridCanvasContext gcc, int cellX, int cellY, double magnifier, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill, double margin) -
fillRect
public static void fillRect(javafx.scene.canvas.GraphicsContext graphics, double x, double y, double width, double height, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill) -
fillRectForCell
public static void fillRectForCell(GridCanvasContext gcc, int cellX, int cellY, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill, double margin) -
fillRectForCell
public static void fillRectForCell(GridCanvasContext gcc, int cellX, int cellY, double magnifier, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill, double margin) -
drawEmbodiedAgent
public static void drawEmbodiedAgent(javafx.scene.canvas.GraphicsContext gcc, int x, int y, int width, int height, EmbodiedAgent embodied, javafx.scene.paint.Color color) -
drawArrow
public static void drawArrow(GridCanvasContext gcc, HasGridPosition a, HasGridPosition b, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, int thickness, boolean drawPointAtOrigin, boolean drawPointAtDestination) -
drawArrow
public static void drawArrow(GridCanvasContext gcc, HasFineGridPosition a, HasFineGridPosition b, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, int thickness, boolean drawPointAtOrigin, boolean drawPointAtDestination) -
drawArrow
public static void drawArrow(GridCanvasContext gcc, double ax, double ay, double bx, double by, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, int thickness, boolean drawPointAtOrigin, boolean drawPointAtDestination) -
drawArrow
public static void drawArrow(javafx.scene.canvas.GraphicsContext graphics, double x1, double y1, double x2, double y2, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, int thickness, boolean drawPointAtOrigin, boolean drawPointAtDestination) -
drawArrow
public static void drawArrow(javafx.scene.canvas.GraphicsContext graphics, int x1, int y1, int x2, int y2, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, int thickness, boolean drawPointAtOrigin, boolean drawPointAtDestination) -
getGraphicXForCellX
-
getGraphicYForCellY
-
getCellXForGraphicX
-
getCellYForGraphicY
-