KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thoughtriver > open > vectorvisuals > VisualContainerObject


1 /*
2  * VisualContainerObject.java
3  *
4  * Created on 9 July 2003, 13:15
5  */

6
7 package com.thoughtriver.open.vectorvisuals;
8
9 import java.awt.*;
10 import java.awt.geom.*;
11
12 /**
13  * Instances of <CODE>VisualContainerObject</CODE> can be used when other
14  * <CODE>VisualObject</CODE>s need to be grouped and transformed together,
15  * but the container itself should be kept invisible.
16  *
17  * @author Brandon Franklin
18  * @version $Date: 2006/11/25 09:18:36 $
19  */

20 public class VisualContainerObject extends VisualObject {
21
22     /**
23      * Creates a new instance of <CODE>VisualContainerObject</CODE>.
24      */

25     public VisualContainerObject() {
26         super(new Area(), null, null);
27     }
28
29     /**
30      * Overridden to ensure that no rendering of this <CODE>VisualObject</CODE>
31      * occurs. Only embedded <CODE>VisualObject</CODE>s will be rendered.
32      *
33      * @param g the graphics context on which to render
34      */

35     @Override JavaDoc
36     public void renderObject(@SuppressWarnings JavaDoc("unused")
37     final Graphics2D g) {
38         // does nothing
39
}
40
41 }
42
Popular Tags