Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Java
 QCChart2D for Java
 Getting location lhs of legend label

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
PeterJ Posted - 06 Jul 2010 : 18:35:07
I'm trying to get the position (in DEV coordinates) of the left had side of the longest legend label. Is there a way to get this? The bounding box method gets me the position of the legend.

In the chart at the top of the forum page, this would be the x,y location of the $ on the $23 label.
5   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 27 Jul 2010 : 06:32:49
Thanks. Post an image of a typical chart in your application using the Insert Image option (fourth icon from right on format bar). We always like to see examples of our customers applications. It gives us ideas for new example programs. If you don't have a public URL to post the image on, you can use a free image posting service such as ImageShack, http://www.imageshack.us/.
PeterJ Posted - 26 Jul 2010 : 17:41:11
Sorry to take so long to reply. That worked very well.

We actually have a very nice application build now on top of QC. We'd be happy to share that with you if you need a reference customer.
quinncurtis Posted - 07 Jul 2010 : 08:44:56
You should be able to call the getBoundingBox() method of the axis labels.

ChartRectangle2D rect = yAxisLabels.getBoundingBox();

This assumes the labels have already been drawn to the screen, otherwise the return value of the bounding box is meaningless.
PeterJ Posted - 06 Jul 2010 : 21:27:12
Sorry, it is the y-axis labels (the NumericAxisLabels). Using the getLocation method gives me the right hand side. I'm looking for the left hand side. I cannot find a method to get the NumericLabels that make up a NumericAxisLabels.

quinncurtis Posted - 06 Jul 2010 : 21:14:23
I don't know if you are referring to the legend, or the y-axis labels. You say legend, but then you reference a y-axis label, i.e. $23.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07