# class KPlotPoint

###

Module | kdeui
Namespace |
Class | KPlotPoint
Inherits |

KPlotPoint 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.

### methods

- KPlotPoint ( )

  returns ctor
  KDE 4.1.0 and later only

  Default constructor.

- KPlotPoint (x, y, label, width)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  x | double |
  y | double |
  label | QString | QString()
  width | double | 0.0

  Constructor. Sets the KPlotPoint according to the given arguments

  x - the X-position for the point, in Data units

  y - the Y-position for the point, in Data units

  label - the label string for the point. If the string is defined, the point will be labeled in the plot.

  width - the bar width to use for this point (only used for plots of type KPlotObject.Bars)

- KPlotPoint (p, label, width)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  p | QPointF |
  label | QString | QString()
  width | double | 0.0

  Constructor. Sets the KPlotPoint according to the given arguments

  p - the position for the point, in Data units

  label - the label string for the point. If the string is defined, the point will be labeled in the plot.

  width - the bar width to use for this point (only used for plots of type KPlotObject.Bars)

- KPlotPoint (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KPlotPoint |

- KPlotPoint ( )

  returns ctor
  before KDE 4.1.0 only

- KPlotPoint (a0, a1, a2)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QPointF |
  a1 | QString | QString()
  a2 | double | 0.0

- barWidth ( )

  returns double

  Returns the bar-width for the point

- label ( )

  returns QString

  Returns the label for the point

- position ( )

  returns QPointF

  Returns the position of the point, in data units

- setBarWidth (w)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  w | double |

  Set the bar-width for the point

- setLabel (label)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  label | QString |

  Set the label for the point

- setPosition (pos)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  pos | QPointF |

  Set the position of the point, in data units

  pos - the new position for the point.

- setX (x)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  x | double |

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

- setY (y)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  y | double |

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

- x ( )

  returns double

  Returns the X-position of the point, in data units

- y ( )

  returns double

  Returns the Y-position of the point, in data units