<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FAdvanced_Graphics%2FVector</id>
		<title>Java/Advanced Graphics/Vector - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FAdvanced_Graphics%2FVector"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Advanced_Graphics/Vector&amp;action=history"/>
		<updated>2026-04-21T12:59:45Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/Advanced_Graphics/Vector&amp;diff=7573&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Advanced_Graphics/Vector&amp;diff=7573&amp;oldid=prev"/>
				<updated>2010-06-01T06:48:09Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 06:48, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/Advanced_Graphics/Vector&amp;diff=7572&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Advanced_Graphics/Vector&amp;diff=7572&amp;oldid=prev"/>
				<updated>2010-05-31T18:01:45Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Vector data Graph ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.awt.*;&lt;br /&gt;
import java.applet.*;&lt;br /&gt;
import java.net.URL;&lt;br /&gt;
import graph.*;&lt;br /&gt;
/*************************************************************************&lt;br /&gt;
**&lt;br /&gt;
**    Applet example1b&lt;br /&gt;
**                                              Version 1.0   September 1996&lt;br /&gt;
**&lt;br /&gt;
**************************************************************************&lt;br /&gt;
**    Copyright (C) 1996 Leigh Brookshaw&lt;br /&gt;
**&lt;br /&gt;
**    This program is free software; you can redistribute it and/or modify&lt;br /&gt;
**    it under the terms of the GNU General Public License as published by&lt;br /&gt;
**    the Free Software Foundation; either version 2 of the License, or&lt;br /&gt;
**    (at your option) any later version.&lt;br /&gt;
**&lt;br /&gt;
**    This program is distributed in the hope that it will be useful,&lt;br /&gt;
**    but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
**    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;
**    GNU General Public License for more details.&lt;br /&gt;
**&lt;br /&gt;
**    You should have received a copy of the GNU General Public License&lt;br /&gt;
**    along with this program; if not, write to the Free Software&lt;br /&gt;
**    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.&lt;br /&gt;
**************************************************************************&lt;br /&gt;
**&lt;br /&gt;
**    This is a simple applet that demonstrates how to use the basic features&lt;br /&gt;
**    of the Plotting Class library. The data is vector data calculated &lt;br /&gt;
**    locally by the applet&lt;br /&gt;
**&lt;br /&gt;
*************************************************************************/&lt;br /&gt;
public class example1b extends Applet {&lt;br /&gt;
      G2Dint graph1;&lt;br /&gt;
      VectorSet data1;&lt;br /&gt;
      Axis    xaxis1;&lt;br /&gt;
      Axis    yaxis1;&lt;br /&gt;
      double data[];&lt;br /&gt;
      int npx = 20;&lt;br /&gt;
      int npy = 20;&lt;br /&gt;
      Label title;&lt;br /&gt;
      public void init() {&lt;br /&gt;
        int i;&lt;br /&gt;
        int j;&lt;br /&gt;
        int count;&lt;br /&gt;
        int kount;&lt;br /&gt;
        double x, y;&lt;br /&gt;
        double data[] = new double[4*npx*npy];&lt;br /&gt;
/*&lt;br /&gt;
**      Get the passed parameters&lt;br /&gt;
*/&lt;br /&gt;
        String st = &amp;quot;TITLE&amp;quot;;&lt;br /&gt;
/*&lt;br /&gt;
**      Create the Graph instance and modify the default behaviour&lt;br /&gt;
*/&lt;br /&gt;
        graph1 = new G2Dint();&lt;br /&gt;
//        graph1.square = true;&lt;br /&gt;
        graph1.drawzero = false;&lt;br /&gt;
        graph1.drawgrid = false;&lt;br /&gt;
        graph1.setDataBackground(new Color(255,230,200));&lt;br /&gt;
/*&lt;br /&gt;
**      Build the title&lt;br /&gt;
*/&lt;br /&gt;
        title = new Label(st, Label.CENTER);&lt;br /&gt;
        title.setFont(new Font(&amp;quot;TimesRoman&amp;quot;,Font.PLAIN,20));&lt;br /&gt;
&lt;br /&gt;
        this.setLayout( new BorderLayout() );&lt;br /&gt;
        this.add(&amp;quot;North&amp;quot;, title);&lt;br /&gt;
        this.add(&amp;quot;Center&amp;quot;, graph1);&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
**      Calculate the Vector Set.&lt;br /&gt;
*/&lt;br /&gt;
        count = 0;&lt;br /&gt;
        kount = 0;&lt;br /&gt;
        for(j=0; j&amp;lt;npy; j++) {&lt;br /&gt;
           y = -1.0 + j*2.0/((double)(npy-1));&lt;br /&gt;
           for(i=0; i&amp;lt;npx; i++) {&lt;br /&gt;
              x = -1.0 + i*2.0/((double)(npx-1));&lt;br /&gt;
        &lt;br /&gt;
              if( x*x + y*y &amp;lt;= 1 ) {&lt;br /&gt;
                 kount++;&lt;br /&gt;
                 &lt;br /&gt;
                 data[count++] = x;&lt;br /&gt;
                 data[count++] = y;&lt;br /&gt;
                 data[count++] = x;&lt;br /&gt;
                 data[count++] = y;&lt;br /&gt;
              }&lt;br /&gt;
           }&lt;br /&gt;
        }&lt;br /&gt;
        try {&lt;br /&gt;
              data1 = new VectorSet(data,kount);&lt;br /&gt;
        } catch(Exception e) {&lt;br /&gt;
    System.out.println(&amp;quot;Failed to load Vector Set!&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
  /*&lt;br /&gt;
  ** Set up the data&lt;br /&gt;
  */&lt;br /&gt;
        graph1.borderTop = 50;&lt;br /&gt;
        graph1.borderRight = 40;&lt;br /&gt;
        data1.linecolor   =  Color.red;&lt;br /&gt;
        data1.legend(&amp;quot;Standard Vector&amp;quot;);&lt;br /&gt;
/*&lt;br /&gt;
**      Attach the data set to the graph&lt;br /&gt;
*/&lt;br /&gt;
        graph1.attachDataSet(data1);&lt;br /&gt;
/*&lt;br /&gt;
**      Attach data set to the Xaxes&lt;br /&gt;
*/&lt;br /&gt;
        xaxis1 = graph1.createXAxis();&lt;br /&gt;
        xaxis1.attachDataSet(data1);&lt;br /&gt;
        xaxis1.setTitleText(&amp;quot;Xaxis&amp;quot;);&lt;br /&gt;
        xaxis1.setTitleFont(new Font(&amp;quot;TimesRoman&amp;quot;,Font.PLAIN,20));&lt;br /&gt;
        xaxis1.setLabelFont(new Font(&amp;quot;Helvetica&amp;quot;,Font.PLAIN,15));&lt;br /&gt;
/*&lt;br /&gt;
**      Attach the data set to the YAxis&lt;br /&gt;
*/&lt;br /&gt;
        yaxis1 = graph1.createYAxis();&lt;br /&gt;
        yaxis1.attachDataSet(data1);&lt;br /&gt;
        yaxis1.setTitleText(&amp;quot;Yaxis&amp;quot;);&lt;br /&gt;
        yaxis1.setTitleFont(new Font(&amp;quot;TimesRoman&amp;quot;,Font.PLAIN,20));&lt;br /&gt;
        yaxis1.setLabelFont(new Font(&amp;quot;Helvetica&amp;quot;,Font.PLAIN,15));&lt;br /&gt;
&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
      public static void main(String[] a){&lt;br /&gt;
         javax.swing.JFrame f = new javax.swing.JFrame();&lt;br /&gt;
         Applet app = new example1b();&lt;br /&gt;
         app.init();&lt;br /&gt;
         &lt;br /&gt;
         f.getContentPane().add (app);&lt;br /&gt;
         f.pack();&lt;br /&gt;
         f.setSize (new Dimension (500, 500));&lt;br /&gt;
         f.setVisible(true);&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>