|
Re: Filled attribute always true? [message #1461391 is a reply to message #1461272] |
Tue, 04 November 2014 14:08 |
John Cole Messages: 66 Registered: June 2013 |
Member |
|
|
I have to correct myself. It was necessary to cast the GraphicsAlgorithm to a special one, before using.
Rectangle r = (Rectangle) ga;
boolean isFilled = r.getFilled();
So this works now.
But I have another question, similar to this. What should I do, if I want to detect whether a gradient is set for a specific GraphicsAlgorithm, e.g. a Rectangle. So I am missing something like...
Rectangle r = (Rectangle) ga;
boolean isGradient = r.getIsGradient();
... so that I could check whether a gradient is set and if so, I would work with the fore- and background to set the gradient for the new element.
[Updated on: Tue, 04 November 2014 14:16] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02408 seconds