Logo Search packages:      
Sourcecode: wims version File versions  Download package

Axes GenericGraphApplet::makeAxes (  )  [inline, protected]

Construct a set of Axes, based on applet params "AxesColor", "AxesLightColor", "XLabel", "YLabel", "LabelColor".

Definition at line 246 of file GenericGraphApplet.java.

References getColorParam(), getParameter(), edu::hws::jcm::draw::Axes::setAxesColor(), edu::hws::jcm::draw::Axes::setLabelColor(), edu::hws::jcm::draw::Axes::setLightAxesColor(), edu::hws::jcm::draw::Axes::setXLabel(), and edu::hws::jcm::draw::Axes::setYLabel().

Referenced by setUpCanvas().

                             {
      Axes axes = new Axes();
      Color color = getColorParam("AxesColor");
      if (color != null)
         axes.setAxesColor(color);
      color = getColorParam("AxesLightColor");
      if (color != null)
         axes.setLightAxesColor(color);
      String str = getParameter("XLabel");
      if (str != null)
          axes.setXLabel(str);
      str = getParameter("YLabel");
          axes.setYLabel(str);
      color = getColorParam("LabelColor");
      if (color != null)
         axes.setLabelColor(color);
      return axes;
   }


Generated by  Doxygen 1.6.0   Back to index