public void draw(final Graphics render) { // TODO color final CapturedModel model = getModel(); if (model != null) { model.draw(render); } else { getLocation().draw(render); } }
public boolean interact(final String action, final String option) { final CapturedModel model = getModel(); return model != null ? model.interact(action, option) : getLocation().interact(action, option); }
public boolean hover() { final CapturedModel model = getModel(); return model != null ? model.hover() : getLocation().hover(); }
public boolean click(final boolean left) { final CapturedModel model = getModel(); return model != null ? model.click(left) : getLocation().click(left); }
public Polygon[] getBounds() { final CapturedModel model = getModel(); return model != null ? model.getBounds() : getLocation().getBounds(); }
public boolean isOnScreen() { final CapturedModel model = getModel(); return model != null ? model.isOnScreen() : getLocation().isOnScreen(); }
public boolean contains(final Point point) { final CapturedModel model = getModel(); return model != null ? model.contains(point) : getLocation().contains(point); }
public Point getNextViewportPoint() { final CapturedModel model = getModel(); return model != null ? model.getNextViewportPoint() : getLocation().getNextViewportPoint(); }
public Point getCentralPoint() { final CapturedModel model = getModel(); return model != null ? model.getCentralPoint() : getLocation().getCentralPoint(); }