Java/Advanced Graphics/Geometry

Материал из Java эксперт
Версия от 09:48, 1 июня 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

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