Interface ShapePainter
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ShapePainter
Interface to define the actual shape drawing done by an Outliner. It contains a single method,paintPoint
, which is called once for each point.- Since:
- 6 Nov 2015
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
paintPoint(Tuple tuple, java.awt.Color color, Paper paper)
Paints a point given the current state.
-
-
-
Method Detail
-
paintPoint
void paintPoint(Tuple tuple, java.awt.Color color, Paper paper)
Paints a point given the current state. If the suppliedcolor
is non-null, then this painter must take steps to colour its painting. Otherwise, it should use the defaults for the graphics context on which it's painting.- Parameters:
tuple
- tuplecolor
- colour, or null for defaultpaper
- graphics destination
-
-