%%PageItemTitle%% $$Members$$

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
gripmanager Class Members
See Also  Fields  Properties  Methods 
vdWebLibrary Namespace : gripmanager Class

The following tables list the members exposed by gripmanager.

Public Fields

 NameDescription
Public Fieldaftermovegrip A user defined method that fires just after a grip of an entity has been moved.  
Public Fieldbeforemovegrip A user defined method that fires just before a grip of an entity move.  
Public Fieldfiltergripentity A user defined method that fires before an entity is added to grip collection  
Public Fieldgripselectionchanged A user defined method that fires when an entity is added or removed from the grip collection  
Top

Public Properties

 NameDescription
Public PropertyEnable If it is true grips are added and drawn.By default is true. (after a redraw or refresh call)(bydefault is true) Note in order to see grips,after you have enabled them you need to call a refresh() or a redraw() to see them on the canvas.  
Public PropertyGripColor An array of byte (0-255) Red,green,blue,alpha [R,G,B,A]of the color of the grip rectangle.Default value is [0,0,255,255] (blue with no transparency).  
Public PropertyGripSize An integer of grip box pixel size of each side.By default is 15 (pixels).  
Public PropertyMaxGrips Tha maximum number in total of grips that will be draw on the canvas.Default value is 100.  
Public PropertySelectMode Get/Set the grip action.Default value is GRIPMODE_AUTO and the grips are selected when mouse down on a figure.  
Top

Public Methods

 NameDescription
Public MethodAddItem Add an entity in a collection which will use grips.If Enable = false no entity will be added.  
Public Methodclear Clears all the grips of the active layout.Note in order to not see any more the grips,you need to call a refresh() or a redraw().  
Public MethodContainsItem Returns true if the entity exists in the grip selection and false if it does not exist.  
Public Methodcount Returns the number of selected entities in the grip collection  
Public MethodGetEntityGrips Returns an array of points in world Coordinate System that represent the grip of the passed entity. Currently supported entities are:vdLine,vdPolyline,vdRect,vdText,vdPoint,vdAttrib,vdAttribDef,vdInsert,vdImage,vdArc.vdCircle,vdEllipse. vdLine_code and the StartPoint , EndPoint are added.  
Public MethodGetItem Returns the entity on the specific index in the grip collection.  
Public MethodRemoveItem Removes an entity from the collection of the entities which use grips.  
Top

See Also