Class Papercube.CollaboratorView

Extends: NodeGraph.NodeGraphView
Defined in: clients/papercube/views/collaborator.js
Version: 1.0
Author: Peter Bergstrom
Copyright: 2008-2009 Peter Bergström.

Overview

This is the collaborator view. It will show all the collaborators for an author and also link between them. Strong relationships will be shown with thicker and darker lines. This view uses SVG.

Property Summary

Method Summary

Property Details

_cached_paperThreshold [R/W]

Cache.

-   Integer _cached_paperThreshold


contentTypeViewing [R/W]

The type of content being displayed.

-   String contentTypeViewing


defaultTitleKey [R/W]

The key for the default title display.

-   String defaultTitleKey


delegate [R/W]

The delegate is the collaboratorController

-   Object delegate


depthBinding [R/W]

Bind the depth.

-   Integer depthBinding

Bound To: "Papercube.collaboratorController.depth"

Discussion

Don't show items beyond this depth.


displayPropertiesBinding [R/W]

Bind the display properties from the canvasController.

-   Array displayPropertiesBinding

Bound To: "Papercube.canvasController.displayProperties"


edgeTextPosOffset [R/W]

A value of 0.1 would puts the edge label close to start node.

-   Float edgeTextPosOffset

Default Value: 0.4

Discussion

0.5 would put it in the middle of the edge. 0.9 would put it close to the end node.


linkThresholdBinding [R/W]

Bind the collaborator threshold binding.

-   Integer linkThresholdBinding

Bound To: "Papercube.collaboratorController.collabThreshold"

Discussion

Don't show collaborators with less collaborators.


metaDataBoxHeightSmall [R/W]

Meta data box small height.

-   Integer metaDataBoxHeightSmall

Default Value: 100px


metaDataBoxWidthSmall [R/W]

Meta data box small width.

-   Integer metaDataBoxWidthSmall

Default Value: 100px


metaDataClassName [R/W]

Class name for meta data DIV.

-   String metaDataClassName


nodeBorderColor [R/W]

Node border color.

-   String nodeBorderColor

Default Value: '#ACD20E'


nodeBorderColorSel [R/W]

Selected node border color.

-   String nodeBorderColorSel

Default Value: '#727C81'


nodeColor [R/W]

Node background color.

-   String nodeColor

Default Value: '#BCE510'


nodeColorSel [R/W]

Selected node background color.

-   String nodeColorSel

Default Value: '#E7F738'


nodeTextColor [R/W]

Node text color.

-   String nodeTextColor

Default Value: '#7E6C53'


paperThresholdBinding [R/W]

Paper link strength threshold binding.

-   Integer paperThresholdBinding

Bound To: "Papercube.collaboratorController.paperThreshold"

Discussion

Don't show collaborators with less papers.


viewName [R/W]

The name of the view.

-   String viewName


Method Detail

calcRelationWeight()

Given relation object, return weight for it.

-   (Integer) calcRelationWeight (rel)

Parameters

rel {Object} The relation object or array.

Returns

(Integer) Returns the calculated weight for the relation object.


findCustomObject()

Generate custom metadata for item.

-   (array|SC.Record) findCustomObject (guid)

Parameters

guid {string} The guid for content object that is found in the SC Store.

Returns

(array|SC.Record) Returns the found content object.


findCustomObjectAttr()

Find Custom Object Relation Attribute.

-   (Array) findCustomObjectAttr (object)

Parameters

object {Record} The content object.

Returns

(Array) Returns the found relation attribute array.


findCustomObjectLabel()

Given an object, return its label.

-   (String) findCustomObjectLabel (object)

Parameters

object {Object} The content object.

Returns

(String) Returns a title string for display.


generateCustomMetaData()

Generate custom metadata for item.

-   (Boolean) generateCustomMetaData (guid)

Parameters

guid {string} The guid for content object to be shown in the meta data view.

Returns

(Boolean) Returns NO if there is an error.


getGuidForRelation()

Given relation object, return guid for it.

-   (String) getGuidForRelation (rel)

Parameters

rel {Object} The relation object or array.

Returns

(String) Returns the guid for the relation object.


paperThresholdDidChange()

Redraw if paperThreshold changes.

-   (void) paperThresholdDidChange ()

Observes

paperThreshold


performCustomRequest()

Get the details of a given item.

-   (void) performCustomRequest (guids, callBack)

Parameters

guids {Array} The array of guids.

callBack {Function} The callBack function is called when the request is successful.


relationMeetsCustomThreshold()

Custom threshold calculation for complex link threshold calculations.

-   (String) relationMeetsCustomThreshold (rel)

Parameters

rel {Object} The relation's guid.

Returns

(String) Returns if the item is accepted by the threshold(s). Returns NO otherwise.


setBindingDefaults()

Revert bindings to default.

-   (void) setBindingDefaults ()


Documentation generated by JsDoc Toolkit 2.0.2 on Sat Nov 21 2009 21:24:38 GMT-0800 (PST)