Gradient and ellipsis in lifeline of Sequence Diagram not working

0 votes
asked Sep 26, 2013 in Bug by anonymous
Hi

The following PlantUML Diagram:

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

@startuml
skinparam SequenceLifeLineBackgroundColor #FEFEFE/#CDCDCD
participant P
activate P
P -> P : ignoreme
...
P -> P : ignoreme
deactivate P
@enduml

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

yields the following exception in PlantUML 7972:

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

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.DriverRectangleG2d.draw(Unknown Source)
at net.sourceforge.plantuml.ugraphic.g2d.DriverRectangleG2d.draw(Unknown Source)
at net.sourceforge.plantuml.ugraphic.AbstractUGraphic.draw(Unknown Source)
at net.sourceforge.plantuml.skin.rose.ComponentRoseActiveLine.drawInternalU(Unknown Source)
at net.sourceforge.plantuml.skin.AbstractComponent.drawU(Unknown Source)
at net.sourceforge.plantuml.sequencediagram.graphic.SegmentColored.drawU(Unknown Source)
at net.sourceforge.plantuml.sequencediagram.graphic.LifeLine.drawU(Unknown Source)
at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSet.drawLifeLineU(Unknown Source)
at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSet.drawPlaygroundU(Unknown Source)
at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSet.drawU(Unknown Source)
at net.sourceforge.plantuml.sequencediagram.graphic.SequenceDiagramFileMakerPuma.createImage(Unknown Source)
at net.sourceforge.plantuml.sequencediagram.graphic.SequenceDiagramFileMakerPuma.createOne(Unknown Source)
at net.sourceforge.plantuml.sequencediagram.SequenceDiagram.exportDiagramInternal(Unknown Source)
at net.sourceforge.plantuml.UmlDiagram.exportDiagram(Unknown Source)
at net.sourceforge.plantuml.PSystemUtils.exportDiagramsSequence(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)

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

Thanks for fixing and kind regards

Marc

1 Answer

0 votes
answered Sep 26, 2013 by plantuml (295,000 points)

Hello,

Thanks for the report.

This has been solved in current beta : https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

However, the gradient is starting again after each ellipsis. Not easy to fix, so I hope this is not an issue...

Regards,

...