Java/Advanced Graphics/Tree — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 06:48, 1 июня 2010
Содержание
Custom Tree Layout
<source lang="java">
import java.awt.*; import javax.swing.*; import no.geosoft.cc.geometry.Geometry; import no.geosoft.cc.graphics.*;
/**
* G demo program. Demonstrates: **
-
*
- Nested GObject hierarchy *
- Style inheritance *
- Simple selection interaction *
* * @author
Graph Tree Model
Object HierarchyDemo
<source lang="java">
import java.awt.*; import javax.swing.*; import no.geosoft.cc.geometry.Geometry; import no.geosoft.cc.graphics.*;
/**
* G demo program. Demonstrates: **
-
*
- Nested GObject hierarchy *
- Style inheritance *
- Simple selection interaction *
* * @author
Object Reparent
<source lang="java">
import java.awt.*; import javax.swing.*; import no.geosoft.cc.graphics.*;
/**
* G demo program. Demonstrates: **
-
*
- A sample game application *
- Graphics animation *
- GObject reparenting *
* * @author
Style inheritance
<source lang="java">
import java.awt.*; import javax.swing.*; import no.geosoft.cc.geometry.Geometry; import no.geosoft.cc.graphics.*;
/**
* G demo program. Demonstrates: **
-
*
- Nested GObject hierarchy *
- Style inheritance *
- Simple selection interaction *
* * @author