Screen Space Painter Tools / APIs

Custom indicators, trading strategies, data export and recording and more...
rickbarlow
Posts: 43
Joined: Mon Feb 08, 2021 5:37 pm
Been thanked: 1 time

Screen Space Painter Tools / APIs

Post by rickbarlow » Tue Feb 23, 2021 7:11 am

The L1 API documentation here -- https://github.com/BookmapAPI/DemoStrategies
Talks about a screen space painter tool. Is there additional documentation you can point me to for usage?

 

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Screen Space Painter Tools / APIs

Post by Andry API support » Tue Feb 23, 2021 8:06 am

There are some examples and some info in the javadoc.
Examples:
https://github.com/BookmapAPI/DemoStrat ... acepainter
Javadoc:
There is bm-l1api-javadoc.jar in your Bookmap program folder. Rename it to zip, extract and open the index.html file.

rickbarlow
Posts: 43
Joined: Mon Feb 08, 2021 5:37 pm
Been thanked: 1 time

Re: Screen Space Painter Tools / APIs

Post by rickbarlow » Tue Feb 23, 2021 7:19 pm

Thank you for the examples.

One more question -- all the examples are of type @Layer1Attachable, vs. @Layer1SimpleAttachable. Does that mean I'm required to switch to @Layer1Attachable to use the Screen Painter API's?
Thanks you

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: Screen Space Painter Tools / APIs

Post by Svyatoslav » Tue Feb 23, 2021 7:46 pm

Not really. Screen Space Painter extension (same as some other extensions) can be used from both Simplified and Core API in a similar way.

rickbarlow
Posts: 43
Joined: Mon Feb 08, 2021 5:37 pm
Been thanked: 1 time

Re: Screen Space Painter Tools / APIs

Post by rickbarlow » Thu Feb 25, 2021 12:50 am

I pulled down 7.1.0.65 package. The jars have the ScreenSpace* classes, but the javadocs files for core and simplified do not have anything on the classes. Are there javadocs for them somewhere else? (I'm lost without some sort of documentation.
Thanks

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Screen Space Painter Tools / APIs

Post by Andry API support » Thu Feb 25, 2021 9:31 am

We have javadoc online now. Please use this url
http://javadoc.bookmap.com/maven2/relea ... /7.1.0.65/
You can scroll the classes on the left bottom to ScreenSpace classes.

rickbarlow
Posts: 43
Joined: Mon Feb 08, 2021 5:37 pm
Been thanked: 1 time

Re: Screen Space Painter Tools / APIs

Post by rickbarlow » Mon Mar 01, 2021 2:34 am

I must be missing something silly, but I am unable to convert any of the SSP demos from a Layer1Attachable to a Layer1SimpleAttachable. Would you please provide a sample SSP demo that is implemented using Layer1SimpleAttachable?
Thanks in advance.

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Screen Space Painter Tools / APIs

Post by Andry API support » Mon Mar 01, 2021 9:37 am

Hi, here is the demo for Simplified API (SimpleAttachable) providing the same feature as Layer1ApiCanvasColorsDemo (Core API/Attachable).
Attachments
SSPClass.java
(7.68 KiB) Downloaded 174 times
SimplifiedDemoSSP.java
(1.23 KiB) Downloaded 156 times

rickbarlow
Posts: 43
Joined: Mon Feb 08, 2021 5:37 pm
Been thanked: 1 time

Re: Screen Space Painter Tools / APIs

Post by rickbarlow » Mon Mar 01, 2021 2:07 pm

Thank you, much appreciated!

Post Reply