1 2 3 package org.catacomb.dataview.build; 4 5 6 import org.catacomb.datalish.Box; 7 import org.catacomb.datalish.SColor; 8 import org.catacomb.graph.gui.Painter; 9 import org.catacomb.numeric.data.DataExtractor; 10 import org.catacomb.report.E; 11 12 import java.awt.Color; 13 14 15 16 public class Displayable { 17 18 public String label; 19 public SColor color; 20 21 public String x; 22 public String y; 23 24 Color p_color; 25 26 27 private boolean doneErr = false; 28 29 public Color extractColor() { 30 return color.getColor(); 31 } 32 33 34 public Color getColor() { 35 if (p_color == null) { 36 p_color = extractColor(); 37 } 38 return p_color; 39 } 40 41 42 public void pushBox(Box b) { 43 E.missing("" + b); 44 } 45 46 47 48 public void markNeeded(DataExtractor dex) { 49 E.error("most override mark needed in " + getClass() + " " + dex); 50 } 51 52 public void getData(DataExtractor ex, int iframe) { 53 E.error("most override get data in " + getClass() + " " + ex + " " + iframe); 54 } 55 56 57 public void instruct(Painter p, int widthFactor) { 58 if (!doneErr) { 59 E.error("most override instruct in " + getClass() + p + " " + widthFactor); 60 doneErr = true; 61 } 62 } 63 64 }