Support PlantUML State Diagrams
TLmaK0 opened this issue · comments
Hugo Freire Gil commented
Gravizo should support PlantUML State Diagrams:
@startuml
[*] --> State1
State1 --> [*]
State1 : this is a string
State1 : this is another string
State1 -> State2
State2 --> [*]
@enduml
Hugo Freire Gil commented
Fixed
![Alt text](http://g.gravizo.com/g?
@startuml;
skinparam backgroundColor LightYellow;
skinparam state {;
StartColor MediumBlue;
EndColor Red;
BackgroundColor Peru;
BackgroundColor<<Warning>> Olive;
BorderColor Gray;
FontName Impact;
};
[*] --> NotShooting;
state "Not Shooting State" as NotShooting {;
state "Idle mode" as Idle <<Warning>>;
state "Configuring mode" as Configuring;
[*] --> Idle;
Idle --> Configuring : EvConfig;
Configuring --> Idle : EvConfig;
};
NotShooting --> [*];
@enduml
)
![Alt text](http://g.gravizo.com/g?
@startuml;
skinparam backgroundColor LightYellow;
skinparam state {;
StartColor MediumBlue;
EndColor Red;
BackgroundColor Peru;
BackgroundColor<> Olive;
BorderColor Gray;
FontName Impact;
};
[] --> NotShooting;
state "Not Shooting State" as NotShooting {;
state "Idle mode" as Idle <>;
state "Configuring mode" as Configuring;
[] --> Idle;
Idle --> Configuring : EvConfig;
Configuring --> Idle : EvConfig;
};
NotShooting --> [*];
@enduml)
Hugo Freire Gil commented
And uml class diagram:
/**
*Structural Things
*@opt commentname
*@note Notes can
*be extended to
*span multiple lines
*/
class Structural{}
/**
*@opt all
*@note Class
*/
class Counter extends Structural {
static public int counter;
public int getCounter%28%29;
}
/**
*@opt shape activeclass
*@opt all
*@note Active Class
*/
class RunningCounter extends Counter{}