Java/Advanced Graphics/Tree
Содержание
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