Skip to content

Instantly share code, notes, and snippets.

@keiono
Created November 25, 2013 17:49
Show Gist options
  • Save keiono/7645436 to your computer and use it in GitHub Desktop.
Save keiono/7645436 to your computer and use it in GitHub Desktop.
Lock/Unlock VP
// Handle locked values
final Set<VisualPropertyDependency<?>> deps = vs.getAllVisualPropertyDependencies();
for(VisualPropertyDependency<?> dep: deps) {
if(dep.getIdString().equals("nodeSizeLocked")) {
if(dep.isDependencyEnabled()) {
dep.setDependency(false);
}
}
if(dep.getIdString().equals("arrowColorMatchesEdge")) {
if(dep.isDependencyEnabled()) {
dep.setDependency(true);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment