public void setConstructs(List<DLExpressivityChecker.Construct> constructs) { icons.clear(); for (DLExpressivityChecker.Construct constuct : constructs) { Icon curIcon = ExpressivityIcons.getIcon(constuct); if (curIcon != null) { icons.add(curIcon); if (curIcon.getIconHeight() > maxHeight) { maxHeight = curIcon.getIconHeight(); } maxWidth += curIcon.getIconWidth() + TRACKING_ADJUSTMENT; } } repaint(0, 0, getWidth(), getHeight()); }
public void setConstructs(List<DLExpressivityChecker.Construct> constructs) { icons.clear(); for (DLExpressivityChecker.Construct constuct : constructs) { Icon curIcon = ExpressivityIcons.getIcon(constuct); if (curIcon != null) { icons.add(curIcon); if (curIcon.getIconHeight() > maxHeight) { maxHeight = curIcon.getIconHeight(); } maxWidth += curIcon.getIconWidth() + TRACKING_ADJUSTMENT; } } repaint(0, 0, getWidth(), getHeight()); }
public void setConstructs(List<DLExpressivityChecker.Construct> constructs) { icons.clear(); for (DLExpressivityChecker.Construct constuct : constructs) { Icon curIcon = ExpressivityIcons.getIcon(constuct); if (curIcon != null) { icons.add(curIcon); if (curIcon.getIconHeight() > maxHeight) { maxHeight = curIcon.getIconHeight(); } maxWidth += curIcon.getIconWidth() + TRACKING_ADJUSTMENT; } } repaint(0, 0, getWidth(), getHeight()); }