Java/Advanced Graphics/Interaction

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

Annotation, Interaction and Transparent Color Scale

   <source lang="java">

import java.util.Collection; import java.util.Iterator; 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:
*
*
    *
  • Annotation techniques *
  • Custom interaction *
  • Invisible lines with annotation *
  • Using transparent colors *
  • True scale resize *
* 
* @author 


Custom Interaction

   <source lang="java">

import java.util.List; import java.util.Iterator; import java.util.ArrayList; import java.awt.*; import javax.swing.*; import no.geosoft.cc.geometry.Geometry; import no.geosoft.cc.graphics.*;

/**

* G demo program. Demonstrates:
*
*
    *
  • A sample interactive game application *
  • Custom interaction *
  • Dynamic graphics highlighting *
* 
* @author 


Custom Move Interaction

   <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