00001 package org.math.plot.plotObjects;
00002
00003 import java.awt.*;
00004
00005 import org.math.plot.*;
00006 import org.math.plot.canvas.*;
00007 import org.math.plot.render.*;
00008
00015 public class BaseLabel extends Label {
00016
00017 public BaseLabel(String l, Color c, double... rC) {
00018 super(l, c, rC);
00019 }
00020
00021
00022
00023
00024
00025 public static void main(String[] args) {
00026 Plot3DCanvas p3d = new Plot3DCanvas(new double[] { 0, 0, 0 }, new double[] { 10, 10, 10 }, new String[] { "lin", "lin", "lin" }, new String[] { "x",
00027 "y", "z" });
00028 new FrameView(p3d);
00029
00030 p3d.addPlotable(new BaseLabel("label", Color.RED, new double[] { -0.1, 0.5, 0.5 }));
00031 }
00032
00033 public void plot(AbstractDrawer draw) {
00034 draw.setColor(color);
00035 draw.setFont(font);
00036 draw.setTextAngle(angle);
00037 draw.setTextOffset(cornerE, cornerN);
00038 draw.drawTextBase(label, coord);
00039 }
00040
00041 }