• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Member Functions | List of all members
KPlotPoint Class Reference

#include <kplotpoint.h>

Public Member Functions

 KPlotPoint ()
 
 KPlotPoint (double x, double y, const QString &label=QString(), double width=0.0)
 
 KPlotPoint (const QPointF &p, const QString &label=QString(), double width=0.0)
 
 ~KPlotPoint ()
 
double barWidth () const
 
QString label () const
 
QPointF position () const
 
void setBarWidth (double w)
 
void setLabel (const QString &label)
 
void setPosition (const QPointF &pos)
 
void setX (double x)
 
void setY (double y)
 
double x () const
 
double y () const
 

Detailed Description

Encapsulates a point in the plot.

A KPlotPoint consists of X and Y coordinates (in Data units), an optional label string, and an optional bar-width, The bar-width is only used for plots of type KPlotObject::Bars, and it allows the width of each bar to be set manually. If bar-widths are omitted, then the widths will be set automatically, based on the halfway-mark between adjacent points.

Definition at line 40 of file kplotpoint.h.

Constructor & Destructor Documentation

KPlotPoint::KPlotPoint ( )
explicit

Default constructor.

Definition at line 43 of file kplotpoint.cpp.

KPlotPoint::KPlotPoint ( double  x,
double  y,
const QString &  label = QString(),
double  width = 0.0 
)

Constructor.

Sets the KPlotPoint according to the given arguments

Parameters
xthe X-position for the point, in Data units
ythe Y-position for the point, in Data units
labelthe label string for the point. If the string is defined, the point will be labeled in the plot.
widththe bar width to use for this point (only used for plots of type KPlotObject::Bars)

Definition at line 48 of file kplotpoint.cpp.

KPlotPoint::KPlotPoint ( const QPointF &  p,
const QString &  label = QString(),
double  width = 0.0 
)
explicit

Constructor.

Sets the KPlotPoint according to the given arguments

Parameters
pthe position for the point, in Data units
labelthe label string for the point. If the string is defined, the point will be labeled in the plot.
widththe bar width to use for this point (only used for plots of type KPlotObject::Bars)

Definition at line 53 of file kplotpoint.cpp.

KPlotPoint::~KPlotPoint ( )

Destructor.

Definition at line 58 of file kplotpoint.cpp.

Member Function Documentation

double KPlotPoint::barWidth ( ) const
Returns
the bar-width for the point

Definition at line 103 of file kplotpoint.cpp.

QString KPlotPoint::label ( ) const
Returns
the label for the point

Definition at line 93 of file kplotpoint.cpp.

QPointF KPlotPoint::position ( ) const
Returns
the position of the point, in data units

Definition at line 63 of file kplotpoint.cpp.

void KPlotPoint::setBarWidth ( double  w)

Set the bar-width for the point.

Definition at line 108 of file kplotpoint.cpp.

void KPlotPoint::setLabel ( const QString &  label)

Set the label for the point.

Definition at line 98 of file kplotpoint.cpp.

void KPlotPoint::setPosition ( const QPointF &  pos)

Set the position of the point, in data units.

Parameters
posthe new position for the point.

Definition at line 68 of file kplotpoint.cpp.

void KPlotPoint::setX ( double  x)

Set the X-position of the point, in Data units.

Definition at line 78 of file kplotpoint.cpp.

void KPlotPoint::setY ( double  y)

Set the Y-position of the point, in Data units.

Definition at line 88 of file kplotpoint.cpp.

double KPlotPoint::x ( ) const
Returns
the X-position of the point, in data units

Definition at line 73 of file kplotpoint.cpp.

double KPlotPoint::y ( ) const
Returns
the Y-position of the point, in data units

Definition at line 83 of file kplotpoint.cpp.


The documentation for this class was generated from the following files:
  • kplotpoint.h
  • kplotpoint.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal