JavaFX Canvas misses API to set dashed line stroke

David Gilbert dave at jfree.org
Tue Jul 29 03:00:50 UTC 2014


Thanks for the reply.  This is the one I added:

https://javafx-jira.kenai.com/browse/RT-37999

Best regards,
David

On Jul 29, 2014, at 12:46 AM, Stephen F Northover wrote:

> If you have not done so already, please enter a JIRA to request this feature.
> 
> Thanks,
> Steve
> 
> On 2014-07-22, 5:42 AM, David Gilbert wrote:
>> Hello,
>> 
>> I have created a small open source library that provides a bridge from Java2D to the JavaFX Canvas:
>> 
>> https://github.com/jfree/fxgraphics2d
>> 
>> Unfortunately I have so far not been able to support dashed lines, since the GraphicsContext from the JavaFX Canvas doesn't provide any API to set the line dash attributes.  Did I miss something, or is there really no way to specify dashed lines?  I know this is possible in the Shape API (http://docs.oracle.com/javafx/2/api/javafx/scene/shape/Shape.html#getStrokeDashArray()) but I am specifically interested in drawing dashed lines on the JavaFX Canvas.  Any pointers will be appreciated.
>> 
>> Best regards,
>> 
>> David
> 



More information about the openjfx-dev mailing list