public class SwtCurveView extends GralCurveView.GraphicImplAccess
| Modifier and Type | Class and Description |
|---|---|
private class |
SwtCurveView.CurveViewSwtWidget |
private static class |
SwtCurveView.TestHelp
This class is only used to store values to inspect.
|
| Modifier and Type | Field and Description |
|---|---|
protected Color |
colorBack |
protected Color |
colorCursor |
private Image |
cursorStore1 |
private Image |
cursorStore2 |
private SwtCurveView.CurveViewSwtWidget |
curveSwt |
protected Color |
gridColor |
protected Color |
gridColorStrong |
(package private) SwtGralMouseListener.MouseListenerGralAction |
mouseListenerCurve |
(package private) SwtCurveView.TestHelp |
testHelp |
(package private) long |
timeRepaintCall |
(package private) long |
timeRepaintLast |
static int |
version
Version, history and license.
|
bMouseDownCursor1, bMouseDownCursor2, bPaintAllCmd, bRedrawAll, cmdSetCursor, colorBackGral, focusChanged, gridColorGral, gridColorGralStrong, gridDistanceX, gridDistanceY, gridStrongPeriodX, gridStrongPeriodY, ixDataCursor1, ixDataCursor2, ixDataDraw, ixDataShown, ixDataShowRight, lastPositionX, nrofDataShift, nrofDataShiftFracPart, nrofPixel4data, nrofValuesLessViewPart, pixelOrg, redrawBecauseNewData, timeCaryOverNewValue, trackSelected, widgg, xpCursor1, xpCursor1New, xpCursor2, xpCursor2New, xViewLastF, XXXnrofValuesShowbRedrawOnlyDynamics, chgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgCurrTab, chgEditable, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, mngImpl, pixBounds, wdgimpl| Constructor and Description |
|---|
SwtCurveView(GralCurveView widgg,
SwtMng mng) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawBackground(GC g,
Point size,
int xView,
int yView,
int dxView,
int dyView)
This routine is called from overridden
SwtCurveView.CurveViewSwtWidget.drawBackground(GC, int, int, int, int) |
private void |
drawRightOrAll(GC g,
Point size,
int xView,
int dxView,
int yView,
int dyView,
int ixDataRight,
int xViewPart,
int timeDiff,
int xp0,
boolean bPaintAll)
Draws the curves.
|
private int |
drawShiftAreaToLeft(GC g,
Point size,
int xView,
int dxView,
int yView,
int dyView,
int xViewPart,
int timeDiff)
Shifts the left draw area to left because only a right part of the curve should be drawn.
|
private void |
drawTrack(GC g,
Point size,
GralCurveView.Track track,
int iTrack,
int ixixDataLast)
Draws one track using the
ixDataShown indices to the data. |
GralRectangle |
getPixelPositionSize() |
java.lang.Object |
getWidgetImplementation()
Returns the implementation class of the widget.
|
void |
redrawGthread()
This method should be implemented in all Widget implementations of the adapter for the
underlying graphic system.
|
boolean |
remove() |
void |
removeWidgetImplementation()
Removes the graphical widget in the graphic.
|
void |
setBoundsPixel(int x,
int y,
int dx,
int dy)
Set the bounds of the implementation widget.
|
boolean |
setFocusGThread()
Sets the focus to the widget.
|
void |
setVisibleGThread(boolean bVisible)
Sets the implementation widget(s) visible state.
|
(package private) void |
stop() |
void |
updateValuesForAction()
This operation should be called before any action is invoked in the user space.
|
cursorUnzoom, getIxDataFromPixelRight, mouseSelectCursur, moveCursor, prepareIndicesDataForDrawing, selectTrack, setCursors, setPaintAllCmd, stopAndViewToPast, viewToPresentOrGoIrRefresh, zoomBetweenCursors, zoomToPast, zoomToPresentacknChanged, actionShow, dyda, getActionChange, getChanged, gralMng, gralWidgetFromImplData, redrawOnlyDynamics, setDragEnable, setDropEnable, setPosBounds, setTextChanged, setVisibleState, XXXfocusGainedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetPosBoundspublic static final int version
GralCurveView.GraphicImplAccess adequate to the new concept:
An implementing widget is derived from its derived class of GralWidget.ImplAccess. Therefore only that base class implements the GralWidgetImpl_ifc.
CommonCurve#bFreeze: freeze as common property of more as one GralCurveView. Constructor argument.
SwtGralMouseListener and
implementation of the special functionality in the superclass GralCurveView.GralCurveViewMouseAction.
GralCurveView
GralCfgBuilder. The old GuiDialogZbnfControlled.class
was not use nevermore. But the CurveView was not adapted for that.
private final SwtCurveView.CurveViewSwtWidget curveSwt
private final Image cursorStore1
private final Image cursorStore2
protected Color gridColor
protected Color gridColorStrong
protected final Color colorCursor
protected final Color colorBack
long timeRepaintLast
long timeRepaintCall
SwtCurveView.TestHelp testHelp
final SwtGralMouseListener.MouseListenerGralAction mouseListenerCurve
public SwtCurveView(GralCurveView widgg, SwtMng mng)
public void redrawGthread()
GralWidgImplAccess_ifc#repaintRequprivate void drawTrack(GC g,
Point size,
GralCurveView.Track track,
int iTrack,
int ixixDataLast)
ixDataShown indices to the data.g - graphic context from SWTsize - of the panel in pixeltrack - dataiTrack - Index of track, only used for debugging or test outputs.ixixDataLast - The end index in ixDataShown for this presentation.private int drawShiftAreaToLeft(GC g,
Point size,
int xView,
int dxView,
int yView,
int dyView,
int xViewPart,
int timeDiff)
private void drawRightOrAll(GC g,
Point size,
int xView,
int dxView,
int yView,
int dyView,
int ixDataRight,
int xViewPart,
int timeDiff,
int xp0,
boolean bPaintAll)
g - size - xView - dxView - yView - dyView - ixDataRight - xViewPart - timeDiff - xp0 - protected void drawBackground(GC g,
Point size,
int xView,
int yView,
int dxView,
int dyView)
SwtCurveView.CurveViewSwtWidget.drawBackground(GC, int, int, int, int)It is called in this class in {@link #paintListener} in the {@link PaintListener#paintControl(PaintEvent)} method.
It draws the whole content.
Because of saving calculation time there will be drawn only a small peace on right side of the area
with the new data normally. The rest inclusive grid lines, curves, text is moved to left. But if the whole
window should be refreshed, the whole widget is drawn newly.void stop()
public boolean setFocusGThread()
GralWidgImplAccess_ifcGralMng_ifc#setFocus(GralWidget).public void setVisibleGThread(boolean bVisible)
GralWidgImplAccess_ifcGralWidgetBase.bVisibleState too. Therewith it is able to quest GralWidget.isVisible() in any thread.bVisible - true then the widget should be visible, false it is set to invisible.public void removeWidgetImplementation()
GralWidgImplAccess_ifcpublic java.lang.Object getWidgetImplementation()
GralWidgImplAccess_ifcComponent.
GralWidget._wdgImpl class
which should contain the references to that implementation widgets.getWidgetImplementation in interface GralWidgImplAccess_ifcgetWidgetImplementation in class GralWidget.ImplAccesspublic void setBoundsPixel(int x,
int y,
int dx,
int dy)
GralWidgImplAccess_ifcpublic GralRectangle getPixelPositionSize()
public boolean remove()
public void updateValuesForAction()
GralWidgImplAccess_ifc