class T4Line : public T2Line

line having 4 text shapes at 4 positions.

Inheritance:


Public Methods

T4Line (ShapeView *v, Grafport *g, GShape *n1, GShape *n2, List<Point *> *line, bool Curved)
T4Line (ShapeView *v, Grafport *g, GShape *n1, GShape *n2, bool Curved)
T4Line (const T4Line &)
virtual ~T4Line ()
int GetClassType () const
bool InTextArea (int x, int y)
see T2Line. Holds all text shapes into account.
TextShape* HitTextShape (int x, int y)
TextShape* ChooseTextShape (int x, int y)
bool HasTextShape (TextShape *t) const
void SetSelect (bool s)
void UpdateTextShape3 (const string *s)
void UpdateTextShape4 (const string *s)
int GetLeftMost () const
as line, but all text shapes are considered
int GetTopMost () const
int GetRightMost () const
int GetBottomMost () const
void WriteMembers (OutputFile *f)
bool ReadMembers (InputFile *f, double format)
void SetTextShape ()
void SetFont (XFont *ft)
void SetTextColor (const string *color)
void SetAlignment (TextAlign::Type alignment)
void SetGrafport (Grafport *g)
void SetView (ShapeView *v)
bool HasString (const string *s, bool sens, bool sub) const
bool HasString (const string*, bool, bool, List<TextShape *> *)
void MoveRaw (const Point *delta)

Protected Methods

void CalcPositionTextShapes ()
calculate position of all text shapes.
TextShape* GetTextShape3 () const
void SetTextShape3 (TextShape *t)
TextShape* GetTextShape4 () const
void SetTextShape4 (TextShape *t)
PositionType GetT3Position ()
void SetT3Position (PositionType t)
PositionType GetT4Position ()
void SetT4Position (PositionType t)
void DrawShape ()
draw line+ 4 other text shapes.

Inherited from T2Line:

Public Methods

void UpdateTextShape2(const string *s)
bool HasNameString(const string *, bool, bool) const
int ReplaceNameString(const string *, const string *, bool, bool)

Protected Methods

TextShape* GetTextShape2() const
void SetTextShape2(TextShape *t)
PositionType GetT2Position()
void SetT2Position(PositionType t)

Inherited from T1Line:

Public Classes

enum PositionType

Public Methods

void CalcPosition()
void UpdateTextShape1(const string *s)

Protected Fields

static const int CL_FRACTION

Protected Methods

void CalcPositionTextShape(TextShape *t, PositionType tpos)
bool HitTextShapeArea(TextShape *t, PositionType tpos, int x, int y)
bool HitExtraTextShapeArea(int x, int y, const Point *from, const Point *to)
TextShape* GetTextShape1() const
void SetTextShape1(TextShape *t)
PositionType GetT1Position()
void SetT1Position(PositionType t)

Inherited from Line:

Public Methods

Shape* Clone()
bool IsCurved() const
void UpdateCurve(bool b)
void UpdatePosition(const Point *p, bool snap=True)
void SetPosition(const Point *p, bool snap=True)
void DrawOutLine(const Point *)
bool ContainsPt(int x, int y)
int HitHandles(int x, int y)
bool IsLine() const
unsigned int GetCount() const
unsigned int GetOrder() const
void SetOrder(unsigned int i)
void SetCount(unsigned int i)
GShape* GetFromShape() const
GShape* GetToShape() const
void SetFromShape(GShape *n)
void SetToShape(GShape *n)
unsigned int NrPoints() const
List <Point *> * GetLine() const
bool GetSegments(Point pt, Point *pt1, Point *pt2)
bool GetSegment(int n, Point *pt1, Point *pt2)
void SetEnd1(LineEnd::Type t)
void SetEnd2(LineEnd::Type t)
void UpdateEnd1(LineEnd::Type t)
void UpdateEnd2(LineEnd::Type t)
LineEnd::Type GetEnd1()
LineEnd::Type GetEnd2()
void SetToTop()
void SetFromTop()
void SetToBottom()
void SetFromBottom()
void UpdatePosition()
virtual void CalcEndPoints()
void CalcDirection()
bool CalcEndPoint(const Point *pt, unsigned which)
void SetPoint(const Point *pt, unsigned int n)
void AddPoint(const Point *pt, unsigned int n)
void RemovePoint(unsigned int n)
bool SetAssocSubject(AssocList *)
bool SetReferences(AssocList *)
bool CheckReferences()
bool GetLine(int x, int y)
unsigned int GetLineNumber()
void SetLineNumber(unsigned int n)
Point GiveOrthoSnp(Point to) const
Point GiveSnp(Point to) const
Point GiveSnp(Point p, int order, int count, int &code)
void UpdateNameDirection(ReadDirection::Type nd)
ReadDirection::Type GetNameDirection() const

Protected Fields

static const int LINE_DIST
static const int CL_DISTX
static const int CL_DISTY

Protected Methods

void CalcPositionName()
bool ContainsPtLine(int x, int y, const Point *from, const Point *to, int &cx, int &cy) const
bool BelowLine(int x, int y, Point *from, Point *to)
bool AboveLine(int x, int y, Point *from, Point *to)
void SetNameDirection(ReadDirection::Type nd)
void UndrawDirection()
void DrawDirection()
void NotifyTextMove(TextShape *t)

Inherited from GShape:

Public Methods

void Draw()
void Undraw()
virtual void UndrawShape()
virtual void DrawTextShapes()
virtual void UndrawTextShapes()
virtual void UpdateNameString(const string *s)
void SetNameString(const string *s)
const string* GetNameString()
TextShape* GetName() const
unsigned GetLineWidth() const
void SetLineWidth(unsigned n)
void UpdateLineWidth(unsigned n)
LineStyle::Type GetLineStyle() const
void SetLineStyle(LineStyle::Type x)
void UpdateLineStyle(LineStyle::Type x)
const string* GetTextColor() const
void UpdateTextColor(const string *c)
bool IsFixedName()
void SetFixedName(bool b)
virtual void UpdateFont(XFont *ft)
virtual void UpdateAlignment(TextAlign::Type alignment)
XFont* GetFont() const
TextAlign::Type GetAlignment() const

Protected Methods

void WriteGraphicsPart(OutputFile *ofile)
bool ReadGraphicsPart(InputFile *ifile, double format)
void WriteTextPart(OutputFile *ofile)
bool ReadTextPart(InputFile *ifile, double format)
void SetDrawAttributes()
void SnapPosition()
void SnapTopleft()

Inherited from Shape:

Public Fields

static const int MIN_HEIGHT
static const int MIN_WIDTH
static const int HANDLE_WIDTH

Public Methods

bool IsShape() const
virtual bool IsTextShape() const
virtual void UpdateSize(int w, int h)
virtual void UpdateMove(const Point *delta)
virtual void UpdateSelect(bool s)
virtual void UpdateFirstSelect(bool s)
virtual void UpdateColor(string *color)
virtual void SetFirstSelect(bool s)
bool IsFirstSelected() const
void SetVisible(bool s)
void SetSubject(Subject *s)
Subject* GetSubject() const
ShapeView* GetView() const
void SetColor(const string *c)
const string* GetColor() const
virtual void Move(const Point *delta)
virtual void AdjustSize()
void SetHandles(int n)
const Point* GetPosition() const
const Point* GetTopLeft() const
bool IsSelected() const
bool IsVisible() const
bool IsDuplicate() const
int GetWidth() const
int GetHeight() const
virtual void DrawDuplicate()
void UndrawDuplicate()
void SetDuplicate(bool b)
void UpdateDuplicate(bool b)
bool SetAssocView(AssocList *)

Protected Fields

static const int MIN_HANDLES

Protected Methods

Grafport* GetGrafport() const
void SetOutlineAttributes()
virtual void SetSize(int w, int h)
void SetWidth(int w)
void SetHeight(int h)
void SetNrHandles(int n)
DiagramViewer* GetViewer() const
void PositiveCoord(const Point*)
virtual void DrawSelect()
virtual void DrawGraySelect()
virtual void UndrawSelect()
virtual void UndrawGraySelect()
void SetTopLeft(const Point *topLeft)
virtual void SetPositionHandles()
void ForcePosition(const Point *position)

Inherited from Thing:

Public Classes

enum AssocType

Public Methods

unsigned long GetId()
void SetId(unsigned long val)
virtual bool IsSubject() const
virtual bool IsView() const
void Write(OutputFile *ofile)

Documentation

line having 4 text shapes at 4 positions.
T4Line(ShapeView *v, Grafport *g, GShape *n1, GShape *n2, List<Point *> *line, bool Curved)

T4Line(ShapeView *v, Grafport *g, GShape *n1, GShape *n2, bool Curved)

T4Line(const T4Line &)

virtual ~T4Line()

int GetClassType() const

bool InTextArea(int x, int y)
see T2Line. Holds all text shapes into account.

TextShape* HitTextShape(int x, int y)

TextShape* ChooseTextShape(int x, int y)

bool HasTextShape(TextShape *t) const

void SetSelect(bool s)

void UpdateTextShape3(const string *s)

void UpdateTextShape4(const string *s)

int GetLeftMost() const
as line, but all text shapes are considered

int GetTopMost() const

int GetRightMost() const

int GetBottomMost() const

void WriteMembers(OutputFile *f)

bool ReadMembers(InputFile *f, double format)

void SetTextShape()

void SetFont(XFont *ft)

void SetTextColor(const string *color)

void SetAlignment(TextAlign::Type alignment)

void SetGrafport(Grafport *g)

void SetView(ShapeView *v)

bool HasString(const string *s, bool sens, bool sub) const

bool HasString(const string*, bool, bool, List<TextShape *> *)

void MoveRaw(const Point *delta)

void CalcPositionTextShapes()
calculate position of all text shapes.

TextShape* GetTextShape3() const

void SetTextShape3(TextShape *t)

TextShape* GetTextShape4() const

void SetTextShape4(TextShape *t)

PositionType GetT3Position()

void SetT3Position(PositionType t)

PositionType GetT4Position()

void SetT4Position(PositionType t)

void DrawShape()
draw line+ 4 other text shapes.


Direct child classes:
C2R2Line

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de