Archi Forum

Archi Plug-ins => jArchi => Topic started by: rheward on February 26, 2020, 12:34:37 PM

Title: Shape Line Opacity in jArchi?
Post by: rheward on February 26, 2020, 12:34:37 PM
Is it possible to set a shapes line opacity from jArchi?

something like


mylinkedviewEle.lineColor.opacity = 0;


I think the answer's no. I can set the line colour, fill and the shape's opacity. Or I can do it manually.

[I have a script that takes a linked view and scrunches it down to be just the icon, so I can do click throughs on an html generate, and I want to remove the shape's line completely]
Title: Re: Shape Line Opacity in jArchi?
Post by: Phil Beauvoir on February 26, 2020, 12:56:36 PM
Not yet because that is set via an Archi "Feature" which is not implemented yet in jArchi. It's on the roadmap - https://www.archimatetool.com/roadmap/
Title: Re: Shape Line Opacity in jArchi?
Post by: Phil Beauvoir on February 26, 2020, 14:41:42 PM
Actually, even though the underlying mechanism for storing the outline opacity uses an Archi "Feature" the API can still be exposed as in:

value = object.getOutlineOpacity();
value = object.outlineOpacity;

object.setOutlineOpacity(100);
object.outlineOpacity = 100;


The same for visibility of connection labels:

isVisible = connection.isLabelVisible();
isVisible  = connection.labelVisible;

connection.setLabelVisible(false);
connection.labelVisible = false;


So I've just implemented these two for the next release of jArchi.
Title: Re: Shape Line Opacity in jArchi?
Post by: Phil Beauvoir on February 28, 2020, 10:15:45 AM
These are part of jArchi 0.7.2 now.