Package org.baseagent.ui.defaults
Class VisualizationLibrary
java.lang.Object
org.baseagent.ui.defaults.VisualizationLibrary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawArrow(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 voiddrawArrow(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 voiddrawArrow(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 voiddrawArrow(GridCanvasContext gcc, HasFineGridPosition a, HasFineGridPosition b, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, int thickness, boolean drawPointAtOrigin, boolean drawPointAtDestination) static voiddrawArrow(GridCanvasContext gcc, HasGridPosition a, HasGridPosition b, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, int thickness, boolean drawPointAtOrigin, boolean drawPointAtDestination) static voiddrawCircle(javafx.scene.canvas.GraphicsContext graphics, double centerX, double centerY, double xRadius, double yRadius, javafx.scene.paint.Color stroke) static voiddrawCircleForCell(GridCanvasContext gcc, int cellX, int cellY, double magnifier, javafx.scene.paint.Color stroke) static voiddrawCircleForCell(GridCanvasContext gcc, int cellX, int cellY, javafx.scene.paint.Color stroke) static voiddrawEmbodiedAgent(javafx.scene.canvas.GraphicsContext gcc, int x, int y, int width, int height, EmbodiedAgent embodied, javafx.scene.paint.Color color) static voiddrawTriangleWithHeading(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 voidfillCircle(javafx.scene.canvas.GraphicsContext graphics, double centerX, double centerY, double xRadius, double yRadius, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill) static voidfillCircleForCell(GridCanvasContext gcc, int cellX, int cellY, double magnifier, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill, double margin) static voidfillCircleForCell(GridCanvasContext gcc, int cellX, int cellY, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill, double margin) static voidfillRect(javafx.scene.canvas.GraphicsContext graphics, double x, double y, double width, double height, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill) static voidfillRectForCell(GridCanvasContext gcc, int cellX, int cellY, double magnifier, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill, double margin) static voidfillRectForCell(GridCanvasContext gcc, int cellX, int cellY, javafx.scene.paint.Color stroke, javafx.scene.paint.Color fill, double margin) static intgetCellXForGraphicX(GridCanvasContext gcc, double graphicX) static intgetCellYForGraphicY(GridCanvasContext gcc, double graphicY) static intgetGraphicXForCellX(GridCanvasContext gcc, int cellX) static intgetGraphicYForCellY(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
-