ca.sqlpower.wabit.swingui.report
Class ChartSwingRenderer

java.lang.Object
  extended by ca.sqlpower.wabit.swingui.report.ChartSwingRenderer
All Implemented Interfaces:
SwingContentRenderer, edu.umd.cs.piccolo.event.PInputEventListener, java.util.EventListener

public class ChartSwingRenderer
extends java.lang.Object
implements SwingContentRenderer

Charts are modified entirely by their main editor panel. This class is a placeholder that exists only to provide the required API.


Constructor Summary
ChartSwingRenderer(WabitWorkspace workspace, ChartRenderer renderer)
          Creates a new renderer for charts in the Swing client environment.
 
Method Summary
 ca.sqlpower.swingui.DataEntryPanel getPropertiesPanel()
          Returns a data entry panel that just says the chart properties are all controlled by the chart editor.
 void processEvent(edu.umd.cs.piccolo.event.PInputEvent event, int type)
          This method comes from PInputEventListener but is documented here because it is not documented in PInputEventListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartSwingRenderer

public ChartSwingRenderer(WabitWorkspace workspace,
                          ChartRenderer renderer)
Creates a new renderer for charts in the Swing client environment.

Parameters:
session - The session this renderer belongs to. Must not be null.
renderer - The underlying layout preferences for this chart.
Method Detail

getPropertiesPanel

public ca.sqlpower.swingui.DataEntryPanel getPropertiesPanel()
Returns a data entry panel that just says the chart properties are all controlled by the chart editor.

Specified by:
getPropertiesPanel in interface SwingContentRenderer

processEvent

public void processEvent(edu.umd.cs.piccolo.event.PInputEvent event,
                         int type)
Description copied from interface: SwingContentRenderer
This method comes from PInputEventListener but is documented here because it is not documented in PInputEventListener. This method is used to process key, mouse, mouse wheel, and focus events that occur in the view. This allows each renderer to change based on user input.

Specified by:
processEvent in interface SwingContentRenderer
Specified by:
processEvent in interface edu.umd.cs.piccolo.event.PInputEventListener
Parameters:
event - This is the input event given from some input by the user.
type - This is the type of input event. Valid values come from KeyEvent, MouseEvent, MouseWheelEvent, and FocusEvent


Copyright © 2009. All Rights Reserved.