#include <fsadiagramcontroller.h>
Inheritance diagram for FsaDiagramController:

Public Member Functions | |
| FsaDiagramController (JavaVM *jvm, QObject *parent=0) | |
| virtual | ~FsaDiagramController () |
Protected Member Functions | |
| virtual void | elementAddEvent (CElementAddEvent *) |
| virtual void | elementRemoveEvent (CElementRemoveEvent *) |
| virtual void | elementAttributeAddEvent (CElementAttributeAddEvent *) |
| virtual void | elementAttributeRemoveEvent (CElementAttributeRemoveEvent *) |
| virtual void | elementAttributeChangeDataEvent (CElementAttributeChangeDataEvent *) |
| void | onSymbolAdded (jint symbolId) |
| void | onSymbolRemoved (jint symbolId) |
| void | setElementAttributeData (jint symbolId, int attributeType, const QVariant &newAttributeData) |
| bool | tryCiderElementAdd (AbstractElement *element) |
| bool | tryCiderElementRemove (AbstractElement *element) |
| bool | tryCiderElementModify (AbstractElement *element, AbstractElementAttribute *attribute, const QVariant &newAttributeData) |
| jmethodID | tryGetMethodID (jclass cls, const char *name, const char *sig) |
Friends | |
| void JNICALL | Java_CiderInterface_native_symbolAdded (JNIEnv *, jclass, jint) |
| void JNICALL | Java_CiderInterface_native_symbolRemoved (JNIEnv *, jclass, jint) |
| void JNICALL | Java_FSACiderInterface_native_arrowPointsModified (JNIEnv *, jclass, jint, jdouble, jdouble, jdouble, jdouble, jdouble, jdouble) |
| void JNICALL | Java_FSACiderInterface_native_circleModified (JNIEnv *, jclass, jint, jdouble, jdouble, jdouble) |
| void JNICALL | Java_FSACiderInterface_native_textRectModified (JNIEnv *, jclass, jint, jdouble, jdouble, jdouble, jdouble) |
| FsaDiagramController::FsaDiagramController | ( | JavaVM * | jvm, | |
| QObject * | parent = 0 | |||
| ) |
Constructs a diagram controller that contains CIDER FSA specific code.
| FsaDiagramController::~FsaDiagramController | ( | ) | [virtual] |
| void FsaDiagramController::elementAddEvent | ( | CElementAddEvent * | event | ) | [protected, virtual] |
Asserts that the event and the event->element() are non-null.
Reimplemented from ElementDocController.
| void FsaDiagramController::elementRemoveEvent | ( | CElementRemoveEvent * | event | ) | [protected, virtual] |
If the given element is currently selected, this will update the elementSelection() and post a CChangeElementSelectionEvent before the element is removed, allowing views to remove any references to it.
Asserts that the event and the element is refers to are both non-null.
Reimplemented from DiagramController.
| void FsaDiagramController::elementAttributeAddEvent | ( | CElementAttributeAddEvent * | event | ) | [protected, virtual] |
Adds the specified attribute to the given element and then informs the views.
Warning: Because elements can only contain one of each type of attribute (i.e. no duplicates), any existing attribute of the same type that is to be added will be removed (and the views informed) before the new one is added.
Asserts that the event, event->element() and event->attribute() are all non-null.
Reimplemented from ElementDocController.
| void FsaDiagramController::elementAttributeRemoveEvent | ( | CElementAttributeRemoveEvent * | event | ) | [protected, virtual] |
Removes the specified attribute from the given element and then informs the views.
Asserts that the event, event->element() and event->attribute() are all non-null.
Reimplemented from ElementDocController.
| void FsaDiagramController::elementAttributeChangeDataEvent | ( | CElementAttributeChangeDataEvent * | event | ) | [protected, virtual] |
Updates the attribute and the views.
Asserts that the event, event->element() and event->attribute() are all non-null.
Reimplemented from ElementDocController.
| void FsaDiagramController::onSymbolAdded | ( | jint | symbolId | ) | [protected] |
This should only be called by CiderInterface (in Java, via Java_CiderInterface_native_symbolAdded).
Note: "cider" is explicit, as Digest elements have their own IDs.
| void FsaDiagramController::onSymbolRemoved | ( | jint | symbolId | ) | [protected] |
This should only be called by CiderInterface (in Java, via Java_CiderInterface_native_symbolRemoved).
| void FsaDiagramController::setElementAttributeData | ( | jint | symbolId, | |
| int | attributeType, | |||
| const QVariant & | newAttributeData | |||
| ) | [protected] |
This should only be called by FsaDiagramController (in Java via native_arrowPointsModified, native_circleModified, etc...)
| bool FsaDiagramController::tryCiderElementAdd | ( | AbstractElement * | element | ) | [protected] |
| bool FsaDiagramController::tryCiderElementRemove | ( | AbstractElement * | element | ) | [protected] |
This should only be called via a queued signal-slot connection by CiderView.
| bool FsaDiagramController::tryCiderElementModify | ( | AbstractElement * | element, | |
| AbstractElementAttribute * | attribute, | |||
| const QVariant & | newAttributeData | |||
| ) | [protected] |
| jmethodID FsaDiagramController::tryGetMethodID | ( | jclass | cls, | |
| const char * | name, | |||
| const char * | sig | |||
| ) | [protected] |
| void JNICALL Java_CiderInterface_native_symbolAdded | ( | JNIEnv * | env, | |
| jclass | , | |||
| jint | symbolId | |||
| ) | [friend] |
| void JNICALL Java_CiderInterface_native_symbolRemoved | ( | JNIEnv * | env, | |
| jclass | , | |||
| jint | symbolId | |||
| ) | [friend] |
| void JNICALL Java_FSACiderInterface_native_arrowPointsModified | ( | JNIEnv * | env, | |
| jclass | , | |||
| jint | symbolId, | |||
| jdouble | start_x, | |||
| jdouble | start_y, | |||
| jdouble | mid_x, | |||
| jdouble | mid_y, | |||
| jdouble | end_x, | |||
| jdouble | end_y | |||
| ) | [friend] |
| void JNICALL Java_FSACiderInterface_native_circleModified | ( | JNIEnv * | env, | |
| jclass | , | |||
| jint | symbolId, | |||
| jdouble | radius, | |||
| jdouble | mid_x, | |||
| jdouble | mid_y | |||
| ) | [friend] |
| void JNICALL Java_FSACiderInterface_native_textRectModified | ( | JNIEnv * | env, | |
| jclass | , | |||
| jint | symbolId, | |||
| jdouble | mid_x, | |||
| jdouble | mid_y, | |||
| jdouble | halfwidth, | |||
| jdouble | halfheight | |||
| ) | [friend] |
1.5.2