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

Crosshair on candlestick chart Options · View
argia
#1 Posted : Wednesday, November 14, 2012 10:50:34 AM
Rank: Newbie

Groups: Registered

Joined: 10/5/2012
Posts: 7
Location: Jakarta
Hi, I've been searching across the forum about how to implement crosshair. All I can find is the discussion about crosshair on aiCharts for Android in this thread : http://www.artfulbits.co....aspx?g=posts&t=392

Have anyone tried to implement this on aiCharts for Blackberry? Are there any examples I can follow?

Thank you very much
Baydalka Volodymyr
#2 Posted : Wednesday, November 14, 2012 12:16:02 PM
Rank: Developers Team


Groups: Registered, Administrators

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

I'm not sure that I understand you correctly. If you need draw something over chart, you may do it manually.

Code:

class MyChartField extends ChartField
{
  protected void paint(Graphics g)
  {
    super.paint(g);

    ChartArea area = (ChartArea)getAreas().get(0);
    XYRect areaRect = area.getSeriesBounds();

    int x = areaRect.x + areaRect.width / 2 - myBitmap.getWidth() / 2;   
    int y = areaRect.y + areaRect.height / 2 - myBitmap.getHeight() / 2;   

    g.drawBitmap(x, y, myBitmap.getWidth(), myBitmap.getHeight(), myBitmap, 0, 0);
  }
}


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.