public class ArrowPainter
extends java.lang.Object
Constructor and Description |
---|
ArrowPainter(ColorProvider colorHolder,
Computable<java.lang.Integer> widthProvider,
Computable<java.lang.Integer> heightProvider)
Creates an ArrowPainter with specified parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
paint(java.awt.Graphics g,
int y,
int start,
int stop)
Paints arrow at the given graphics buffer using given coordinate parameters.
|
public ArrowPainter(ColorProvider colorHolder, Computable<java.lang.Integer> widthProvider, Computable<java.lang.Integer> heightProvider)
colorHolder
- defines arrow colorwidthProvider
- defines character width, it is used to calculate an inset for the arrow's tipheightProvider
- defines character height, it's used to calculate an arrow's width and heightpublic void paint(java.awt.Graphics g, int y, int start, int stop)
g
- target graphics buffer to usey
- defines baseline of the row where the arrow should be paintedstart
- starting 'x'
position to use during drawingstop
- ending 'x'
position to use during drawing