|
Class: Label (private in BarChart3DWidget
This class is only visible from within
BarChart3DWidget.
Object
|
+--DisplayObject
|
+--BarChart3DWidget::Label
- Package:
- stx:libwidg3
- Category:
- Views-Graphs
- Owner:
- BarChart3DWidget
- Author:
- Martin Walser (martin@vercingetorix)
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:]
defaults
-
defaultFont
-
Return a font to draw with.
instance creation
-
computeExtentForTurned: aLabel font: aFont depth: aVector
-
Compute the extent for a turned label.
-
for: aLabel on: aView at: anIndex
-
Create and return a new display label.
Use default font.
-
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.
-
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.
-
turnedFor: aLabel on: aBarChartView at: anIndex font: aFont
-
Create and return a turned display bar label.
This ones are used for dispcription of columns.
accessing
-
corner
-
Return the corner.
-
origin
-
Return the origin of this bar.
-
textHeight
-
Return the length of the label-text.
-
textLength
-
Return the length of the label-text.
-
textOrigin
-
Return the label-text origin.
The origin is the start of the baseline.
-
textVector
-
Return a vector with length and
direction of the label text.
drawing required
-
drawIn: aDrawable offset: anOffset
-
Display yourself on a drawable
initialization
-
computeBoundingBox
-
Return the bounding box of this label.
As a side effect, leave the value in the frame variable.
-
computeMaxBoundingBox
-
Compute the maximal bounding box.
Used to calculate content extent.
For labels same like compute bounding box = frame.
private accessing
-
depthVector
-
Return the depth vector.
private instance creation
-
for: aLabel on: aBarChartView at: anIndex font: aFont
-
Build a normal display bar label.
Private - use only for instance creation.
-
turnedFor: aLabel on: aBarChartView at: anIndex font: aFont
-
Build a turned display bar label.
Private - Use only for instance creation.
|