MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / drawItem

Method drawItem

src/main/java/ui/controls/form/ImageItem.java:85–94  ·  view source on GitHub ↗
(Graphics g, int ofs, boolean sel)

Source from the content-addressed store, hash-verified

83 }
84
85 public void drawItem(Graphics g, int ofs, boolean sel) {
86 screenWidth=g.getClipWidth();
87 if (img != null && img.getWidth() > 0) {
88 if (!collapsed) {
89 g.drawImage(img, screenWidth/2, 0, Graphics.TOP|Graphics.HCENTER);
90 }
91 }
92 VirtualCanvas.getInstance().repaint();
93 super.drawItem(g, ofs, sel);
94 }
95
96 public boolean isSelectable() { return selectable; }
97}

Callers

nothing calls this directly

Calls 6

getInstanceMethod · 0.95
getWidthMethod · 0.65
repaintMethod · 0.65
drawItemMethod · 0.65
getClipWidthMethod · 0.45
drawImageMethod · 0.45

Tested by

no test coverage detected