Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

QwtPlotPrintFilter Class Reference

List of all members.

Detailed Description

A base class for plot print filters.

QwtPlotPrintFilter can be used to customize QwtPlot::print.


Public Types

enum  Options {
  PrintMargin = 1,
  PrintTitle = 2,
  PrintLegend = 4,
  PrintGrid = 8,
  PrintBackground = 16,
  PrintAll = ~0
}
enum  Item {
  Title,
  Legend,
  Curve,
  CurveSymbol,
  Marker,
  MarkerSymbol,
  MajorGrid,
  MinorGrid,
  CanvasBackground,
  AxisScale,
  AxisTitle
}

Public Member Functions

 QwtPlotPrintFilter ()
virtual ~QwtPlotPrintFilter ()
virtual QColor color (const QColor &, Item item, int id=-1) const
virtual QFont font (const QFont &, Item item, int id=-1) const
void setOptions (int options)
int options () const
virtual void apply (QwtPlot *) const
virtual void reset (QwtPlot *) const


Member Enumeration Documentation

enum QwtPlotPrintFilter::Item
 

Print items.

enum QwtPlotPrintFilter::Options
 

Print options.


Constructor & Destructor Documentation

QwtPlotPrintFilter::QwtPlotPrintFilter  ) 
 

Sets filter options to QwtPlotPrintFilter::PrintAll

QwtPlotPrintFilter::~QwtPlotPrintFilter  )  [virtual]
 

Destructor.


Member Function Documentation

QColor QwtPlotPrintFilter::color const QColor &  c,
Item  item,
int  id = -1
const [virtual]
 

Modifies a color for printing.

Parameters:
c Color to be modified
item Type of item where the color belongs
id Optional id of the item (curveId/markerId)
Returns:
Modified color.
In case of !(QwtPlotPrintFilter::options() & PrintBackground) MajorGrid is modified to Qt::darkGray, MinorGrid to Qt::gray. All other colors are returned unmodified.

QFont QwtPlotPrintFilter::font const QFont &  f,
Item  item,
int  id = -1
const [virtual]
 

Modifies a font for printing.

Parameters:
f Font to be modified
item Type of item where the font belongs
id Optional id of the item (curveId/markerId)
All fonts are returned unmodified

int QwtPlotPrintFilter::options  )  const
 

Get plot print options.

See also:
QwtPlotPrintFilter::setOptions()

void QwtPlotPrintFilter::setOptions int  options  ) 
 

Set plot print options.

Parameters:
options Or'd QwtPlotPrintFilter::Options values
See also:
QwtPlotPrintFilter::options()


Generated on Tue Nov 4 09:53:52 2003 for Qwt User's Guide by doxygen 1.3.4