org.fopps.ui
Class DefaultProjectItemRenderer

java.lang.Object
  |
  +--org.fopps.ui.DefaultProjectItemRenderer
All Implemented Interfaces:
ProjectItemRenderer

public class DefaultProjectItemRenderer
extends java.lang.Object
implements ProjectItemRenderer

Class DefaultProjectItemRenderer


Field Summary
static int ARROW_SIZE_X
           
static int ARROW_SIZE_Y
           
static int OUTLINE
           
 
Constructor Summary
DefaultProjectItemRenderer()
           
 
Method Summary
static java.awt.Color invertColor(java.awt.Color c)
           
 java.awt.Rectangle renderProject(java.awt.Graphics g, ProjectItem item, int x0, int y1, int y2, int timeWidth, boolean isSelected, boolean isVisible)
          Renders a project item
 void renderRelation(java.awt.Graphics g, ProjectRelation r, java.awt.Rectangle pFrom, java.awt.Rectangle pTo, int pOff)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTLINE

public static final int OUTLINE
See Also:
Constant Field Values

ARROW_SIZE_X

public static final int ARROW_SIZE_X
See Also:
Constant Field Values

ARROW_SIZE_Y

public static final int ARROW_SIZE_Y
See Also:
Constant Field Values
Constructor Detail

DefaultProjectItemRenderer

public DefaultProjectItemRenderer()
Method Detail

invertColor

public static java.awt.Color invertColor(java.awt.Color c)

renderProject

public java.awt.Rectangle renderProject(java.awt.Graphics g,
                                        ProjectItem item,
                                        int x0,
                                        int y1,
                                        int y2,
                                        int timeWidth,
                                        boolean isSelected,
                                        boolean isVisible)
Renders a project item

Specified by:
renderProject in interface ProjectItemRenderer
Parameters:
x0 - Zero time on time axis
y1 - Top of project rect
y2 - Bottom of project rect

renderRelation

public void renderRelation(java.awt.Graphics g,
                           ProjectRelation r,
                           java.awt.Rectangle pFrom,
                           java.awt.Rectangle pTo,
                           int pOff)
Specified by:
renderRelation in interface ProjectItemRenderer


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.