sos.reports
Class AbstractView

java.lang.Object
  |
  +--sos.reports.AbstractView
All Implemented Interfaces:
View

public abstract class AbstractView
extends java.lang.Object
implements View

A partial implementation of View.

Since:
1.0
See Also:
View

Nested Class Summary
 
Nested classes inherited from class sos.reports.View
View.ResizeRequest
 
Field Summary
 
Fields inherited from interface sos.reports.View
X_AXIS, Y_AXIS
 
Constructor Summary
AbstractView()
          Creates an instance of AbstractView.
 
Method Summary
 void forwardReportEvent(ReportEvent event)
          Called by a child view to propagate changes to nested reports up the view hierarchy.
 View getParent()
          Returns this view's parent view.
 JReportPane getReportPane()
          Returns the report pane hosting this view.
 java.lang.String getText()
          Returns the text rendered by this view.
 java.lang.String getToolTipText(java.awt.Point point)
          Returns this view's tool tip string, or null, if the tool tip should be gotten by another means.
 void setParent(View parent)
          Sets this view's parent view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface sos.reports.View
breakView, elementToView, gatherBreakWeights, gatherViewsAt, gatherViewsWithin, getElement, getLength, getMinimumLength, getNextBrokenView, getOffset, getPreferredLength, getPreviousBrokenView, paint, reportChanged, setLength, setTopLeftCorner
 

Constructor Detail

AbstractView

public AbstractView()
Creates an instance of AbstractView.

Method Detail

forwardReportEvent

public void forwardReportEvent(ReportEvent event)
Description copied from interface: View
Called by a child view to propagate changes to nested reports up the view hierarchy.

Specified by:
forwardReportEvent in interface View
Parameters:
event - nested report change

setParent

public void setParent(View parent)
Description copied from interface: View
Sets this view's parent view.

Specified by:
setParent in interface View
Parameters:
parent - view to be the parent of this view
See Also:
View.getParent()

getParent

public View getParent()
Description copied from interface: View
Returns this view's parent view.

Specified by:
getParent in interface View
Returns:
this view's parent
See Also:
View.setParent(sos.reports.View)

getText

public java.lang.String getText()
Description copied from interface: View
Returns the text rendered by this view.

Specified by:
getText in interface View
Returns:
the text rendered by this view (may not be null)

getToolTipText

public java.lang.String getToolTipText(java.awt.Point point)
Description copied from interface: View
Returns this view's tool tip string, or null, if the tool tip should be gotten by another means.

Specified by:
getToolTipText in interface View
Parameters:
point - point at which the tool tip string is requested
Returns:
this view's tool tip text

getReportPane

public JReportPane getReportPane()
Description copied from interface: View
Returns the report pane hosting this view.

Specified by:
getReportPane in interface View
Returns:
the report pane hosting this view


Copyright 2003, 2004 Side of Software (SOS). All rights reserved.