LODimmerCurveView Class Reference
A view to display a Dimmer Curve and allow a user to edit.
More...
#import <LODimmerCurveView.h>
Detailed Description
A view to display a Dimmer Curve and allow a user to edit.
If the curve is editable it will be displayed with the control points selectable by the mouse, and the user will be able to drag the points into new positions. The lookup table of the curve is updated when editing ends (that is when the user releases the mouse).
You can set a delegate object that may implement a number of hooks into the drawing and editing routines associated with this class.
- See also:
- LODimmerCurveViewDelegate.h
Member Function Documentation
- (LODimmerCurveCPType) controlPointForMouse: |
|
(NSPoint) |
point |
|
|
Check which, if any, control point the mouse is over.
Get the current delegate for the view.
- Returns:
- The delegate object
- See also:
- - setDelegate:
Get the current drawing colour for the curve.
- Returns:
- the drawing colour.
- See also:
- - setDrawColor:
- (void) drawControlPoint: |
|
(NSPoint) |
aPoint |
inContext: |
|
(NSGraphicsContext *) |
theContext | |
|
|
| | |
- (void) drawHighlightedControlPoint: |
|
(NSPoint) |
aPoint |
inContext: |
|
(NSGraphicsContext *) |
theContext | |
|
|
| | |
Draw a control point in highlighted mode.
Check is a curve is editable by a user.
- Returns:
- YES if the curve is editable
- See also:
- - setEditable:
Set the curve that the view is displaying.
- (void) setDelegate: |
|
(id) |
aDelegate |
|
|
Set a new delegate object.
- Parameters:
-
| aDelegate | The object to receive all dlegate messages |
- See also:
- delegate:
- (void) setDrawColor: |
|
(NSColor *) |
theColor |
|
|
Set the colour that curve will be drawn in.
- Parameters:
-
| theColor | The colour to use |
- See also:
- drawColour:
- (void) setEditable: |
|
(BOOL) |
isEditable |
|
|
Set if the curve is editable by a user.
- Parameters:
-
| isEditable | Editable status |
- See also:
- - isEditable:
The documentation for this class was generated from the following files: