ChartCat 1.2

li.netcat.chart
Interface Layout

All Known Subinterfaces:
IteratableLayout
All Known Implementing Classes:
ElementLayout

public interface Layout

Interface of a graphical object that has bounds and knows how to paint itself. Layouts are immutable. Once created, a layout does not change its bounds and the paint method always produces the same result. When properties or the data model changes, a new instance of a layout object must be created by the correspondent Part.

Author:
Arthur Marxer

Method Summary
 java.awt.Rectangle getBounds()
          Returns the bounds of this layout.
 LogicalPoint getLogicalPoint(java.awt.Point p)
          Returns a logic point for a given physcal point.
 void paint(java.awt.Graphics g)
          Paints this layout to the given graphics.
 

Method Detail

getBounds

public java.awt.Rectangle getBounds()
Returns the bounds of this layout. The bounds may lay somewhere in the coordinate system, even in negative areas.

Returns:
The bounds of this layout, never null.

paint

public void paint(java.awt.Graphics g)
Paints this layout to the given graphics.

Parameters:
g - The target graphics object.

getLogicalPoint

public LogicalPoint getLogicalPoint(java.awt.Point p)
Returns a logic point for a given physcal point. The logic point carries information about the underlying data model and the current indices of the model. This method is used to display for example a tooltip at the position of the mouse cursor or to implement a drill down mechanism.

Parameters:
p - The point relative to the coordinate system of this layout.
Returns:
A logic point or null if the given point is not inside a shape.

ChartCat 1.2

Copyright 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print