Added the MPExpressionTree Classes
This commit is contained in:
@@ -154,20 +154,7 @@
|
||||
NSRect localLineBounds = [self localLineBounds];
|
||||
CGContextSetTextPosition(context, localLineBounds.origin.x, 0);
|
||||
CTLineDraw(line, context);
|
||||
|
||||
// Draw the start function
|
||||
MPLayout *startExpressionLayout = [self childLayoutAtIndex:0];
|
||||
NSPoint startExpressionLocation = [self offsetOfChildLayoutAtIndex:0];
|
||||
[startExpressionLayout drawAtPoint:startExpressionLocation];
|
||||
|
||||
// Draw the target function
|
||||
MPLayout *targetExpressionLayout = [self childLayoutAtIndex:1];
|
||||
[targetExpressionLayout drawAtPoint:[self offsetOfChildLayoutAtIndex:1]];
|
||||
|
||||
// Draw the sum function
|
||||
MPLayout *sumExpressionLayout = [self childLayoutAtIndex:2];
|
||||
[sumExpressionLayout drawAtPoint:[self offsetOfChildLayoutAtIndex:2]];
|
||||
|
||||
|
||||
CFRelease(line);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user