# SSDTripleClassBox

## class SSDTripleClassBox : public TripleClassBox

> A triple box used for a object class.

## Inheritance:

### Public Methods

  | SSDTripleClassBox (ShapeView *v, Grafport *g, int x, int y, int w = TRIPLECLASSBOX_WIDTH, int h = TRIPLECLASSBOX_HEIGHT)
  | SSDTripleClassBox (const SSDTripleClassBox &s)
  | SSDTripleClassBox (const SSDDoubleClassBox &s)
  | SSDTripleClassBox (const SSDSingleClassBox &s)
  | ~SSDTripleClassBox ()
  Shape* | Clone ()
  int | GetClassType () const
  void | SetFont (XFont *ft)
  void | SetTextColor (const string *color)
  void | SetGrafport (Grafport *g)
  void | SetView (ShapeView *v)
  TextShape* | ChooseTextShape (int x, int y)
  bool | HasTextShape (TextShape *t) const
  void | AdjustSize ()
  void | UpdateShowStereotype (bool b)
  void | UpdateShowProperties (bool b)
  void | UpdateStereotypeLabelString (const string *s) update string of stereotype text shape and redraw.
  const string* | GetStereotypeLabelString ()
  TextShape* | GetStereotypeLabel () const
  void | UpdatePropertiesLabelString (const string *s) update string of properties text shape and redraw.
  const string* | GetPropertiesLabelString ()
  TextShape* | GetPropertiesLabel () const
  void | SetTextShape ()
  bool | HasString (const string *s, bool sens, bool sub) const contains s as string (case sensitive, substring).
  bool | HasString (const string*, bool, bool, List<TextShape *> *list)
  void | SetShowStereotype (bool b)
  void | SetShowProperties (bool b)
  bool | IsShowStereotype () const
  bool | IsShowProperties () const
  void | WriteMembers (OutputFile *f)
  bool | ReadMembers (InputFile *f, double format)

### Inherited from TripleClassBox:

### Public Fields

static const int TRIPLECLASSBOX_WIDTH
static const int TRIPLECLASSBOX_HEIGHT

### Public Methods

bool SetAssocSubject(AssocList *)

### Inherited from TripleBox:

### Public Methods

void UpdateLabel2(const string *s, unsigned n, bool update)
TextShape* GetLabel2(unsigned n)
unsigned NrLabels2()
LineStyle::Type GetSeparator2LineStyle() const
void SetSeparator2LineStyle(LineStyle::Type x)

### Protected Fields

string label2Description

### Protected Methods

void DrawShape()
void DrawTextShapes()
int RequiredHeight()
int DoubleBoxHeight()
void CalcPositionLabels()
void CalcPositionLabels2()
void AdjustSizes(const string *s)
List <TextShape *> * GetLabels2()

### Inherited from DoubleBox:

### Public Methods

void SetSize(int w, int h)
void SetPosition(const Point *p, bool snap=True)
void UpdateLabel(const string *s, unsigned n, bool update)
TextShape* GetLabel(unsigned n)
unsigned NrLabels()
LineStyle::Type GetSeparatorLineStyle() const
void SetSeparatorLineStyle(LineStyle::Type x)
int GetInitialHeight() const

### Protected Fields

static const int TEXTMARGIN
string labelDescription
int initialHeight

### Protected Methods

List <TextShape *> * GetLabels()

### Inherited from Box:

### Public Fields

static const int BOX_WIDTH
static const int BOX_HEIGHT
static const int BOX_HANDLES

### Public Methods

void DrawOutLine(const Point *center)
Point GiveSnp(Point to) const
Point GiveOrthoSnp(Point to) const
Point GiveSnp(Point p, int order, int count, int &code)

### Inherited from NodeShape:

### Public Methods

void UpdateIndexLabel(const string *s)
void SetIndexLabel(const string *s)
void DrawDuplicate()
void DrawMultiplicity()
FillStyle::Type GetFillStyle() const
void SetFillStyle(FillStyle::Type f)
void UpdateFillStyle(FillStyle::Type f)
const string* GetFillColor() const
void SetFillColor(const string *c)
void UpdateFillColor(const string *c)
bool InTextArea(int x, int y)
int HitHandles(int, int)
TextShape* GetIndexLabel() const
bool IsFixedIndexLabel()
void SetFixedIndexLabel(bool b)
void SetResizable(bool b)
bool IsResizable()
void ForceSize(int w, int ht)

### Protected Methods

virtual void CalcPositionIndexLabel()

### Inherited from GShape:

### Public Methods

void Draw()
void Undraw()
virtual void UndrawShape()
virtual void UndrawTextShapes()
virtual void UpdateNameString(const string *s)
void SetNameString(const string *s)
const string* GetNameString()
TextShape* GetName() const
virtual void SetSelect(bool s)
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)
virtual TextShape* HitTextShape(int x, int y)
virtual int GetLeftMost() const
virtual int GetTopMost() const
virtual int GetRightMost() const
virtual int GetBottomMost() const
bool IsFixedName()
void SetFixedName(bool b)
virtual void UpdateFont(XFont *ft)
virtual void UpdateAlignment(TextAlign::Type alignment)
virtual void NotifyTextMove(TextShape *)
XFont* GetFont() const
TextAlign::Type GetAlignment() const
bool HasNameString(const string *s, bool c1, bool c2) const
bool CheckReferences()

### Protected Methods

void WriteGraphicsPart(OutputFile *ofile)
bool ReadGraphicsPart(InputFile *ifile, double format)
void WriteTextPart(OutputFile *ofile)
bool ReadTextPart(InputFile *ifile, double format)
void SetDrawAttributes()
virtual void SetAlignment(TextAlign::Type a)
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 UpdatePosition(const Point *position, bool snap=True)
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)
void SetHandles(int n)
virtual bool ContainsPt(int x, int y)
const Point* GetPosition() const
const Point* GetTopLeft() const
bool IsSelected() const
bool IsVisible() const
bool IsDuplicate() const
int GetWidth() const
int GetHeight() const
void UndrawDuplicate()
void SetDuplicate(bool b)
void UpdateDuplicate(bool b)
virtual bool IsLine() const
bool SetAssocView(AssocList *)
virtual void MoveRaw(const Point *delta)

### Protected Fields

static const int MIN_HANDLES

### Protected Methods

Grafport* GetGrafport() const
void SetOutlineAttributes()
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)
virtual bool SetReferences(AssocList *)

## Documentation

> A triple box used for a object class.

`SSDTripleClassBox(ShapeView *v, Grafport *g, int x, int y, int w = TRIPLECLASSBOX_WIDTH, int h = TRIPLECLASSBOX_HEIGHT)`

`SSDTripleClassBox(const SSDTripleClassBox &s)`

`SSDTripleClassBox(const SSDDoubleClassBox &s)`

`SSDTripleClassBox(const SSDSingleClassBox &s)`

`~SSDTripleClassBox()`

`Shape* Clone()`

`int GetClassType() const`

`void SetFont(XFont *ft)`

`void SetTextColor(const string *color)`

`void SetGrafport(Grafport *g)`

`void SetView(ShapeView *v)`

`TextShape* ChooseTextShape(int x, int y)`

`bool HasTextShape(TextShape *t) const`

`void AdjustSize()`

`void UpdateShowStereotype(bool b)`

`void UpdateShowProperties(bool b)`

`void UpdateStereotypeLabelString(const string *s)`
  update string of stereotype text shape and redraw.

`const string* GetStereotypeLabelString()`

`TextShape* GetStereotypeLabel() const`

`void UpdatePropertiesLabelString(const string *s)`
  update string of properties text shape and redraw.

`const string* GetPropertiesLabelString()`

`TextShape* GetPropertiesLabel() const`

`void SetTextShape()`

`bool HasString(const string *s, bool sens, bool sub) const`
  contains s as string (case sensitive, substring).

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

`void SetShowStereotype(bool b)`

`void SetShowProperties(bool b)`

`bool IsShowStereotype() const`

`bool IsShowProperties() const`

`void WriteMembers(OutputFile *f)`

`bool ReadMembers(InputFile *f, double format)`

This class has no child classes.

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