eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'GraphColumnView':

Home

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

Class: GraphColumnView


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--GraphColumnView
                  |
                  +--GraphColumnView2D

Package:
stx:libwidg2
Category:
Views-Graphs
Version:
rev: 1.11 date: 2023/06/26 17:50:43
user: cg
file: GraphColumnView.st directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Claus Atzkern

Description:


The class describes the common interface supported by the 2D or 3D GraphColumnView.
This Viewclasses provide a lot of functionality for showing and manipulating graphs
described through to a GraphColumn description. Each change in a graph description
immediately take affect in the garph view.


Related information:

    GraphColumn
    GraphColumnView2D
    GraphColumnView3D

Class protocol:

defaults
o  updateStyleCache
extract values from the styleSheet and cache them in class variables

Usage example(s):

 self updateStyleCache

menu
o  defaultMenu
redefined by subclass: should return the default middle button menu

plugIn spec
o  aspectSelectors
Return a description of exported aspects;
these can be connected to aspects of an embedding application
(if this app is embedded in a subCanvas).


Instance protocol:

accessing
o  columns
returns the list of column descriptions

o  columns: aList
set the list of columns descriptions

o  graph: aSingleGraph

o  graphOriginX
returns the logical index X of the first visible row; this number is used for
accessing Y values from the GraphColumn description. On default, the value
is set to 1.

o  graphOriginX: aNumber
set the logical index X of the first visible row; this number is used for
accessing Y values from the GraphColumn description. On default, the value
is set to 1.
Changing the number, a scroll left or right is triggered.

o  referenceSelector
returns the selector how to access the X value of an instance into
the reference list. If the selector is nil (default), the entry is
assumed to be the X value.

o  referenceSelector: aSelector
set the selector how to access the X value of an instance into the
reference list. If the selector is nil (default), the entry is
assumed to be the X value.

o  references
returns list of references

o  references: aListOfReferences
change the list of references

o  scrollUpdatesOriginX
returns true, if the graphOriginX automatically is updated by
any scroll action. The default is set to false.

o  scrollUpdatesOriginX: aBool
set to true if the graphOriginX automatically should be updated by any
scroll action. Otherwise a scroll has no influnce to the current
graphOriginX.
The default is set to false.

o  showDefaultMenu
returns true, if the middleButton menu is set to the default menu
provided by the graph.

o  showDefaultMenu: aBool
enable or disable the default menu provided by the graph

accessing dimensions
o  windowSize
get the number of horizontal steps ( X )

o  windowSize: aValue
set the number of horizontal steps ( X )

o  zoomY
returns current y-zoom factor

o  zoomY: aValue
set the current y-zoom factor; if the argument is nil,
the y-zoom is set to 1.

accessing look
o  backgroundColor
returns the current background color of the graph

o  backgroundColor: aColor
set the background color of the graph

o  foregroundColor
returns the default foreground color used to draw graphs which
has no foreground color specified.

o  foregroundColor: aColor
set the default foreground color used to draw graphs which
has no foreground color specified.

o  gridColor
returns the foreground color of the grid

o  gridColor: aColor
set the foreground color of the grid

o  referenceColor
returns the foreground color used to draw the references

o  referenceColor: aColor
set the foreground color used to draw the references

o  showGrid
returns true if the grid is enabled

o  showGrid: aBool
set the visibility state of the grid

o  showReferences
returns the visibility state of the references

o  showReferences: aBool
set the visibility state of the references

accessing mvc
o  graphOriginXHolder
returns the valueHolder, which keeps the current graphOriginX (see: #graphOriginX:)

o  graphOriginXHolder: aHolder
set the valueHolder, which keeps the current graphOriginX (see: #graphOriginX:)

o  listHolder
returns the valueHolder, which keeps the list of column descriptions (see: #column:)

o  listHolder: aHolder
set the valueHolder, which keeps the list of column descriptions (see: #column:)

o  model: aModel
set the valueHolder which holds the selection and maybe the list of columns

o  referenceHolder
returns the valueHolder, which keeps the list of references (see: #references:)

o  referenceHolder: aHolder
set the valueHolder, which keeps the list of references (see: #references:)

o  windowSizeHolder
returns the valueHolder, which keeps the windowSize (see: #windowSize:)

o  windowSizeHolder: aHolder
set the valueHolder, which keeps the windowSize (see: #windowSize:)

o  zoomYHolder
returns the valueHolder, which keeps the zoom Y factor (see: #zoomY:)

o  zoomYHolder: aHolder
set the valueHolder, which keeps the zoom Y factor (see: #zoomY:)

add & remove columns
o  add: aColumn
insert a column at end; returns the inserted column

o  add: aColumn afterIndex: anIndex
add a new column after an index; returns the inserted column

o  add: aColumn beforeIndex: anIndex
add a column before an index; returns the inserted column

o  addAll: aCollection beforeIndex: anIndex
add a collection of columns before an index

o  addFirst: aColumn
insert a column at start; returns the inserted column

o  removeAll
remove all columns

o  removeFirst
remove first column; returns the removed column

o  removeIndex: anIndex
remove column at an index; returns the removed column

o  removeLast
remove last column; the removed column is returned

add & remove references
o  referenceAdd: aReference
add a reference to end of list

o  referenceAdd: aReference beforeIndex: anIndex
add a reference before an index

o  referenceAddAll: aCollection beforeIndex: anIndex
add a collection of references before an index

o  referenceRemove: aReference
remove a reference

o  referenceRemoveAll
remove all references

o  referenceRemoveIndex: anIndex
remove the reference at an index

change & update
o  update: what with: aPara from: chgObj
catch and handle a change notification of any object

conversion
o  floatFrom: aValue onError: aBlock
converts something to a float, on error the result of the block is returned

o  unsignedIntegerFrom: aValue onError: aBlock
converts something to an unsigned integer, on error the result of the block is returned

initialization
o  create
set color on device

o  destroy
remove dependencies

o  initialize
setup default values

menu & submenus
o  defaultMenu
returns the default middle button menu provided by the graph

o  doZoomY: aValue
triggered by the default menu to change the current zoom Y factor;
on change, the corresponding model (zoomYHolder) is updated.

o  subMenuZoomY
returns the submenu to configure the zoom Y factor

protocol
o  doInvalidateGraph
called to set the graph to invalidate

o  doRecomputeGraph
called to recompute drawable objects and to set the
graph to invalidate

o  updateColumns: what with: oldValue from: aColumn
called if the list of columns changed
#size the size of the columns
#color: color changed
or a specific column:( aColumn notNil )
#insert: insert a new column
#remove: remove a column

or a specific attribute derived from the
changed column.

o  updateGrid: what
called if the grid changed
#color the color of the grid changed
#state the visibility state of the grid changed

o  updateOriginX: aDeltaX
graph origin X changed; scroll n steps left (aDeltaX < 0) or right (aDeltaX > 0)

o  updateReferences: what atRelX: aRelX
called when the list of references changed.
#remove: the reference at the relative X index is removed
#insert: a reference is inserted at the relative X index
#size the list of references changed
#state visibility state changed
#color the foreground color changed

queries
o  listOfVisibleColumns
returns a list of visible lines (never nil)

o  listOfVisibleRefIndices
returns a list of visible reference line indices or an empty
collection (nothing defined or disabled).

o  visibleReference: aReference do: aOneArgBlock
evaluate the block with the relative visible X value; if the reference line
is not visible, nothing will happen

scrolling
o  halfWindowSizeLeft
scroll left half window size

o  halfWindowSizeRight
scroll right half window size

o  scroll: nIndices
scroll left or right n x-steps. a positive value scrolls to the right
a negative value to the left.

o  scrollLeft: nIndices
scroll n indices left

o  scrollRight: nIndices
scroll n indices right

o  windowSizeLeft
scroll left window size

o  windowSizeRight
scroll right window size



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