whitespace COMPANY whitespace SERVICES whitespace PRODUCTS whitespace PURCHASE whitespace SUPPORT whitespace CONTACTS whitespace Home whitespace Contact Us whitespace Site Map whitespace
whitespace
SUPPORT
whitespace
FORUM
whitespace
FAQS
whitespace
SUBSCRIPTION
whitespace
REQUEST ON-LINE
whitespace
whitespace

Technical Support Forum

Welcome Guest Search | Active Topics | Log In | Register

Hit test radius in java Options · View
hectorharvey
#1 Posted : Tuesday, February 08, 2011 7:19:58 AM
Rank: Newbie

Groups: Registered

Joined: 2/1/2011
Posts: 5
Location: Atlanta
In the Line Hit Test sample the xml defining the chart specifies:
<ai:series name="series1" type="Line" marker="@drawable/marker" markersize="30" points-hit_radius="20"/>
<ai:series name="series2" type="Line" marker="@drawable/marker" markersize="30" points-hit_radius="20"/>

How can I specify the points_hit_radius parameter in Java? Looks like it would be on the series, but I don't see a setter.
hectorharvey
#2 Posted : Thursday, February 10, 2011 1:39:46 AM
Rank: Newbie

Groups: Registered

Joined: 2/1/2011
Posts: 5
Location: Atlanta
I am also interested in a long tap for a chart point. I can create my own gesture detector, but I would want it to respect the expanded radius mentioned above. What is the best approach for detecting a long tap within a chart?

Thanks in advance.
Baydalka Volodymyr
#3 Posted : Monday, February 14, 2011 2:22:35 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

1) aiCharts library uses "custom attributes" to setup a unique attributes for different chart types. You may set it via ChartSeries.setAttribute method. Example :
Code:
series.setAttribute(ChartLineType.HIT_RADIUS, 20);


2) Gesture detector is good enough to detect a long-tap, until you do not need other build-in gesture actions (panning). Otherwise you just need to be more careful with using of gesture-detector (do not remove base implementation).

Best regards,
Volodymyr Baydalka
Andriod development and support team
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Company | Services | Practices | Technologies | Career | Contacts | Privacy
© 2005-2016 ArtfulBits. All rights reserved.