public class SwtCurveView extends GralCurveView.GraphicImplAccess
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.graphics.Color |
colorBack |
protected org.eclipse.swt.graphics.Color |
colorCursor |
protected org.eclipse.swt.graphics.Color |
gridColor |
protected org.eclipse.swt.graphics.Color |
gridColorStrong |
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
|
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.
|
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
protected final org.eclipse.swt.graphics.Color colorBack
protected final org.eclipse.swt.graphics.Color colorCursor
protected org.eclipse.swt.graphics.Color gridColor
protected org.eclipse.swt.graphics.Color gridColorStrong
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.
public SwtCurveView(GralCurveView widgg, SwtMng mng)
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.
public GralRectangle getPixelPositionSize()
public java.lang.Object getWidgetImplementation()
GralWidgImpl_ifc
Component
.
GralWidget._wdgImpl
class
which should contain the references to that implementation widgets.public boolean remove()
org.vishia.util.Removeable
public void removeWidgetImplementation()
GralWidgImpl_ifc
public void repaintGthread()
GralWidgImpl_ifc
#repaintRequ
public void setBoundsPixel(int x, int y, int dx, int dy)
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.