How does getProperties() method work?

Eva Krejcirova eva.krejcirova at oracle.com
Fri Jun 22 05:03:41 PDT 2012


Hi,

Node.getProperties returns an ObservableMap which you then can use to 
store any information you want.  It is similar to 
getUserData/setUserData which actually store the user data in the same map.
It has nothing to do with JavaFX properties of a node.

We should probably improve the documentation of this method, the current 
javadoc doesn't seem to clarify this.

Eva

On 6/22/2012 1:14 PM, goddard at seznam.cz wrote:
> Hi,
>
> I wanted to query a Rectangle for its properties with getProperties() method, but it always returns empty Map (no elements, zero size).
> For example, I've got a Rectangle defined like this:
>
> Rectangle red = RectangleBuilder.create()
>                  .x(100).y(100)
>                  .width(100).height(100)
>                  .fill(Color.RED)
>                  //.stroke(Color.BLACK).strokeWidth(3).strokeType(StrokeType.OUTSIDE)
>                  .rotate(45)
>                  .build();
>
> Regards, Jiri



More information about the openjfx-dev mailing list