umbrello/umbrello
#include <associationline.h>
Public Types | |
typedef QPair< QPointF, QPointF > | SymbolEndPoints |
enum | SymbolType { None = -1, OpenArrow, ClosedArrow, CrowFeet, Diamond, Subset, Circle, Count } |
Public Member Functions | |
Symbol (SymbolType symbolType, QGraphicsItem *parent=0) | |
virtual | ~Symbol () |
void | alignTo (const QLineF &line) |
virtual QRectF | boundingRect () const |
QBrush | brush () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
QPen | pen () const |
void | setBrush (const QBrush &brush) |
void | setPen (const QPen &pen) |
void | setSymbolType (SymbolType symbolType) |
virtual QPainterPath | shape () const |
SymbolEndPoints | symbolEndPoints () const |
SymbolType | symbolType () const |
Detailed Description
This class provides with various symbols that can be embedded in AssociationLine.
It also provides with convenience methods to align the symbol to AssociationLine.
Definition at line 32 of file associationline.h.
Member Typedef Documentation
typedef QPair<QPointF, QPointF> Symbol::SymbolEndPoints |
Definition at line 35 of file associationline.h.
Member Enumeration Documentation
enum Symbol::SymbolType |
This enumeration lists all the symbols that can be used as embedded on AssociationLine.
Enumerator | |
---|---|
None | |
OpenArrow | |
ClosedArrow | |
CrowFeet | |
Diamond | |
Subset | |
Circle | |
Count |
Definition at line 41 of file associationline.h.
Constructor & Destructor Documentation
|
explicit |
Constructs a Symbol with current symbol being symbol and parented to parent.
Definition at line 1224 of file associationline.cpp.
|
virtual |
Destructor.
Definition at line 1235 of file associationline.cpp.
Member Function Documentation
void Symbol::alignTo | ( | const QLineF & | to | ) |
This method aligns this Symbol to the line being passed.
That is, it ensures that the axis of this symbol aligns exactly with the "to" line passed.
Also this item is moved such that the second end point of the SymbolEndPoints for the current symbol collides with the second end point of "to" line.
Definition at line 1305 of file associationline.cpp.
|
virtual |
- Returns
- The bound rectangle for this based on current symbol.
Definition at line 1279 of file associationline.cpp.
QBrush Symbol::brush | ( | ) | const |
- Returns
- The brush used to fill symbol.
Definition at line 1349 of file associationline.cpp.
|
virtual |
Draws the current symbol using the QPainterPath stored for the current symbol.
Definition at line 1260 of file associationline.cpp.
QPen Symbol::pen | ( | ) | const |
- Returns
- The pen used to draw symbol.
Definition at line 1330 of file associationline.cpp.
void Symbol::setBrush | ( | const QBrush & | brush | ) |
Sets the brush used to fill symbol.
Definition at line 1357 of file associationline.cpp.
void Symbol::setPen | ( | const QPen & | pen | ) |
Sets the pen used to draw the symbol.
Definition at line 1338 of file associationline.cpp.
void Symbol::setSymbolType | ( | SymbolType | symbolType | ) |
Sets the current symbol type to symbol and updates the geometry.
Definition at line 1250 of file associationline.cpp.
|
virtual |
- Returns
- The path for this based on current symbol.
Definition at line 1289 of file associationline.cpp.
Symbol::SymbolEndPoints Symbol::symbolEndPoints | ( | ) | const |
- Returns
- The end points for the symbol.
Definition at line 1322 of file associationline.cpp.
Symbol::SymbolType Symbol::symbolType | ( | ) | const |
- Returns
- The current symbol being represented.
Definition at line 1242 of file associationline.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.