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

Method drawItem

src/main/java/Client/Group.java:71–91  ·  view source on GitHub ↗
(Graphics g, int ofs, boolean sel)

Source from the content-addressed store, hash-verified

69 }
70
71 public void drawItem(Graphics g, int ofs, boolean sel) {
72 int w=g.getClipWidth();
73 int h=g.getClipHeight();
74 int xo=g.getClipX();
75 int yo=g.getClipY();
76/*
77 if (!sel) {
78 int oldColor=g.getColor();
79 g.setColor(ColorTheme.getInstance().getColor(ColorTheme.LIST_BGND_EVEN));
80 g.fillRect(0, 0, w, h);
81
82 g.setColor(oldColor);
83 }
84*/
85 if (collapsed && unreadMessages>0) {
86 w -= il.getWidth();
87 il.drawImage(g, RosterIcons.ICON_MESSAGE_INDEX, w, (getVHeight() - il.getWidth()) >> 1);
88 }
89
90 super.drawItem(g, ofs, sel);
91 }
92
93 protected String mainbar(String mainbarStart) {
94 StringBuffer mb=new StringBuffer(mainbarStart)

Callers

nothing calls this directly

Calls 8

getWidthMethod · 0.65
getVHeightMethod · 0.65
drawItemMethod · 0.65
getClipWidthMethod · 0.45
getClipHeightMethod · 0.45
getClipXMethod · 0.45
getClipYMethod · 0.45
drawImageMethod · 0.45

Tested by

no test coverage detected