package Current.plot.Plotters; import Current.basic.*; import Current.manage.*; import Current.popups.Deg100.*; import Current.plot.Dyadic.*; import java.awt.Color; import java.io.Serializable; import java.awt.Component; import java.awt.Canvas; /** * The billiard-like plot needs very little to do a plot. * * @author pat */ public class XPolyPlotter implements XPlotter, Serializable { /** Run the algorithm to plot the tile. */ public Tile plot(String word, Color C, Interrupter I, Manager M) { Deg100RationalPolygonPlotter DP=new Deg100RationalPolygonPlotter(M); DyadicTile DT=DP.specialPlot(word,C); if (DT!=null) DT.xp=new XPoly2Plotter(); return DT; } public Component getController(Manager M){ return new Canvas(); } public String getName() { return "poly"; } public boolean canRun() { return true; } // public HelpDocument document() { // return new HelpDocument("Plotting.html"); // } public Color getColor() { return new Color(255,255,0); } }