lib
Interface IRenderer

All Known Implementing Classes:
PrintDiagramRenderer, StandardDiagramRenderer

public interface IRenderer

Objects that impelement IRenderer are used to provide pluggable painting support for diagrams, so that various styles can be implemented for the same information to be displayed in different ways.

Version:
1.0
Author:
CobaltSoftware (abode.devteam@cobaltsoftware.net)

Method Summary
 double getZoomLevel()
          Get the zoom level of this diagram
 void layoutNodes(JDiagram diagram, JTreeNode root)
          Lay out a hierarchy of nodes onto the diagram.
 void paintDiagram(JDiagram diagram, java.awt.Graphics graphics)
          Paint a diagrams backgrounds and the connecting lines between elements of a tree.
 void paintTreeNode(JTreeNode node, java.awt.Graphics graphics)
          Paint a tree node on a diagram.
 void setZoomLevel(double zoomFactor)
          Set the zoom level of this diagram
 

Method Detail

getZoomLevel

double getZoomLevel()
Get the zoom level of this diagram

Returns:
Current level of zoom

setZoomLevel

void setZoomLevel(double zoomFactor)
Set the zoom level of this diagram

Parameters:
zoomLevel - New zoom level

paintDiagram

void paintDiagram(JDiagram diagram,
                  java.awt.Graphics graphics)
Paint a diagrams backgrounds and the connecting lines between elements of a tree.

Parameters:
diagram - Diagram to paint to.
graphics - Graphics object to paint with.

paintTreeNode

void paintTreeNode(JTreeNode node,
                   java.awt.Graphics graphics)
Paint a tree node on a diagram.

Parameters:
node - Node to paint.
graphics - Graphics object to paint with.

layoutNodes

void layoutNodes(JDiagram diagram,
                 JTreeNode root)
Lay out a hierarchy of nodes onto the diagram.

Parameters:
diagram - Diagram to lay out the nodes on.
root - Root of the hierachy of nodes.