eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'BarChart3DWidget::Label':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: Label (private in BarChart3DWidget

This class is only visible from within BarChart3DWidget.

Inheritance:

   Object
   |
   +--DisplayObject
      |
      +--BarChart3DWidget::Label

Package:
stx:libwidg3
Category:
Views-Graphs
Owner:
BarChart3DWidget
Author:
Martin Walser (martin@vercingetorix)

Description:


One Label for a column or a row.


[instance variables:]
    origin               Like with rectangle, the most top left point.
    corner               Like with rectangle, the most bottom right point.
    label                String to print as label.
    font                 Font used for the label.
    depthVector          Depth for turned labels, used only for column-labels.

[class variables:]


Related information:



Class protocol:

defaults
o  defaultFont
Return a font to draw with.

instance creation
o  computeExtentForTurned: aLabel font: aFont depth: aVector
Compute the extent for a turned label.

o  for: aLabel on: aView at: anIndex
Create and return a new display label.
Use default font.

o  for: aLabel on: aBarChartView at: anIndex font: aFont
Create and return a horizontal display bar label.
This one are used for the description of rows.

o  turnedFor: aLabel on: aBarChartView at: anIndex
Create and return a new display label. The label is turned.
The turn angle is defined by depth vector of the bar chart view.
Use default font.

o  turnedFor: aLabel on: aBarChartView at: anIndex font: aFont
Create and return a turned display bar label.
This ones are used for dispcription of columns.


Instance protocol:

accessing
o  corner
Return the corner.

o  origin
Return the origin of this bar.

o  textHeight
Return the length of the label-text.

o  textLength
Return the length of the label-text.

o  textOrigin
Return the label-text origin.
The origin is the start of the baseline.

o  textVector
Return a vector with length and
direction of the label text.

drawing required
o  drawIn: aDrawable offset: anOffset
Display yourself on a drawable

initialization
o  computeBoundingBox
Return the bounding box of this label.
As a side effect, leave the value in the frame variable.

o  computeMaxBoundingBox
Compute the maximal bounding box.
Used to calculate content extent.
For labels same like compute bounding box = frame.

private accessing
o  depthVector
Return the depth vector.

private instance creation
o  for: aLabel on: aBarChartView at: anIndex font: aFont
Build a normal display bar label.
Private - use only for instance creation.

o  turnedFor: aLabel on: aBarChartView at: anIndex font: aFont
Build a turned display bar label.
Private - Use only for instance creation.



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:48:00 GMT