Class GeometryDrawerGraphics

    • Constructor Detail

      • GeometryDrawerGraphics

        public GeometryDrawerGraphics(CoordinateTransformer ct,
                                      int width,
                                      int height)
        Create a new implementation of the PolygonDrawer interface.
        Parameters:
        ct - the transformation applied to coordinates.
        width - the width of the image in pixels.
        height - the height of the image in pixels.
    • Method Detail

      • getGraphics

        public abstract Graphics2D getGraphics()
        Returns:
        the graphics objects used for drawing.
      • setColorBackground

        public void setColorBackground(ColorCode c)
      • setColorForeground

        public void setColorForeground(ColorCode c)
      • setLineWidth

        public void setLineWidth(double width)
      • drawCircle

        public void drawCircle(double x,
                               double y,
                               double radius,
                               DrawMode mode)
      • drawSegment

        public void drawSegment(double x1,
                                double y1,
                                double x2,
                                double y2)
      • drawRectangleAbsolute

        public void drawRectangleAbsolute(double x1,
                                          double y1,
                                          double x2,
                                          double y2,
                                          DrawMode mode)
      • drawRectangle

        public void drawRectangle(double x,
                                  double y,
                                  double width,
                                  double height,
                                  DrawMode mode)
      • drawRectangleCentered

        public void drawRectangleCentered(double x,
                                          double y,
                                          double width,
                                          double height,
                                          DrawMode mode)
      • drawString

        public void drawString(double x,
                               double y,
                               String text,
                               int fontsize,
                               int xoff,
                               int yoff)