Class Papercube.CiteRefView
| Extends: | NodeGraph.NodeGraphView |
| Defined in: | clients/papercube/views/cite_ref_view.js |
| Version: | 1.0 |
| Author: | Peter Bergstrom |
| Copyright: | 2008-2009 Peter Bergström. |
Overview
This is the author cite/ref view. It will show all the authors who reference or are cited by the author. Strong relationships will be shown with thicker and darker lines. This view uses SVG.
Property Summary
-
- (String) contentTypeViewing [R/W]The type of content being displayed. -
- (String) defaultTitleKey [R/W]The key for the default title display. -
- (Object) delegate [R/W]The delegate is the citeRefController -
- (Integer) depth [R/W]The value for the depth slider. -
- (Array) displayPropertiesBinding [R/W]Bind the display properties from the canvasController. -
- (Integer) linkThresholdBinding [R/W]Bind the link threshold binding. -
- (Integer) metaDataBoxHeightSmall [R/W]Meta data box small height. -
- (Integer) metaDataBoxWidthSmall [R/W]Meta data box small width. -
- (String) metaDataClassName [R/W]Class name for meta data DIV. -
- (String) viewDirectionBinding [R/W]Bind the view direction from the viewController. -
- (String) viewName [R/W]The name of the view.
Method Summary
-
- (Integer) calcRelationWeight(rel)Given relation object, return weight for it. -
- (array|SC.Record) findCustomObject(guid)Generate custom metadata for item. -
- (Array) findCustomObjectAttr(object)Find Custom Object Relation Attribute. -
- (String) findCustomObjectLabel(object)Given an object, return its label. -
- (Boolean) generateCustomMetaData(guid)Generate custom metadata for item. -
- (String) getGuidForRelation(rel)Given relation object, return guid for it. -
- (void) performCustomRequest(guids, callBack)Get the details of a given item. -
- (void) setBindingDefaults()Revert bindings to default. -
- (void) viewDirectionDidChange()Redraw if viewDirection changes.
Property Details
contentTypeViewing [R/W]
The type of content being displayed.
- String contentTypeViewing
Default Value: 'Author'
defaultTitleKey [R/W]
The key for the default title display.
- String defaultTitleKey
Default Value: 'name'
displayPropertiesBinding [R/W]
Bind the display properties from the canvasController.
- Array displayPropertiesBinding
Bound To: "Papercube.canvasController.displayProperties"
linkThresholdBinding [R/W]
Bind the link threshold binding.
- Integer linkThresholdBinding
Bound To: "Papercube.citeRefController.linkThreshold"
Discussion
Don't show items with less links.
metaDataBoxHeightSmall [R/W]
Meta data box small height.
- Integer metaDataBoxHeightSmall
Default Value: 100px
Discussion
Overridden value is 100px.
metaDataBoxWidthSmall [R/W]
Meta data box small width.
- Integer metaDataBoxWidthSmall
Default Value: 100px
Discussion
Overridden value is 200px.
metaDataClassName [R/W]
Class name for meta data DIV.
- String metaDataClassName
Default Value: 'author'
viewDirectionBinding [R/W]
Bind the view direction from the viewController.
- String viewDirectionBinding
Bound To: "Papercube.viewController.viewDirection"
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.
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.
viewDirectionDidChange()
Redraw if viewDirection changes.
- (void) viewDirectionDidChange ()
Observes
viewDirection