Adding labels to OMScalingIcon?

View: New views
1 Messages — Rating Filter:   Alert me  

Adding labels to OMScalingIcon?

by Democko, Nickie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I’m trying to add a label to an OMScalingIcon as follows:

 

OMScalingIcon icon = …

 

OMTextLabeler label = new OMTextLabeler("TEST LABEL", OMText.JUSTIFY_RIGHT);

 

Icon.putAttribute(OMGraphicConstants.LABEL, label);

 

It compiles and runs, but I’m seeing no labels.  It works fine for OMPolys and such, but not for OMScalingIcons.  What am I missing?

 

Thanks,

Nickie

LightInTheBox - Buy quality products at wholesale price!