Lines Matching refs:mi
57 private JMenuItem mi;
103 public MenuItemLayoutHelper(JMenuItem mi, Icon checkIcon, Icon arrowIcon,
107 reset(mi, checkIcon, arrowIcon, viewRect, gap, accDelimiter,
111 protected void reset(JMenuItem mi, Icon checkIcon, Icon arrowIcon,
115 this.mi = mi;
116 this.miParent = getMenuItemParent(mi);
118 this.verticalAlignment = mi.getVerticalAlignment();
119 this.horizontalAlignment = mi.getHorizontalAlignment();
120 this.verticalTextPosition = mi.getVerticalTextPosition();
121 this.horizontalTextPosition = mi.getHorizontalTextPosition();
125 this.fm = mi.getFontMetrics(font);
126 this.accFm = mi.getFontMetrics(accFont);
135 this.text = mi.getText();
139 this.htmlView = (View) mi.getClientProperty(BasicHTML.propertyKey);
162 int lsb = SwingUtilities2.getLeftSideBearing(mi, fm, str);
180 KeyStroke accelerator = mi.getAccelerator();
207 icon = mi.getIcon();
259 accSize.width = SwingUtilities2.stringWidth(mi, accFm, accText);
275 textSize.width = SwingUtilities2.stringWidth(mi, fm, text);
301 SwingUtilities.layoutCompoundLabel(mi, fm, text, icon,
387 JMenuItem mi) {
388 assert(mi != null);
389 return isColumnLayout(isLeftToRight, mi.getHorizontalAlignment(),
390 mi.getHorizontalTextPosition(), mi.getVerticalTextPosition());
720 mi, fm, text,icon, verticalAlignment, horizontalAlignment,
862 return mi;
985 protected void setMenuItem(JMenuItem mi) {
986 this.mi = mi;