Author: Christian Lopes
Date: 2010-07-09 12:22:30 -0700 (Fri, 09 Jul 2010)
New Revision: 20871
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/PDFExporter.as
Log:
Fixed wrong AlivePDF method call.
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/PDFExporter.as
===================================================================
---
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/PDFExporter.as
2010-07-09 17:17:37 UTC (rev 20870)
+++
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/PDFExporter.as
2010-07-09 19:22:30 UTC (rev 20871)
@@ -138,7 +138,7 @@
var orientation:String = Orientation.PORTRAIT;
// Create the PFD document with 1 page:
- var pdf:PDF = new PDF(orientation, Unit.POINT, size);
+ var pdf:PDF = new PDF(orientation, Unit.POINT, true, size);
pdf.setDisplayMode(Display.FULL_PAGE, Layout.SINGLE_PAGE);
var page:Page = new Page(orientation, Unit.POINT, size);
pdf.addPage(page);
@@ -348,10 +348,11 @@
// Vertical anchor:
// The label height is different from the real text
height, because
// there is a margin between the text and the text field
border:
+ var vpad:Number = 2;
switch (vAnchor) {
case Anchors.TOP: p.y += (field.height -
textHeight)/2 * _scale; break;
case Anchors.MIDDLE: p.y -= textHeight/2 * _scale;
break;
- case Anchors.BOTTOM: p.y -= d.height/2 * _scale; break;
+ case Anchors.BOTTOM: p.y -= (vpad + textHeight) *
_scale; break;
}
// Flare's label cordinates is relative to the label's
upper-left corner (x,y)=(0,0),
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.