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

Method MultiLine

src/main/java/ui/controls/form/MultiLine.java:66–82  ·  view source on GitHub ↗

Creates a new instance of MultiLine

(String caption, String text)

Source from the content-addressed store, hash-verified

64 * Creates a new instance of MultiLine
65 */
66 public MultiLine(String caption, String text) {
67 super(null);
68 this.text=text;
69 this.caption=caption;
70
71 font=FontCache.getFont(false, FontCache.msg);
72 fontHeight=font.getHeight();
73 itemHeight=fontHeight;
74
75 this.width = VirtualCanvas.getInstance().getList().getListWidth();
76
77 if (caption!=null) {
78 captionFont=FontCache.getFont(true, FontCache.msg);
79 captionFontHeight=captionFont.getHeight();
80 itemHeight=captionFontHeight;
81 }
82 }
83
84 public String getValue() {
85 return text;

Callers

nothing calls this directly

Calls 5

getFontMethod · 0.95
getInstanceMethod · 0.95
getListWidthMethod · 0.80
getHeightMethod · 0.65
getListMethod · 0.45

Tested by

no test coverage detected