Class Papercube.AuthorPaperView
| Extends: | NodeGraph.NodeGraphView |
| Defined in: | clients/papercube/views/author_paper.js |
| Version: | 1.0 |
| Author: | Peter Bergstrom |
| Copyright: | 2008-2009 Peter Bergström. |
Overview
This view shows the author's papers.
Property Summary
-
- (Integer) _cached_citeThreshold [R/W]Collab cite threshold cached value. -
- (Integer) _cached_endYearThreshold [R/W]The end year threshold cached value. -
- (Integer) _cached_linkThreshold [R/W]Collab ref threshold cached value. -
- (Integer) _cached_startYearThreshold [R/W]The start year threshold cached value. -
- (Object) _year [R/W] -
- (Integer) citeThresholdBinding [R/W]Bind the cite threshold binding. -
- (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 authorPaperController -
- (Integer) depth [R/W]The value for the depth slider. -
- (Array) displayPropertiesBinding [R/W]Bind the display properties from the canvasController. -
- (Float) edgeTextPosOffset [R/W]A value of 0.1 would puts the edge label close to start node. -
- (Integer) endYearThresholdBinding [R/W]Bind the end year threshold binding. -
- (Integer) linkThresholdBinding [R/W]Collab ref threshold binding.Don't show papers with less refs. -
- (String) nodeBorderColor [R/W]Node border color. -
- (String) nodeBorderColorSel [R/W]Selected node border color. -
- (String) nodeColor [R/W]Node background color. -
- (String) nodeColorSel [R/W]Selected node background color. -
- (String) nodeTextColor [R/W]Node text color. -
- (Integer) nodeTextRatio [R/W]The nodeTextRatio allows the font size for the node to the calculated. -
- (Boolean) showEdgeLabel [R/W]If set to YES, show the edge label. -
- (Boolean) showEdges [R/W]If NO, don't show edges. -
- (Integer) startYearThresholdBinding [R/W]Bind the start year threshold binding. -
- (Boolean) useEdgeWeightWidth [R/W]If set to YES, calculate the edge width by looking at the weight of the item. -
- (String) viewName [R/W]The name of the view.
Method Summary
-
- (Integer) calcRelationWeight(rel)Given relation object, return weight for it. -
- (void) citeThresholdDidChange()Redraw if citeThreshold change. -
- (void) endYearThresholdDidChange()Redraw if endYearThreshold change. -
- (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. -
- (String) relationMeetsCustomThreshold(rel)Custom threshold calculation for complex link threshold calculations. -
- (void) setBindingDefaults()Revert bindings to default. -
- (void) startYearThresholdDidChange()Redraw if startYearThreshold change.
Property Details
_cached_citeThreshold [R/W]
Collab cite threshold cached value.
- Integer _cached_citeThreshold
Default Value: 1
_cached_endYearThreshold [R/W]
The end year threshold cached value.
- Integer _cached_endYearThreshold
Default Value: 1
_cached_linkThreshold [R/W]
Collab ref threshold cached value.
- Integer _cached_linkThreshold
Default Value: 1
_cached_startYearThreshold [R/W]
The start year threshold cached value.
- Integer _cached_startYearThreshold
Default Value: 1
citeThresholdBinding [R/W]
Bind the cite threshold binding.
- Integer citeThresholdBinding
Bound To: "Papercube.authorPaperController.citeThreshold"
Discussion
Don't show papers with less cites.
contentTypeViewing [R/W]
The type of content being displayed.
- String contentTypeViewing
Default Value: "Paper"
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"
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.
Overridden value is 0.4.
endYearThresholdBinding [R/W]
Bind the end year threshold binding.
- Integer endYearThresholdBinding
Bound To: "Papercube.authorPaperController.endYearThreshold"
Discussion
Don't show papers published after this date.
linkThresholdBinding [R/W]
Collab ref threshold binding.Don't show papers with less refs.
- Integer linkThresholdBinding
Bound To: "Papercube.authorPaperController.refThreshold"
Discussion
nodeBorderColorSel [R/W]
Selected node border color.
- String nodeBorderColorSel
Default Value: '#727C81'
nodeTextRatio [R/W]
The nodeTextRatio allows the font size for the node to the calculated.
- Integer nodeTextRatio
Default Value: 3
Discussion
The font size is calculated as radius/nodeTextRatio.
showEdgeLabel [R/W]
If set to YES, show the edge label.
- Boolean showEdgeLabel
Default Value: NO
Discussion
If NO, hide the label.
showEdges [R/W]
If NO, don't show edges.
- Boolean showEdges
Default Value: NO
Discussion
Overridden value is NO.
startYearThresholdBinding [R/W]
Bind the start year threshold binding.
- Integer startYearThresholdBinding
Bound To: "Papercube.authorPaperController.startYearThreshold"
Discussion
Don't show papers published before this date.
useEdgeWeightWidth [R/W]
If set to YES, calculate the edge width by looking at the weight of the item.
- Boolean useEdgeWeightWidth
Default Value: NO
Discussion
Otherwise, skip this operation.
Overridden value is NO
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.
citeThresholdDidChange()
Redraw if citeThreshold change.
- (void) citeThresholdDidChange ()
Observes
citeThreshold
endYearThresholdDidChange()
Redraw if endYearThreshold change.
- (void) endYearThresholdDidChange ()
Observes
endYearThreshold
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.
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.
startYearThresholdDidChange()
Redraw if startYearThreshold change.
- (void) startYearThresholdDidChange ()
Observes
startYearThreshold