View on GitHub

optical_graph_recognition_mobApp

Mobile application for optical graph recognition

app / com.pzpg.ogr.graph / GraphActivity

GraphActivity

abstract class GraphActivity : AppCompatActivity

Code taken from https://github.com/Team-Blox/GraphView/blob/master/sample/src/main/java/de/blox/graphview/sample/GraphActivity.java There is a small change to adapt to the project

Constructors

Name Summary
<init> Code taken from https://github.com/Team-Blox/GraphView/blob/master/sample/src/main/java/de/blox/graphview/sample/GraphActivity.java There is a small change to adapt to the projectGraphActivity()

Properties

Name Summary
adapter lateinit var adapter: GraphAdapter<*>
currentFilePath lateinit var currentFilePath: String
graphView lateinit var graphView: GraphView

Functions

Name Summary
createGraph abstract fun createGraph(): Graph
getNodeText open fun getNodeText(): String
onCreate open fun onCreate(savedInstanceState: Bundle?): Unit
readGraphSix fun readGraphSix(path: String): Graph
saveGraphGraphml Save currently opens graph in graphml formatfun saveGraphGraphml(graph: Graph, name: String): Unit
saveGraphSix fun saveGraphSix(graph: Graph): Unit
setLayout abstract fun setLayout(view: GraphView): Unit

Inheritors

Name Summary
FruchtermanReingoldActivity Code taken from https://github.com/Team-Blox/GraphView/blob/master/sample/src/main/java/de/blox/graphview/sample/Algorithms/FruchtermanReingoldActivity.javaclass FruchtermanReingoldActivity : GraphActivity