Multilingual Wiki Documentation

You are currently using syntax.
In an attempt to improve PlantUML documentation...
Please do not use this website for your own diagrams.
You can click here and use the online server here for your own documentation.

Back to page content

Changes

English version Empty
== Java Integration API
If you use PlantUML as a library, you can use the `+StatsUtils.getStats()+` methods that return a `+Stats+` object with all datas.

You can retrieve it to use it as you wish.

Here is a short class diagram about this API:

<plantuml>
@startuml
class StatsUtil {
{static} +Stats getStats()
}
interface Stats {
+StatsTable getLastSessions()
+StatsTable getCurrentSessionByDiagramType()
+StatsTable getCurrentSessionByFormat()
+StatsTable getAllByDiagramType()
+StatsTable getAllByFormat()
}
StatsUtil -> Stats: build
Stats o--> "5" StatsTable: contains
enum StatsColumn {
SESSION_ID
VERSION
PARSED_COUNT
...
}
interface StatsTable {
+ Collection<StatsColumn> getColumnHeaders()
+ List<StatsLine> getLines()
}
StatsTable o-> StatsColumn: headers
StatsTable *--> StatsLine: contains
interface StatsLine {
}
interface StatsLine {
+Collection<StatsColumn> getColumnHeaders()
+Object getValue(StatsColumn column)
}
StatsLine o--> StatsColumn: headers
@enduml
</plantuml>

__Implementation note:__ The storage of historical data are provided through the
http://docs.oracle.com/javase/7/docs/technotes/guides/preferences/overview.html[Preference API].


Please report any bugs to plantuml@gmail.com or here.
This website is still in beta testing.