public class CubicSubdivision extends DisplayPanel { /** * The paintable sequence variable that will represent * the cubic subdivision structure. * * This sequence will be constructed just before it is * time to display the cubic subdivision. * * This sequence will be placed in the tile. */ PaintableSequence sequence = null; /** The tile size. */ int size = 600; /** The tile bounds. */ XRect bounds = new XRect(0, 0, size, size); /** The tile to display the cubic structure. */ Tile tile = new Tile(); // The tile initialization. { tile.setDefaultBounds2D(bounds); } /** The paintable component to hold the tile. */ PaintableComponent tileComponent = new PaintableComponent(tile); // The tile component initialization. { tileComponent.setBackground(Colors.white); tileComponent.setOpaque(true); } /** * The tabbed pane to hold the cubic structure tab * and the cubic data tab. */ JTabbedPane tabbedPane = new JTabbedPane(); // The tabbed pane initialization. { tabbedPane.add("Cubic Structure", tileComponent); } /** The constructor to complete initialization. */ public CubicSubdivision() { add(tabbedPane); } /** * The main program to launch the cubic subdivision demo. * * @param args ignored */ public static void main(String[] args) { new CubicSubdivision().frame("Cubic Subdivision"); } }