You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposed by @tomnelson and discussed in #163; here are some of the relevant bits:
[The idea would be to] put all visualization related property settings in one place, something like VisualizationViewUI.java, which would allow a user to provide a jung.properties file with contents something like this:
vv.getRenderContext().setVertexFillPaintTransformer(
new PickableVertexPaintTransformer(vv.getPickedVertexState(), Color.red, Color.yellow)
Issues to be resolved would include:
Is this something we want to do? Arguably most users are fine with picking their properties once, and with rebuilding their code if they change them (since I don't think that anyone has ever asked for this capability).
Put more clearly: what specific problem would we be trying to solve by providing this kind of capability, and what fraction of our users would we expect it to help?
Are we talking about a way of overriding defaults at program launch time, or would we expect changes in the properties file to be picked up on the fly?
What properties would be specifiable in this way? Node and edge shape/color/stroke? Layout algorithms? Dimensions? More?
Are there any existing conventions (specifically as regards managing common types such as Color, Shape, and Stroke) that we would want to incorporate?
Where and how would we want to specify default values? (Right now it's basically in the code in PluggableRendererContext, but if we want to enable a big flat file that sets a bunch of properties, it might be helpful for users to be able to easily check for
Would we want to namespace any of this more than with just a "jung" prefix?
How would this integrate with our existing programmatic mechanisms? Presumably we would still want to have a way of programmatically specifying all the things that can be currently specified in this way.
Is this something that could, or should, be built on top of JUNG without changing the existing code? (Does it even need to be part of JUNG per se?)
How would we handle bad property specifications? Ignore them and use the default? Log a warning? Throw?
If we want to explore this, I would really, really like to see a design doc that addresses these issues before I saw code.
The text was updated successfully, but these errors were encountered:
Proposed by @tomnelson and discussed in #163; here are some of the relevant bits:
[The idea would be to] put all visualization related property settings in one place, something like
VisualizationViewUI.java
, which would allow a user to provide a jung.properties file with contents something like this:VisualizationViewerUI
would set any user-specified properties and fall back on default values for all of them.Programmatic settings could still be achieved by doing something like this:
or
instead of
Issues to be resolved would include:
Put more clearly: what specific problem would we be trying to solve by providing this kind of capability, and what fraction of our users would we expect it to help?
PluggableRendererContext
, but if we want to enable a big flat file that sets a bunch of properties, it might be helpful for users to be able to easily check forIf we want to explore this, I would really, really like to see a design doc that addresses these issues before I saw code.
The text was updated successfully, but these errors were encountered: