public void addToolTips() { for (Feature feat : features) { feat.addTooltip(tooltip, mouseX, mouseY); } addToolTip(); }
@Override protected void mouseClicked(int par1, int par2, int par3) { super.mouseClicked(par1, par2, par3); for (Feature feat : features) { feat.mouseClicked(mouseX, mouseY); } onMouseClick(mouseX, mouseY); }
public void drawFeatures(int x, int y) { for (Feature feat : features) { feat.draw(this, x, y, mouseX, mouseY); } }