Class: TLabelLinePlacement

Declaration: LineLayout.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TLinePlacement

Inherited By:

None.

Purpose:

Derived from TLinePlacement, used to indicate the position of a label on a line.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive unless you are implementing your own version of Line Layout.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Member Function: TLabelLinePlacement::SetLineMinMaxWidths

virtual void SetLineMinMaxWidths (GCoordinate minWidth, GCoordinate maxWidth)

Interface Category:

API.

Purpose:

Sets the line's minimum and maximum widths.

Calling Context:

Call to set the line's minimum and maximum widths.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

This will default to left. The line will be aligned relative to the line (0, 0) origin point.

Member Function: TLabelLinePlacement::operator=

TLabelLinePlacement & operator =(const TLabelLinePlacement &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLabelLinePlacement::operator==

virtual int operator ==(const TLabelLinePlacement &) const

Interface Category:

API.

Purpose:

Equality operator.

Calling Context:

Call to compare two instances of this class.

Parameters:

Return Value:

Returns 1 if the instances are equal, 0 if they are not.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLabelLinePlacement::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLabelLinePlacement::operator>>=

virtual TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLabelLinePlacement::GetLineStartOrigin

virtual void GetLineStartOrigin (const TTextLineLayout & layout, const TGrafMatrix & gr, TGPoint & origin) const

Interface Category:

API.

Purpose:

Returns the origin of the start of the line.

Calling Context:

Call to access this information.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLabelLinePlacement::GetJustificationInfo

virtual void GetJustificationInfo (TTextLineLayoutJustificationInfo & justifyParms) const

Interface Category:

API.

Purpose:

Returns information on how to justify the text.

Calling Context:

Call to access this information.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLabelLinePlacement::GetLineMinMaxWidths

virtual void GetLineMinMaxWidths (GCoordinate & minWidth, GCoordinate & maxWidth) const

Interface Category:

API.

Purpose:

Returns the line's minimum and maximum widths.

Calling Context:

Call to access this information.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLabelLinePlacement::GetOrientation

virtual void GetOrientation (TSingleLineOrientation &) const

Interface Category:

API.

Purpose:

Returns the orientation of the line.

Calling Context:

Call to access this information.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLabelLinePlacement::SetOrientation

virtual void SetOrientation (const TSingleLineOrientation &)

Interface Category:

API.

Purpose:

Sets the orientation of the line.

Calling Context:

Call to set the orientation of the line.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLabelLinePlacement::~TLabelLinePlacement

virtual ~ TLabelLinePlacement ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLabelLinePlacement::TLabelLinePlacement

  1. TLabelLinePlacement ()
  2. TLabelLinePlacement (const TSingleLineOrientation &)
  3. TLabelLinePlacement (GCoordinate minWidth, GCoordinate maxWidth, const TSingleLineOrientation &)
  4. TLabelLinePlacement (const TLabelLinePlacement &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Creates a TLabelLinePlacement instance with a specified line orientation.
  3. Creates a TLabelLinePlacement instance with a specified line orientation, minimum width, and maximum width.
  4. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and to instantiate this class.
  2. Call directly.
  3. Call directly.
  4. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.