MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / paint

Method paint

ij/src/main/java/ij/gui/ProgressBar.java:132–140  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

130 }
131
132 public void paint(Graphics g) {
133 if (showBar) {
134 fill3DRect(g, x - 1, y - 1, width + 1, height + 1);
135 drawBar(g);
136 } else {
137 g.setColor(backgroundColor);
138 g.fillRect(0, 0, canvasWidth, canvasHeight);
139 }
140 }
141
142 void drawBar(Graphics g) {
143 int barEnd = (int) (width * slowX);

Callers 1

updateMethod · 0.95

Calls 4

fill3DRectMethod · 0.95
drawBarMethod · 0.95
fillRectMethod · 0.80
setColorMethod · 0.65

Tested by

no test coverage detected