Interface and ComponentBackgroundColor with gradient not working

0 votes
asked Jul 8, 2013 in Bug by anonymous
The following code PlantUml produces an exception:

-----------------

@startuml
skinparam ComponentBackgroundColor #FEFEFE/#CDCDCD
() IFACE
@enduml

-----------------

java.lang.ClassCastException: net.sourceforge.plantuml.graphic.HtmlColorGradient cannot be cast to net.sourceforge.plantuml.graphic.HtmlColorSimple
    at net.sourceforge.plantuml.ugraphic.ColorMapperIdentity.getMappedColor(Unknown Source)
    at net.sourceforge.plantuml.ugraphic.ColorMapperTransparentWrapper.getMappedColor(Unknown Source)
    at net.sourceforge.plantuml.ugraphic.g2d.DriverEllipseG2d.draw(Unknown Source)
    at net.sourceforge.plantuml.ugraphic.g2d.DriverEllipseG2d.draw(Unknown Source)
    at net.sourceforge.plantuml.ugraphic.AbstractUGraphic.draw(Unknown Source)
    at net.sourceforge.plantuml.svek.CircleInterface2.drawU(Unknown Source)
    at net.sourceforge.plantuml.graphic.USymbolSimpleAbstract$1.drawU(Unknown Source)
    at net.sourceforge.plantuml.svek.image.EntityImageComponentForDescriptionDiagram.drawU(Unknown Source)
    at net.sourceforge.plantuml.svek.SvekResult.drawU(Unknown Source)
    at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createPng(Unknown Source)
    at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFileInternal(Unknown Source)
    at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFile(Unknown Source)
    at net.sourceforge.plantuml.cucadiagram.CucaDiagram.exportDiagramInternal(Unknown Source)
    at net.sourceforge.plantuml.UmlDiagram.exportDiagram(Unknown Source)
    at net.sourceforge.plantuml.PSystemUtils.exportDiagramsCuca(Unknown Source)
    at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(Unknown Source)
    at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(Unknown Source)
    at net.sourceforge.plantuml.Run.manageFileInternal(Unknown Source)
    at net.sourceforge.plantuml.Run.processArgs(Unknown Source)
    at net.sourceforge.plantuml.Run.manageAllFiles(Unknown Source)
    at net.sourceforge.plantuml.Run.main(Unknown Source)
 

regards

Marc

1 Answer

0 votes
answered Jul 9, 2013 by plantuml (198,400 points)
Hello,

Thanks for the report.

This has been fixed in this beta release:

https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Hope it works fine now.
...