In draw2d,How can I draw a figure without having any border? How to implements the CustomBorder for rectangles to remove the border? I know if we implement a class which extends Border, and in the paint method what should I do to remove the border?
Figures don't have a border unless you explicitly set one by calling setBorder(..)
. If you just want a blank figure that doesn't draw anything, then new Figure()
will give you just that. There's no need to implement any custom borders or figures. If you are using a Rectangle
then that's exactly what you will get: a rectangle; which is what you probably confused for a border.