|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
double getZoomLevel()
void setZoomLevel(double zoomFactor)
zoomLevel
- New zoom levelvoid paintDiagram(JDiagram diagram, java.awt.Graphics graphics)
diagram
- Diagram to paint to.graphics
- Graphics object to paint with.void paintTreeNode(JTreeNode node, java.awt.Graphics graphics)
node
- Node to paint.graphics
- Graphics object to paint with.void layoutNodes(JDiagram diagram, JTreeNode root)
diagram
- Diagram to lay out the nodes on.root
- Root of the hierachy of nodes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |