Java/Advanced Graphics/Interaction — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 06:48, 1 июня 2010
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