Class Plot3D
- java.lang.Object
-
- com.biglybt.ui.swt.components.graphics.Plot3D
-
- All Implemented Interfaces:
ParameterListener
,Graphic
public class Plot3D extends java.lang.Object implements Graphic, ParameterListener
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.swt.graphics.Image
bufferImage
private org.eclipse.swt.widgets.Canvas
canvas
private org.eclipse.swt.graphics.Color[]
colours
private ValueFormater[]
formatters
private int
graphicsUpdate
private int
internalLoop
private java.lang.String[]
labels
private org.eclipse.swt.graphics.Point
oldSize
protected AEMonitor
this_mon
private java.lang.String
title
private int[][]
values
private int
Z_MAX
-
Constructor Summary
Constructors Constructor Description Plot3D(java.lang.String[] _labels, ValueFormater[] _formatters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
protected void
drawPlot()
org.eclipse.swt.graphics.Color[]
getColours()
void
initialize(org.eclipse.swt.widgets.Canvas _canvas)
void
parameterChanged(java.lang.String parameter)
Called, when a parameter has changed.void
refresh(boolean force)
void
setMaxZ(int m)
void
setTitle(java.lang.String str)
void
update(int[][] _values)
-
-
-
Field Detail
-
Z_MAX
private int Z_MAX
-
canvas
private org.eclipse.swt.widgets.Canvas canvas
-
title
private java.lang.String title
-
labels
private java.lang.String[] labels
-
formatters
private ValueFormater[] formatters
-
internalLoop
private int internalLoop
-
graphicsUpdate
private int graphicsUpdate
-
oldSize
private org.eclipse.swt.graphics.Point oldSize
-
bufferImage
protected org.eclipse.swt.graphics.Image bufferImage
-
this_mon
protected AEMonitor this_mon
-
values
private int[][] values
-
colours
private org.eclipse.swt.graphics.Color[] colours
-
-
Constructor Detail
-
Plot3D
public Plot3D(java.lang.String[] _labels, ValueFormater[] _formatters)
-
-
Method Detail
-
initialize
public void initialize(org.eclipse.swt.widgets.Canvas _canvas)
- Specified by:
initialize
in interfaceGraphic
-
setTitle
public void setTitle(java.lang.String str)
-
getColours
public org.eclipse.swt.graphics.Color[] getColours()
-
drawPlot
protected void drawPlot()
-
setMaxZ
public void setMaxZ(int m)
-
parameterChanged
public void parameterChanged(java.lang.String parameter)
Description copied from interface:ParameterListener
Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.- Specified by:
parameterChanged
in interfaceParameterListener
- Parameters:
parameter
- the name of the parameter that has changed
-
dispose
public void dispose()
-
update
public void update(int[][] _values)
-
-