de.jaret.util.ui.timebars.swing.renderer
Interface IMiscRenderer

All Known Implementing Classes:
DefaultMiscRenderer

public interface IMiscRenderer

Interface describing a renderer for various elements in the swing time bar viewer.

Version:
$Id: IMiscRenderer.java 802 2008-12-28 12:30:41Z kliem $
Author:
kliem

Method Summary
 void drawRowBackground(java.awt.Graphics graphics, int x, int y, int width, int height, boolean selected, boolean highlighted)
          Draw a row background for the time bar viewer if a row is either selected or highlighted.
 void drawRowGridLine(java.awt.Graphics graphics, int x1, int y1, int x2, int y2)
          Draw a row gridline for the time bar viewer.
 void renderRegionRect(java.awt.Graphics graphics, TimeBarViewer tbv, TimeBarViewerDelegate delegate)
          Render the selected region.
 void renderSelectionRect(java.awt.Graphics graphics, TimeBarViewer tbv, java.awt.Rectangle selectionRect)
          Render the selection rectangle.
 

Method Detail

renderRegionRect

void renderRegionRect(java.awt.Graphics graphics,
                      TimeBarViewer tbv,
                      TimeBarViewerDelegate delegate)
Render the selected region.

Parameters:
graphics - Graphics to paint with
tbv - timebar viewer
delegate - the delegate

renderSelectionRect

void renderSelectionRect(java.awt.Graphics graphics,
                         TimeBarViewer tbv,
                         java.awt.Rectangle selectionRect)
Render the selection rectangle.

Parameters:
graphics - Graphics to paint with
tbv - timebar viewer
selectionRect - the selection rectangle in coordinates

drawRowGridLine

void drawRowGridLine(java.awt.Graphics graphics,
                     int x1,
                     int y1,
                     int x2,
                     int y2)
Draw a row gridline for the time bar viewer.

Parameters:
graphics - Graphics to draw with
x1 - start x
y1 - start y
x2 - end x
y2 - end y

drawRowBackground

void drawRowBackground(java.awt.Graphics graphics,
                       int x,
                       int y,
                       int width,
                       int height,
                       boolean selected,
                       boolean highlighted)
Draw a row background for the time bar viewer if a row is either selected or highlighted.

Parameters:
graphics - Graphics to paint with
x - x cord
y - y coord
width - width of the area
height - height of the area
selected - true if the row is selected
highlighted - true if the row is highlighted


Copyright © 2012. All Rights Reserved.