Java/Advanced Graphics/Intersection

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

Dynamic Graphics Highlighting

   <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 


Lines Intersection

   <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.graphics.*;

/**

* G demo program. Demonstrates:
*
*
    *
  • Custom selection interaction *
  • Object detection features *
  • Style inheritance and manipulation *
  • Dynamic style setting *
* 
* @author