ETHandle

Authors

Quentin Mathe (qmathe@club-internet.fr)
An ETLayoutItem subclass whose instances represent control points to manipulate the graphical representation of layout items.

Copyright: (C) 2008 Quentin Mathe


Contents -

  1. Software documentation for the ETBasicHandleStyle class
  2. Software documentation for the ETBottomHandleActionHandler class
  3. Software documentation for the ETBottomLeftHandleActionHandler class
  4. Software documentation for the ETBottomRightHandleActionHandler class
  5. Software documentation for the ETHandle class
  6. Software documentation for the ETHandleActionHandler class
  7. Software documentation for the ETHandleGroup class
  8. Software documentation for the ETLeftHandleActionHandler class
  9. Software documentation for the ETResizeRectangle class
  10. Software documentation for the ETRightHandleActionHandler class
  11. Software documentation for the ETTopHandleActionHandler class
  12. Software documentation for the ETTopLeftHandleActionHandler class
  13. Software documentation for the ETTopRightHandleActionHandler class
  14. ETHandle variables

Software documentation for the ETBasicHandleStyle class

ETBasicHandleStyle : ETStyle

Declared in:
ETHandle.h
Description forthcoming.
Method summary

drawHandleInRect: 

- (void) drawHandleInRect: (NSRect)rect;

Draws the interior of the handle.


drawSelectionIndicatorInRect: 

- (void) drawSelectionIndicatorInRect: (NSRect)indicatorRect;
Description forthcoming.

Software documentation for the ETBottomHandleActionHandler class

ETBottomHandleActionHandler : ETHandleActionHandler

Declared in:
ETHandle.h
Description forthcoming.
Method summary

handleTranslateItem: byDelta: 

- (void) handleTranslateItem: (ETHandle*)handle byDelta: (NSSize)delta;
Description forthcoming.

Software documentation for the ETBottomLeftHandleActionHandler class

ETBottomLeftHandleActionHandler : ETHandleActionHandler

Declared in:
ETHandle.h
Description forthcoming.
Method summary

handleTranslateItem: byDelta: 

- (void) handleTranslateItem: (ETHandle*)handle byDelta: (NSSize)delta;
Description forthcoming.

Software documentation for the ETBottomRightHandleActionHandler class

ETBottomRightHandleActionHandler : ETHandleActionHandler

Declared in:
ETHandle.h
Description forthcoming.
Method summary

handleTranslateItem: byDelta: 

- (void) handleTranslateItem: (ETHandle*)handle byDelta: (NSSize)delta;
Description forthcoming.

Software documentation for the ETHandle class

ETHandle : ETLayoutItem

Declared in:
ETHandle.h

A handle mediates the interaction between an tool (usually a graphical tool) and a graphical object. The handle is attached to a graphical object by setting the ETHandle manipulatedObject property. The graphical object is commonly a layout item, In future, this might be extended in order to accept other type of objects that conforms to ETManipulatedObject protocol.

The action of a handle when the user manipulates it is defined by setting the EtHandle mediatedTool property.

Method summary

initWithActionHandler: manipulatedObject: objectGraphContext: 

- (id) initWithActionHandler: (ETActionHandler*)aHandler manipulatedObject: (id)aTarget objectGraphContext: (COObjectGraphContext*)aContext;
Description forthcoming.

manipulatedObject 

- (id) manipulatedObject;

Returns the object on which the receiver acts upon.


mediatedTool 

- (ETTool*) mediatedTool;
Description forthcoming.

setManipulatedObject: 

- (void) setManipulatedObject: (id)anObject;

Sets the object on which the receiver acts upon.


setMediatedTool: 

- (void) setMediatedTool: (ETTool*)anTool;
Description forthcoming.

Software documentation for the ETHandleActionHandler class

ETHandleActionHandler : ETActionHandler

Declared in:
ETHandle.h
Description forthcoming.
Method summary

canSelect: 

- (BOOL) canSelect: (ETHandle*)handle;

Handles are not selectable.


Software documentation for the ETHandleGroup class

ETHandleGroup : ETLayoutItemGroup

Declared in:
ETHandle.h

Handles are rarely used alone, but in a handle group which organize and present the handles in a way that helps to mediate the tool actions. For example, four handles can be combined in resizing rectangle and makes the resize tool more straightforward to use for the user.

Method summary

acceptsActionsForItemsOutsideOfFrame 

- (BOOL) acceptsActionsForItemsOutsideOfFrame;

Returns YES.


manipulatedObject 

- (id) manipulatedObject;
Description forthcoming.

setManipulatedObject: 

- (void) setManipulatedObject: (id)anObject;
Description forthcoming.

setNeedsDisplay: 

- (void) setNeedsDisplay: (BOOL)flag;

Marks both the receiver and its manipulated object as invalidated area or not.


Software documentation for the ETLeftHandleActionHandler class

ETLeftHandleActionHandler : ETHandleActionHandler

Declared in:
ETHandle.h
Description forthcoming.
Method summary

handleTranslateItem: byDelta: 

- (void) handleTranslateItem: (ETHandle*)handle byDelta: (NSSize)delta;
Description forthcoming.

Software documentation for the ETResizeRectangle class

ETResizeRectangle : ETHandleGroup

Declared in:
ETHandle.h
Description forthcoming.
Method summary

bottomHandle 

- (ETHandle*) bottomHandle;

Returns the handle item located on the bottom.


bottomLeftHandle 

- (ETHandle*) bottomLeftHandle;

Returns the handle item located in the bottom left corner.


bottomRightHandle 

- (ETHandle*) bottomRightHandle;

Returns the handle item located in the bottom right corner.


drawOutlineInRect: 

- (void) drawOutlineInRect: (NSRect)rect;

Draws a rectangular outline.


initWithManipulatedObject: objectGraphContext: 

- (id) initWithManipulatedObject: (id)aTarget objectGraphContext: (COObjectGraphContext*)aContext;
Description forthcoming.

leftHandle 

- (ETHandle*) leftHandle;

Returns the handle item located on the left side.


render: dirtyRect: inContext: 

- (void) render: (NSMutableDictionary*)inputValues dirtyRect: (NSRect)dirtyRect inContext: (id)ctxt;

Draws the receiver style. See ETStyle.


rightHandle 

- (ETHandle*) rightHandle;

Returns the handle item located on the right side.


topHandle 

- (ETHandle*) topHandle;

Returns the handle item located on the top.


topLeftHandle 

- (ETHandle*) topLeftHandle;

Returns the handle item located in the top left corner.


topRightHandle 

- (ETHandle*) topRightHandle;

Returns the handle item located in the top right corner.


Software documentation for the ETRightHandleActionHandler class

ETRightHandleActionHandler : ETHandleActionHandler

Declared in:
ETHandle.h
Description forthcoming.
Method summary

handleTranslateItem: byDelta: 

- (void) handleTranslateItem: (ETHandle*)handle byDelta: (NSSize)delta;
Description forthcoming.

Software documentation for the ETTopHandleActionHandler class

ETTopHandleActionHandler : ETHandleActionHandler

Declared in:
ETHandle.h
Description forthcoming.
Method summary

handleTranslateItem: byDelta: 

- (void) handleTranslateItem: (ETHandle*)handle byDelta: (NSSize)delta;
Description forthcoming.

Software documentation for the ETTopLeftHandleActionHandler class

ETTopLeftHandleActionHandler : ETHandleActionHandler

Declared in:
ETHandle.h
Description forthcoming.
Method summary

handleTranslateItem: byDelta: 

- (void) handleTranslateItem: (ETHandle*)handle byDelta: (NSSize)delta;
Description forthcoming.

Software documentation for the ETTopRightHandleActionHandler class

ETTopRightHandleActionHandler : ETHandleActionHandler

Declared in:
ETHandle.h
Description forthcoming.
Method summary

handleTranslateItem: byDelta: 

- (void) handleTranslateItem: (ETHandle*)handle byDelta: (NSSize)delta;
Description forthcoming.

ETHandle variables

kETManipulatedObjectProperty

NSString* kETManipulatedObjectProperty;

manipulatedObject property


kETMediatedToolProperty

NSString* kETMediatedToolProperty;

mediatedTool property