|
Class: BarChart3DWidget
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--ObjectView
|
+--BarChart3DWidget
- Package:
- stx:libwidg3
- Category:
- Views-Misc
- Version:
- rev:
1.10
date: 2017/01/03 09:46:04
- user: stefan
- file: BarChart3DWidget.st directory: libwidg3
- module: stx stc-classLibrary: libwidg3
- Author:
- Martin Walser (martin@vercingetorix)
Display a matrix of values as bars in 3D.
The values have to be between 0.0 and 1.0.
The Matrix is given as collection of rows.
Additionally a labeling of rows and columns
is possible.
[instance variables:]
[class variables:]
queries
-
isVisualStartable
-
Be startable from Browser!
samples
-
sampleLabelsColumns
-
Return a collection with labels for the columns of a bar matrix.
Attention - Corresponding in size to matrix sample.
-
sampleLabelsRows
-
Return a collection with labels for the rows of a bar matrix.
Attention - Corresponding in size to matrix sample.
-
sampleMatrix
-
Return a sample matrix useable
as a model for bar-chart-view.
startup
-
open
-
Open up with an example.
accessing
-
barExtent
-
Return the extent for one bar.
It is the two dimensional extent.
-
columnGap
-
Return the gap between two columns of bars.
-
depthVector
-
Return the depthsVector for all bars and column labels.
-
labelsForColumns: aCollectionOfLabels
-
Set labels for the columns.
The size of of the collection
has to be the number of columns.
-
labelsForRows: aCollectionOfLabels
-
Set labels for the rows.
The size of the collection
has to be the number of rows.
-
matrix
-
Return the matrix we are displaying.
-
offset
-
-
rowGapFactor
-
Return a factor to build gap inbetween the rows.
The gap is build from the depths vector.
accessing-mvc
-
model: aModel
-
A new model gets set to the view.
Update the view with this model.
change & update
-
update: something with: aParameter from: changedObject
-
Update on model changes.
private building
-
buildBars
-
Build bars for the values in the matrix.
A matrix is a collection of collections
with percentage values(0.0 - 1.0) in it.
-
buildColumnLabelsFor: aCollectionOfLabels
-
Build display objects for a collection of labels
and add them to the content of this view.
-
buildRowLabelsFor: aCollectionOfLabels
-
Build labels from a collection of strings
and add them to the content of this view.
queries
-
heightOfContents
-
Need to have reasonable scrollers.
Calculates the needed size from merging all bars.
If there is no content my size is zero.
-
widthOfContents
-
Need to have reasonable scrollers.
Calculates the needed size from merging all bars.
If there is no content my size is zero.
Bar
Label
From sample data:
|