cib.cad.kernel
Interface View

All Known Subinterfaces:
ViewController
All Known Implementing Classes:
AxisView, BasicViewController, BoundingBoxView, ControlPointView, ImageView, ShapeView, TextView

public interface View

A view is the graphical representation of a component. A component's views are controlled by a view controller.

Version:
$Revision: 1684 $, $Author: svn-firmenich $, $Date: 2011-08-12 16:55:42 +0200 (Fri, 12 Aug 2011) $
Author:
Berthold Firmenich

Method Summary
 void draw(java.awt.Graphics g)
          Request to draw.
 java.awt.geom.Rectangle2D getBounds()
          Gets the bounds of this view.
 boolean intersects(java.awt.geom.Rectangle2D r)
          Tests whether the view intersects a rectangle.
 

Method Detail

draw

void draw(java.awt.Graphics g)
Request to draw.

Parameters:
g - the graphics

intersects

boolean intersects(java.awt.geom.Rectangle2D r)
Tests whether the view intersects a rectangle.

Parameters:
r - the rectangle
Returns:
true if the view intersects the rectangle

getBounds

java.awt.geom.Rectangle2D getBounds()
Gets the bounds of this view.

Returns:
the bounds