I've been using <<sterotypes>> on containers to represent technology choices which invariable displays nicely in the center, typically along with the container's name:
Trying to add a little iconography to diagrams I've started using <<$sprite>> stereotypes instead but have found that the alignment is oddly right aligned for rectangles, and just plain broken for databases:
For reference, other containers behave as expected:
(--------)
Many thanks for the feedback.
The "database" issue has been fixed in last beta http://beta.plantuml.net/plantuml.jar
The "rectangle" behaviour have been done upon request of some users, so changing this will be more difficult (we may provide a setting to choose alignment).
Regards,
BTW, cloudinsight has been integrated in last release ( http://plantuml.com/stdlib ), so you can write:
@startuml !include <cloudinsight/java> database MyApp <<$java>> { class ClassName } @enduml