Java/Advanced Graphics/Geometry — различия между версиями

Материал из Java эксперт
Перейти к: навигация, поиск
 
м (1 версия)
 
(нет различий)

Текущая версия на 06:48, 1 июня 2010

Advanced geometry generation

   <source lang="java">

import java.util.Calendar; import java.util.Timer; import java.util.TimerTask; import java.awt.*; import javax.swing.*; import no.geosoft.cc.geometry.Geometry; import no.geosoft.cc.geometry.Matrix4x4; import no.geosoft.cc.graphics.*;

/**

* G demo program. Demonstrates:
*
*
    *
  • Advaced geometry generation *
  • Dynamic update *
  • Threading *
* 
* @author 


Draw Radiation: Annotation layout mechanism, Visibility settings, Custom linestyle

   <source lang="java">

import java.awt.*; import java.awt.event.*; import javax.swing.*; import no.geosoft.cc.geometry.Geometry; import no.geosoft.cc.geometry.Matrix4x4; import no.geosoft.cc.graphics.*;

/**

* G demo program. Demonstrates:
*
*
    *
  • Annotation layout mechanism *
  • Visibility settings *
  • Custom linestyle *
* 
* @author 


Draw String and Star

   <source lang="java">

import java.awt.*; import javax.swing.*; import no.geosoft.cc.geometry.Geometry; import no.geosoft.cc.graphics.*;

/**

* G demo program. Demonstrates:
*
*
    *
  • Basic graphic window and scene setup *
  • Setting canvas background color *
  • Basic scene composition *
  • The use of style *
  • Example geometry generation *
  • Simple annotation with positioning *
* 
* @author 


Embedded AWT components, Custom selection interaction, Dynamic annotations

   <source lang="java">

import java.awt.*; import java.awt.event.*; import javax.swing.*; import no.geosoft.cc.geometry.Geometry; import no.geosoft.cc.graphics.*;

/**

* G demo program. Demonstrates:
*
*
    *
  • An actual game application *
  • Embedded AWT components *
  • Custom selection interaction *
  • Dynamic annotations *
  • Geomtry generation *
* 
* @author 


Geometry Generation

   <source lang="java">

import java.awt.*; import java.awt.event.*; import java.text.*; import javax.swing.*; import no.geosoft.cc.geometry.Geometry; import no.geosoft.cc.graphics.*;

/**

* G demo program. Demonstrates:
*
*
    *
  • A math application *
  • Polyline performance *
  • Geometry generation *
* 
* @author 


Update World Extent Geometry

   <source lang="java">

import java.awt.*; import java.awt.event.*; import javax.swing.*; import no.geosoft.cc.geometry.Geometry; import no.geosoft.cc.graphics.*;

/**

* G demo program. Demonstrates:
*
*
    *
  • Custom move interaction *
  • Switching interactions *
  • Update world extent geometry *
  • Scroll handling *
* 
* @author