public class SwtCurveView extends GralCurveView.GraphicImplAccess
Modifier and Type | Class and Description |
---|---|
private class |
SwtCurveView.CurveView |
private static class |
SwtCurveView.TestHelp
This class is only used to store values to inspect.
|
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.graphics.Color |
colorBack |
protected org.eclipse.swt.graphics.Color |
colorCursor |
private org.eclipse.swt.graphics.Image |
cursorStore1 |
private org.eclipse.swt.graphics.Image |
cursorStore2 |
private SwtCurveView.CurveView |
curveSwt |
protected org.eclipse.swt.graphics.Color |
gridColor |
protected org.eclipse.swt.graphics.Color |
gridColorStrong |
(package private) SwtGralMouseListener.MouseListenerGralAction |
mouseListenerCurve |
(package private) SwtCurveView.TestHelp |
testHelp |
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, XXXnrofValuesShow
chgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgEditable, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, pixBounds, wdgimpl
Constructor and Description |
---|
SwtCurveView(GralCurveView widgg,
SwtMng mng) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawBackground(org.eclipse.swt.graphics.GC g,
org.eclipse.swt.graphics.Point size,
int xView,
int yView,
int dxView,
int dyView)
This routine overrides
|
private void |
drawRightOrAll(org.eclipse.swt.graphics.GC g,
org.eclipse.swt.graphics.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(org.eclipse.swt.graphics.GC g,
org.eclipse.swt.graphics.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(org.eclipse.swt.graphics.GC g,
org.eclipse.swt.graphics.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.
|
boolean |
remove()
Removes all referenced data, close all opened resources, removes all graphical widgets etc.
|
void |
removeWidgetImplementation()
Removes the graphical widget in the graphic.
|
void |
repaintGthread()
This method should be implemented in all Widget implementations of the adapter for the
underlying graphic system.
|
void |
setBoundsPixel(int x,
int y,
int dx,
int dy) |
boolean |
setFocusGThread()
Sets the focus to the widget.
|
void |
setVisibleGThread(boolean bVisible)
Sets the implementation widget(s) visible state.
|
(package private) void |
stop() |
cursorUnzoom, getIxDataFromPixelRight, mouseSelectCursur, moveCursor, prepareIndicesDataForDrawing, selectTrack, setCursors, setPaintAllCmd, stopAndViewToPast, viewToPresentOrGoIrRefresh, zoomBetweenCursors, zoomToPast, zoomToPresent
acknChanged, actionShow, dyda, getActionChange, getChanged, gralWidgetFromImplData, setDragEnable, setDropEnable, setFocused, setTextChanged, setVisibleState, XXXfocusGained
public 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.CurveView curveSwt
private final org.eclipse.swt.graphics.Image cursorStore1
private final org.eclipse.swt.graphics.Image cursorStore2
protected org.eclipse.swt.graphics.Color gridColor
protected org.eclipse.swt.graphics.Color gridColorStrong
protected final org.eclipse.swt.graphics.Color colorCursor
protected final org.eclipse.swt.graphics.Color colorBack
SwtCurveView.TestHelp testHelp
final SwtGralMouseListener.MouseListenerGralAction mouseListenerCurve
public SwtCurveView(GralCurveView widgg, SwtMng mng)
public void repaintGthread()
GralWidgImpl_ifc
#repaintRequ
private void drawTrack(org.eclipse.swt.graphics.GC g, org.eclipse.swt.graphics.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(org.eclipse.swt.graphics.GC g, org.eclipse.swt.graphics.Point size, int xView, int dxView, int yView, int dyView, int xViewPart, int timeDiff)
private void drawRightOrAll(org.eclipse.swt.graphics.GC g, org.eclipse.swt.graphics.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(org.eclipse.swt.graphics.GC g, org.eclipse.swt.graphics.Point size, int xView, int yView, int dxView, int dyView)
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()
GralWidgImpl_ifc
GralMng_ifc#setFocus(GralWidget)
.public void setVisibleGThread(boolean bVisible)
GralWidgImpl_ifc
GralWidget.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()
GralWidgImpl_ifc
public java.lang.Object getWidgetImplementation()
GralWidgImpl_ifc
Component
.
GralWidget._wdgImpl
class
which should contain the references to that implementation widgets.public void setBoundsPixel(int x, int y, int dx, int dy)
public GralRectangle getPixelPositionSize()
public boolean remove()
org.vishia.util.Removeable