eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'BarChart3DWidget::Bar':

Home

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

Class: Bar (private in BarChart3DWidget

This class is only visible from within BarChart3DWidget.

Inheritance:

   Object
   |
   +--DisplayObject
      |
      +--BarChart3DWidget::Bar

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

Description:


One 3-dimensional-bar of a bar-chart-view.


[instance variables:]
    color                Color
    origin               Like with rectangle the most top left point 
                         of the maximum bar, not of the real bar.
    corner               Like with rectangle the most bottom right point.
    percentageHeight     The 'value' of the bar, a value inbetwen 0,0 and 1.0
    depthVector          Depth of the bar as vector.

[class variables:]


Related information:



Class protocol:

defaults
o  defaultColorsAt: aNumber
Return a color for a number.
Use three different colors and alternate them for bigger numbers.
Caller gets always a useable bar-color.

o  defaultDepthsVector
Return a vector for the depths.
Holding direction and length of the depths of a bar.

o  defaultExtent
Return the default extent of a display bar.

instance creation
o  for: aValue on: aBarChartView at: aPosition
Build a display bar on a view.


Instance protocol:

accessing
o  corner
Return the corner.

o  origin
Return the origin of this bar.
It is the origin of the maximum bar.

drawing required
o  drawIn: aDrawable offset: anOffset
Display yourself in a drawable.
Draws three sides of three dimensional bar.

initialization
o  computeBoundingBox
Return the bounding box of the drawn real display bar.
You can see this box if you enable some line in the draw method.

o  computeMaxBoundingBox
Return the bounding box of the total potential display bar.
You can see this box if you enable some line in the draw method.

private accessing
o  color
Return the color.
If no color set, use first of defaults.

o  percentageHeight
Return the percentage height of the bar.
Default is to be 100% = 1.0

private instance creation
o  for: aValue on: aBarChartView at: aPosition
Build a display bar.
Private - use only for instance creation.



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 28 Mar 2024 11:48:38 GMT