eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'BarChart3DWidget':

Home

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

Class: BarChart3DWidget


Inheritance:

   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)

Description:


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:]


Related information:



Class protocol:

queries
o  isVisualStartable
Be startable from Browser!

samples
o  sampleLabelsColumns
Return a collection with labels for the columns of a bar matrix.
Attention - Corresponding in size to matrix sample.

o  sampleLabelsRows
Return a collection with labels for the rows of a bar matrix.
Attention - Corresponding in size to matrix sample.

o  sampleMatrix
Return a sample matrix useable
as a model for bar-chart-view.

startup
o  open
Open up with an example.


Instance protocol:

accessing
o  barExtent
Return the extent for one bar.
It is the two dimensional extent.

o  columnGap
Return the gap between two columns of bars.

o  depthVector
Return the depthsVector for all bars and column labels.

o  labelsForColumns: aCollectionOfLabels
Set labels for the columns.
The size of of the collection
has to be the number of columns.

o  labelsForRows: aCollectionOfLabels
Set labels for the rows.
The size of the collection
has to be the number of rows.

o  matrix
Return the matrix we are displaying.

o  offset

o  rowGapFactor
Return a factor to build gap inbetween the rows.
The gap is build from the depths vector.

accessing-mvc
o  model: aModel
A new model gets set to the view.
Update the view with this model.

change & update
o  update: something with: aParameter from: changedObject
Update on model changes.

private building
o  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.

o  buildColumnLabelsFor: aCollectionOfLabels
Build display objects for a collection of labels
and add them to the content of this view.

o  buildRowLabelsFor: aCollectionOfLabels
Build labels from a collection of strings
and add them to the content of this view.

queries
o  heightOfContents
Need to have reasonable scrollers.
Calculates the needed size from merging all bars.
If there is no content my size is zero.

o  widthOfContents
Need to have reasonable scrollers.
Calculates the needed size from merging all bars.
If there is no content my size is zero.


Private classes:

    Bar
    Label

Examples:


From sample data:
self open.


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 06:25:44 GMT