Documentation Set for Swarm 2.2
Prev | Reference VIII. Gui Library | Next

# GraphElement

## Name

GraphElement -- Contains a set of related data for display.

## Description

A GraphElement accumulates a related set of data for display, including attributes for the set.

## Protocols adopted by GraphElement

Create Drop CREATABLE

## Methods

### Phase: Creating

- + createOwnerGraph: ownerGraph

- - setOwnerGraph: ownerGraph

### Phase: Using

- - setWidth: (unsigned)w
  Set the line width of the element.

- - (void)resetData
  Clear the data to be displayed.

- - (void)addX: (double)x Y: (double)y
  Add a new data point.

- - (void)setSymbolSize: (unsigned)size
  Set the symbol size in pixels.

- - (void)setSymbol: (const char *)symbol
  Set the symbol for the element.

- - (void)setDashes: (int)dashesVal
  Set the dash style, 0 means solid.

- - (void)setColor: (const char *)colorName
  Set the color for the element.

- - (void)setLabel: (const char *)label
  Set the label for the element.

Prev | Home | Next
Graph | Up | Histogram