Note: you will need to include WellData and WellTrack2D in your Module Dependencies list in addition to Viewer2D.
IWellLogWindowFactory wellLogf = IWellLogWindow.factory;IWellLogWindow wellLogWindow = wellLogf.createWindow();In this example, we assume you have already created a well data wellData and well log window wellLogWindow.
IWellLogVisualFactory lf = IWellLogVisual.factory;IWellLogVisual visual =(IWellLogVisual) lf.createVisual(wellLogWindow, wellData, null, false);In this example, we assume you have already created a well log window wellLogWindow.
ITrack track = wellLogWindow.addTrack(ITrack.TrackType.LINEAR);In this example, we assume you have already created a well data wellData and a track track.
ILogCurve logCurve = wellData.getCurve("DEPT");ILogCurveShape logCurveShape = ILogCurveShape.Factory.createLogCurveShape(track, logCurve);track.addTrackShape(logCurveShape);In this example, we assume you have already created a well data wellData and a track track.
IMarker marker = wellData.getMarker("FAULT");IMarkerShape markerShape = IMarkerShape.Factory.createMarkerShape(track, marker);track.addTrackShape(markerShape);