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

Commit

Permalink
Make ForceAtlas2 use properties canonical names like other layouts fo…
Browse files Browse the repository at this point in the history
…r AutoLayout
  • Loading branch information
eduramiba committed Sep 29, 2011
1 parent 439f512 commit 89615a7
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,76 +284,87 @@ public LayoutProperty[] getProperties() {
this, Double.class,
NbBundle.getMessage(getClass(), "ForceAtlas2.scalingRatio.name"),
FORCEATLAS2_TUNING,
"ForceAtlas2.scalingRatio.name",
NbBundle.getMessage(getClass(), "ForceAtlas2.scalingRatio.desc"),
"getScalingRatio", "setScalingRatio"));

properties.add(LayoutProperty.createProperty(
this, Boolean.class,
NbBundle.getMessage(getClass(), "ForceAtlas2.strongGravityMode.name"),
FORCEATLAS2_TUNING,
"ForceAtlas2.strongGravityMode.name",
NbBundle.getMessage(getClass(), "ForceAtlas2.strongGravityMode.desc"),
"isStrongGravityMode", "setStrongGravityMode"));

properties.add(LayoutProperty.createProperty(
this, Double.class,
NbBundle.getMessage(getClass(), "ForceAtlas2.gravity.name"),
FORCEATLAS2_TUNING,
"ForceAtlas2.gravity.name",
NbBundle.getMessage(getClass(), "ForceAtlas2.gravity.desc"),
"getGravity", "setGravity"));

properties.add(LayoutProperty.createProperty(
this, Boolean.class,
NbBundle.getMessage(getClass(), "ForceAtlas2.distributedAttraction.name"),
FORCEATLAS2_BEHAVIOR,
"ForceAtlas2.distributedAttraction.name",
NbBundle.getMessage(getClass(), "ForceAtlas2.distributedAttraction.desc"),
"isOutboundAttractionDistribution", "setOutboundAttractionDistribution"));

properties.add(LayoutProperty.createProperty(
this, Boolean.class,
NbBundle.getMessage(getClass(), "ForceAtlas2.linLogMode.name"),
FORCEATLAS2_BEHAVIOR,
"ForceAtlas2.linLogMode.name",
NbBundle.getMessage(getClass(), "ForceAtlas2.linLogMode.desc"),
"isLinLogMode", "setLinLogMode"));

properties.add(LayoutProperty.createProperty(
this, Boolean.class,
NbBundle.getMessage(getClass(), "ForceAtlas2.adjustSizes.name"),
FORCEATLAS2_BEHAVIOR,
"ForceAtlas2.adjustSizes.name",
NbBundle.getMessage(getClass(), "ForceAtlas2.adjustSizes.desc"),
"isAdjustSizes", "setAdjustSizes"));

properties.add(LayoutProperty.createProperty(
this, Double.class,
NbBundle.getMessage(getClass(), "ForceAtlas2.edgeWeightInfluence.name"),
FORCEATLAS2_BEHAVIOR,
"ForceAtlas2.edgeWeightInfluence.name",
NbBundle.getMessage(getClass(), "ForceAtlas2.edgeWeightInfluence.desc"),
"getEdgeWeightInfluence", "setEdgeWeightInfluence"));

properties.add(LayoutProperty.createProperty(
this, Double.class,
NbBundle.getMessage(getClass(), "ForceAtlas2.jitterTolerance.name"),
FORCEATLAS2_PERFORMANCE,
"ForceAtlas2.jitterTolerance.name",
NbBundle.getMessage(getClass(), "ForceAtlas2.jitterTolerance.desc"),
"getJitterTolerance", "setJitterTolerance"));

properties.add(LayoutProperty.createProperty(
this, Boolean.class,
NbBundle.getMessage(getClass(), "ForceAtlas2.barnesHutOptimization.name"),
FORCEATLAS2_PERFORMANCE,
"ForceAtlas2.barnesHutOptimization.name",
NbBundle.getMessage(getClass(), "ForceAtlas2.barnesHutOptimization.desc"),
"isBarnesHutOptimize", "setBarnesHutOptimize"));

properties.add(LayoutProperty.createProperty(
this, Double.class,
NbBundle.getMessage(getClass(), "ForceAtlas2.barnesHutTheta.name"),
FORCEATLAS2_PERFORMANCE,
"ForceAtlas2.barnesHutTheta.name",
NbBundle.getMessage(getClass(), "ForceAtlas2.barnesHutTheta.desc"),
"getBarnesHutTheta", "setBarnesHutTheta"));

properties.add(LayoutProperty.createProperty(
this, Integer.class,
NbBundle.getMessage(getClass(), "ForceAtlas2.threads.name"),
FORCEATLAS2_THREADS,
"ForceAtlas2.threads.name",
NbBundle.getMessage(getClass(), "ForceAtlas2.threads.desc"),
"getThreadsCount", "setThreadsCount"));

Expand Down

0 comments on commit 89615a7

Please sign in to comment.