#include <transitionLine.h>
Public Member Functions | |
TransitionLine (Editor *parent, State *ss, State *es, const QString &label, bool leftOriented=true, bool dimmed=false) | |
virtual | ~TransitionLine () |
virtual void | adjust () |
The only method where graphics changes are computed. | |
virtual QString | getTypeName () const |
virtual QString | getVCCommand () const |
VauCanSon-G transition command. | |
virtual void | setLabelPosition () |
Definition at line 6 of file transitionLine.h.
TransitionLine::TransitionLine | ( | Editor * | parent, | |
State * | ss, | |||
State * | es, | |||
const QString & | label, | |||
bool | leftOriented = true , |
|||
bool | dimmed = false | |||
) |
Definition at line 12 of file transitionLine.cpp.
References adjust(), DEF_EDGE_LAB_POS, Transition::dimEdgeLabelColor, Transition::edgeLabelColor, Transition::label, Transition::m_labelFontSize, setLabelPosition(), LabelX::setPosParam(), Z_TR_LABEL, and Z_TRANSITION.
TransitionLine::~TransitionLine | ( | ) | [virtual] |
Definition at line 70 of file transitionLine.cpp.
References DBGLOG.
void TransitionLine::adjust | ( | ) | [virtual] |
The only method where graphics changes are computed.
Implements Transition.
Definition at line 25 of file transitionLine.cpp.
References Transition::createStrokes(), Transition::eFIND_FIRST, Transition::endPoint, Transition::endState, Transition::findIntersectedPoints(), Transition::getArrowPolygon(), State::getMyPolygon(), Transition::p, Transition::pa, RELLOG, setLabelPosition(), Transition::startPoint, and Transition::startState.
Referenced by TransitionLine().
QString TransitionLine::getTypeName | ( | ) | const [virtual] |
Implements Transition.
Definition at line 75 of file transitionLine.cpp.
Referenced by getVCCommand().
QString TransitionLine::getVCCommand | ( | ) | const [virtual] |
VauCanSon-G transition command.
Implements Transition.
Definition at line 134 of file transitionLine.cpp.
References Transition::endState, State::getName(), Transition::getNextLabelsVCCommand(), getTypeName(), TwoStatesTransition::getTypeNameSuffix(), Transition::label, LabelX::posParam(), Transition::startState, and LabelX::text().
void TransitionLine::setLabelPosition | ( | ) | [virtual] |
Reimplemented from Transition.
Definition at line 80 of file transitionLine.cpp.
References LabelX::getHeight(), LabelX::getWidth(), Transition::label, TwoStatesTransition::leftOriented, and LabelX::posParam().
Referenced by adjust(), and TransitionLine().