Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
[#106] attempt to reduce large map size (lesser repulsion of groups)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonndan committed Feb 17, 2020
1 parent e199413 commit f0954ec
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/**
* https://stackoverflow.com/questions/22746439/jgraphx-custom-layoult-curved-edges
*/
@Deprecated
class CurvedEdgeStyle implements mxEdgeStyle.mxEdgeStyleFunction {

public static final String KEY = "curvedEdgeStyle";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/**
* https://stackoverflow.com/questions/22746439/jgraphx-custom-layoult-curved-edges
*/
@Deprecated
class CurvedShape extends mxConnectorShape {

public static final String KEY = "curvedEdge";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Rendered<mxGraph, mxCell> render(LandscapeImpl landscape) {
});

Map<String, Group> groupMap = new HashMap<>();
landscape.getGroups().forEach((s, groupItem) -> groupMap.put(s, (Group)groupItem)); //TODO
landscape.getGroups().forEach((s, groupItem) -> groupMap.put(s, (Group)groupItem));
AllGroupsGraph allGroupsGraph = new AllGroupsGraph(landscape.getConfig(), groupMap, subgraphs);

if (isDebugMode())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class NivioGroupLayout extends mxGraphLayout {
* The maximum distance between vertices, beyond which their
* repulsion no longer has an effect
*/
protected double maxDistanceLimit = 500;
protected double maxDistanceLimit = 300; //XXX was 500

/**
* Start value of temperature. Default is 200.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.awt.*;
import java.awt.geom.Ellipse2D;

@Deprecated
public class mxCircularImageShape extends mxEllipseShape {

public static final String NAME = "circularImage";
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/example/large.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f0954ec

Please sign in to comment.