Interface PolygonMode.Glypher

  • Enclosing class:
    PolygonMode

    @Equality
    public static interface PolygonMode.Glypher
    Knows how to place polygons as glyphs.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void paintPolygon​(java.awt.Graphics g, int[] xs, int[] ys, int np)
      Paints a polygon with the given vertices in the style of this outliner to a graphics context.
      void placeGlyphs2D​(PaperType2D ptype, Paper paper, int[] gxs, int[] gys, int np, java.awt.Color color)
      Places zero or more glyphs on a given 2D paper instance corresponding to the supplied graphics vertices of a polygon.
      void placeGlyphs3D​(PaperType3D ptype, Paper paper, int[] gxs, int[] gys, int np, double gz, java.awt.Color color)
      Places zero or more glyphs on a given 3D paper instance corresponding to the supplied graphics vertices of a polygon.
    • Method Detail

      • paintPolygon

        void paintPolygon​(java.awt.Graphics g,
                          int[] xs,
                          int[] ys,
                          int np)
        Paints a polygon with the given vertices in the style of this outliner to a graphics context.
        Parameters:
        np - number of vertices
        xs - X coordinates of vertices
        ys - Y coordinates of vertices
      • placeGlyphs2D

        void placeGlyphs2D​(PaperType2D ptype,
                           Paper paper,
                           int[] gxs,
                           int[] gys,
                           int np,
                           java.awt.Color color)
        Places zero or more glyphs on a given 2D paper instance corresponding to the supplied graphics vertices of a polygon.
        Parameters:
        ptype - paper type
        paper - paper object
        gxs - np-element array giving graphics X vertex coordinates
        gys - np-element array giving graphics Y vertex coordinates
        np - number of polygon vertices
        color - colour with which to place glyph
      • placeGlyphs3D

        void placeGlyphs3D​(PaperType3D ptype,
                           Paper paper,
                           int[] gxs,
                           int[] gys,
                           int np,
                           double gz,
                           java.awt.Color color)
        Places zero or more glyphs on a given 3D paper instance corresponding to the supplied graphics vertices of a polygon.
        Parameters:
        ptype - paper type
        paper - paper object
        gxs - np-element array giving graphics X vertex coordinates
        gys - np-element array giving graphics Y vertex coordinates
        np - number of polygon vertices
        gz - graphics Z coordinate for polygon
        color - colour with which to place glyph