SCViewer/plugins/com.minres.scviewer.databas.../src/com/minres/scviewer/database/ui/IWaveformView.java

117 lines
3.4 KiB
Java
Raw Normal View History

/*******************************************************************************
* Copyright (c) 2015 MINRES Technologies GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* MINRES Technologies GmbH - initial API and implementation
*******************************************************************************/
2015-11-03 22:29:42 +01:00
package com.minres.scviewer.database.ui;
import java.beans.PropertyChangeListener;
import java.util.HashMap;
2015-11-03 22:29:42 +01:00
import java.util.List;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.swt.events.DisposeListener;
2020-03-21 06:28:28 +01:00
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.RGB;
2015-11-03 22:29:42 +01:00
import org.eclipse.swt.widgets.Control;
import com.minres.scviewer.database.IWaveform;
import com.minres.scviewer.database.RelationType;
2015-11-03 22:29:42 +01:00
2020-07-11 19:36:28 +02:00
public interface IWaveformView extends PropertyChangeListener, ISelectionProvider{
2015-11-03 22:29:42 +01:00
String CURSOR_PROPERTY = "cursor_time";
2015-11-03 22:29:42 +01:00
String MARKER_PROPERTY = "marker_time";
public static final RelationType NEXT_PREV_IN_STREAM = RelationType.create("Prev/Next in stream");
2015-11-03 22:29:42 +01:00
public void addSelectionChangedListener(ISelectionChangedListener listener);
2015-11-03 22:29:42 +01:00
public void removeSelectionChangedListener(ISelectionChangedListener listener);
public void update();
2015-11-03 22:29:42 +01:00
public Control getControl();
2015-11-03 22:29:42 +01:00
public Control getNameControl();
2015-11-03 22:29:42 +01:00
public Control getValueControl();
2015-11-03 22:29:42 +01:00
public Control getWaveformControl();
2015-11-03 22:29:42 +01:00
public ISelection getSelection();
2015-11-03 22:29:42 +01:00
public void setSelection(ISelection selection);
2015-11-03 22:29:42 +01:00
2020-07-15 21:39:30 +02:00
public void setSelection(ISelection selection, boolean showIfNeeded);
public void addToSelection(ISelection selection, boolean showIfNeeded);
2015-11-03 22:29:42 +01:00
public void moveSelection(GotoDirection direction);
2015-11-03 22:29:42 +01:00
public void moveSelection(GotoDirection direction, RelationType relationType);
public void moveCursor(GotoDirection direction);
2015-11-03 22:29:42 +01:00
public List<TrackEntry> getStreamList();
2015-11-03 22:29:42 +01:00
public TrackEntry getEntryForStream(IWaveform source);
2020-03-21 06:28:28 +01:00
public List<Object> getElementsAt(Point pt);
public void moveSelectedTrack(int i);
public void setHighliteRelation(RelationType relationType);
2015-11-03 22:29:42 +01:00
public long getMaxTime();
2015-11-03 22:29:42 +01:00
public void setMaxTime(long maxTime);
2015-11-03 22:29:42 +01:00
public void setZoomLevel(int scale);
2015-11-03 22:29:42 +01:00
public int getZoomLevel();
2015-11-03 22:29:42 +01:00
public void setCursorTime(long time);
2015-11-03 22:29:42 +01:00
public void setMarkerTime(long time, int index);
2015-11-03 22:29:42 +01:00
public long getCursorTime();
2015-11-03 22:29:42 +01:00
public int getSelectedMarkerId();
2015-11-03 22:29:42 +01:00
public long getMarkerTime(int index);
2015-11-03 22:29:42 +01:00
public void addPropertyChangeListener(PropertyChangeListener listener);
2015-11-03 22:29:42 +01:00
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener);
2015-11-03 22:29:42 +01:00
public void removePropertyChangeListener(PropertyChangeListener listener);
2015-11-03 22:29:42 +01:00
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener);
2015-11-03 22:29:42 +01:00
public String getScaledTime(long time);
2015-11-03 22:29:42 +01:00
public String[] getZoomLevels();
2015-11-03 22:29:42 +01:00
public List<ICursor> getCursorList();
public void setColors(HashMap<WaveformColors, RGB> colourMap);
public long getBaselineTime();
public void setBaselineTime(Long scale);
public void scrollHorizontal(int percent);
public void addDisposeListener( DisposeListener listener );
2020-07-15 21:39:30 +02:00
public void deleteSelectedTracks();
2015-11-03 22:29:42 +01:00
}