Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Commit

Permalink
Export now 100% of graph with lower preview ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
mbastian committed Sep 29, 2011
1 parent aaab31b commit 8bf224c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public void run() {
model.setRefreshing(true);
fireEvent(REFRESHING, true);

previewController.getModel().getProperties().putValue(PreviewProperty.VISIBILITY_RATIO, model.getVisibilityRatio());
previewController.refreshPreview();

fireEvent(REFRESHED, model);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ public float getVisibilityRatio() {

public void setVisibilityRatio(float visibilityRatio) {
this.visibilityRatio = visibilityRatio;
PreviewController previewController = Lookup.getDefault().lookup(PreviewController.class);
previewController.getModel().getProperties().putValue(PreviewProperty.VISIBILITY_RATIO, visibilityRatio);
}

public void setCurrentPreset(PreviewPreset preset) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public boolean execute() {
Progress.start(progress);

PreviewController controller = Lookup.getDefault().lookup(PreviewController.class);
controller.getModel(workspace).getProperties().putValue(PreviewProperty.VISIBILITY_RATIO, 1.0);
controller.refreshPreview(workspace);
PreviewProperties props = controller.getModel(workspace).getProperties();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public boolean execute() {
Progress.start(progress);

PreviewController controller = Lookup.getDefault().lookup(PreviewController.class);
controller.getModel(workspace).getProperties().putValue(PreviewProperty.VISIBILITY_RATIO, 1.0);
controller.refreshPreview(workspace);

PreviewProperties props = controller.getModel(workspace).getProperties();
props.putValue("width", width);
props.putValue("height", height);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public class SVGExporter implements CharacterExporter, VectorExporter, LongTask

public boolean execute() {
PreviewController controller = Lookup.getDefault().lookup(PreviewController.class);
controller.getModel(workspace).getProperties().putValue(PreviewProperty.VISIBILITY_RATIO, 1.0);
controller.refreshPreview(workspace);

PreviewProperties props = controller.getModel(workspace).getProperties();
props.putValue(SVGTarget.SCALE_STROKES, scaleStrokes);
props.putValue(PreviewProperty.MARGIN, new Float((float) margin));
Expand Down

0 comments on commit 8bf224c

Please sign in to comment.