// calls abstract method drawEarthquake and then checks age and draws X if needed@OverridepublicvoiddrawMarker(PGraphics pg, float x, float y) {
// save previous styling
pg.pushStyle();
// determine color of marker from depth
colorDetermine(pg);
// call abstract method implemented in child class to draw marker shape
drawEarthquake(pg, x, y);
// IMPLEMENT: add X over marker if within past day Stringage= getStringProperty("age");
if ("Past Hour".equals(age) || "Past Day".equals(age)) {
pg.strokeWeight(2);
intbuffer=2;
pg.line(x-(radius+buffer), y-(radius+buffer), x+radius+buffer, y+radius+buffer);
pg.line(x-(radius+buffer), y+(radius+buffer), x+radius+buffer, y-(radius+buffer));
}
// reset to previous styling
pg.popStyle();
}