Class AbstractRegionShapeCellRenderer

    • Method Detail

      • getSingleColor

        protected abstract java.awt.Color getSingleColor​(Region r)
      • getColor

        protected abstract java.awt.Color[] getColor​(Region r)
      • render

        public void render​(java.lang.Object obj,
                           boolean active,
                           boolean selected)
        Description copied from interface: MapCellRenderer
        Renders the supplied object. The active and selected parameters influence how the object is drawn.
        Specified by:
        render in interface MapCellRenderer
        Specified by:
        render in class HexCellRenderer
        obj - This object is going to be displayed (typically a region).
        active - Indicates if the object is the currently active object.
        selected - Indicates if the object is the currently selected.
        See Also:
        HexCellRenderer.render(java.lang.Object, boolean, boolean)
      • paintRegion

        protected void paintRegion​(java.awt.Graphics g,
                                   java.awt.Polygon p,
                                   Region r)
        Paints the specified region.