MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / paint

Method paint

src/main/java/ui/VirtualCanvas.java:122–138  ·  view source on GitHub ↗
(Graphics graphics)

Source from the content-addressed store, hash-verified

120
121
122 protected void paint(Graphics graphics) {
123 VirtualList.width = getWidth();
124 VirtualList.height = getHeight();
125 graphics.setColor(ColorTheme.getColor(ColorTheme.LIST_BGND));
126 graphics.fillRect(0, 0, VirtualList.width, VirtualList.height);
127
128 try {
129 list.paint(graphics);
130 } catch(Exception e) {
131 if (sd.roster != null)
132 sd.roster.errorLog("list.paint exception: " + e.getClass() + " in " + list.getClass());
133 if (StaticData.Debug)
134 e.printStackTrace();
135 }
136 if (rw != null)
137 rw.draw(graphics, VirtualList.width, VirtualList.height);
138 }
139
140 protected final void keyPressed(int rawKeyCode) {
141 int keyCode = getKeyCode(rawKeyCode);

Callers

nothing calls this directly

Calls 8

getColorMethod · 0.95
errorLogMethod · 0.80
getWidthMethod · 0.65
getHeightMethod · 0.65
paintMethod · 0.65
setColorMethod · 0.45
fillRectMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected