06-23-2011 05:10 PM
Hi, I'm trying to understand how createBitmapBorder is treating the bitmap when you specify the edges. It seems like the method is disecting the bitmap that is supplied. I've also seen some examples (i.e. http://miamicoder.com/2010/using-backgrounds-and-b
Any information explaining how these edges parameters affect the bitmap is what i'm looking for.
Solved! Go to Solution.
06-24-2011 12:01 AM
This is just my opinion,
Every field can be set for the border...
Using function setBorder...
For the easy way, use BorderFactory for creating the border.... there's many ways, like solid border, rounded border, or using bitrmap for boder...
new XYZEdges is using for the size of elipsis for each point... the bigger the size, border became more rounded..
corrrect me if i'm wrong
06-24-2011 12:11 PM
Thanks, but just focusing on the createBitmapBorder method, how is it manipulating the supplied bitmap? What is it really expecting. The example at the url is using a rounded-border.png file which contains a rounded corner image. How is createBitmapBorder using that image and are there any examples of the right way to use this method?
Interestingly.. if the field that is being "bordered" is log and wide.. the bitmap is being applied by repeating the image or stretching it..
06-24-2011 04:35 PM
I figured it out. This is what i discovered... right in the javadocs for BorderFactory explains the parameters but is missing an image.. the path to the image is wrong in the javadoc for:
There is a link to an image that explains alot. the alt text is "Image explaining border and edges"
once you fix the link ../doc-files/bitmap_border.gif that image will appear in the javadoc. This javadoc in general just needs a review, I saw some misspellings there too.
01-08-2012 06:01 PM
Sorry, do you have that image? I can't find it in the javadocs, and I also need to understand how is treating the method createBitmapBorder the Bitmap with the XYEdges. I would appreciate so much your help.
Manu thanks in advance. Regards.
01-22-2012 07:34 PM