Skip to content

Commit

Permalink
using MapPart instead of MapEditor (#581)
Browse files Browse the repository at this point in the history
Change-Id: I020c68b3d130fec189d9e07e024a5da7bc4932b7
Signed-off-by: Frank Gasdorf <[email protected]>
  • Loading branch information
fgdrf authored Nov 1, 2021
1 parent 98cfcdd commit 27ae9df
Showing 1 changed file with 114 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,157 +6,183 @@
import java.awt.Dimension;
import java.awt.image.BufferedImage;

import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.widgets.Control;
import org.locationtech.udig.project.internal.render.RenderManager;
import org.locationtech.udig.project.render.displayAdapter.IMapDisplayListener;
import org.locationtech.udig.project.ui.commands.IDrawCommand;
import org.locationtech.udig.project.ui.internal.MapEditor;
import org.locationtech.udig.project.ui.internal.MapPart;
import org.locationtech.udig.project.ui.render.displayAdapter.MapMouseListener;
import org.locationtech.udig.project.ui.render.displayAdapter.MapMouseMotionListener;
import org.locationtech.udig.project.ui.render.displayAdapter.MapMouseWheelListener;
import org.locationtech.udig.project.ui.render.displayAdapter.ViewportPane;
import org.locationtech.udig.project.ui.render.glass.GlassPane;

import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.widgets.Control;

public class TestViewportPane implements ViewportPane {

private Dimension displaySize;
private Dimension displaySize;

public TestViewportPane() {
super();
}
public TestViewportPane() {
super();
}

/**
* @param displaySize
*/
public TestViewportPane(Dimension displaySize) {
super();
this.displaySize = displaySize;
}
/**
* @param displaySize
*/
public TestViewportPane(Dimension displaySize) {
super();
this.displaySize = displaySize;
}

public void addDrawCommand(IDrawCommand command) {
@Override
public void addDrawCommand(IDrawCommand command) {

}
}

public void addMouseListener(MapMouseListener l) {
@Override
public void addMouseListener(MapMouseListener l) {

}
}

public void addMouseMotionListener(MapMouseMotionListener l) {
@Override
public void addMouseMotionListener(MapMouseMotionListener l) {

}
}

public void addMouseWheelListener(MapMouseWheelListener l) {
@Override
public void addMouseWheelListener(MapMouseWheelListener l) {

}
}

public void addPaneListener(IMapDisplayListener listener) {
@Override
public void addPaneListener(IMapDisplayListener listener) {

}
}

public void dispose() {
@Override
public void dispose() {

}
}

public void enableDrawCommands(boolean enable) {
@Override
public void enableDrawCommands(boolean enable) {

}
}

public Control getControl() {
return null;
}
@Override
public Control getControl() {
return null;
}

public MapEditor getMapEditor() {
return null;
}
@Override
public MapPart getMapEditor() {

This comment has been minimized.

Copy link
@sschulz92

sschulz92 Nov 1, 2021

Contributor

Renaming is done later on? getMapEditor --> getMapPart?

return null;
}

public BufferedImage image(int w, int h) {
return null;
}
@Override
public BufferedImage image(int w, int h) {
return null;
}

public boolean isDisposed() {
return false;
}
@Override
public boolean isDisposed() {
return false;
}

public boolean isVisible() {
return false;
}
@Override
public boolean isVisible() {
return false;
}

public void removeMouseListener(MapMouseListener l) {
@Override
public void removeMouseListener(MapMouseListener l) {

}
}

public void removeMouseMotionListener(MapMouseMotionListener l) {
@Override
public void removeMouseMotionListener(MapMouseMotionListener l) {

}
}

public void removeMouseWheelListener(MapMouseWheelListener l) {
@Override
public void removeMouseWheelListener(MapMouseWheelListener l) {

}
}

public void removePaneListener(IMapDisplayListener listener) {
@Override
public void removePaneListener(IMapDisplayListener listener) {

}
}

public void renderDone() {
@Override
public void renderDone() {

}
}

public void renderStarting() {
@Override
public void renderStarting() {

}
}

public void renderUpdate() {
@Override
public void renderUpdate() {

}
}

public void repaint() {
@Override
public void repaint() {

}
}

public void repaint(int x, int y, int width, int height) {
@Override
public void repaint(int x, int y, int width, int height) {

}
}

public void setCursor(Cursor cursor) {
@Override
public void setCursor(Cursor cursor) {

}
}

public void setRenderManager(RenderManager manager) {
@Override
public void setRenderManager(RenderManager manager) {

}
}

public int getDPI() {
return 0;
}
@Override
public int getDPI() {
return 0;
}

public Dimension getDisplaySize() {
@Override
public Dimension getDisplaySize() {

return displaySize;
}
return displaySize;
}

public int getHeight() {
return displaySize.height;
}
@Override
public int getHeight() {
return displaySize.height;
}

public int getWidth() {
return displaySize.width;
}
@Override
public int getWidth() {
return displaySize.width;
}

@Override
public void update() {
@Override
public void update() {

}
}

@Override
public GlassPane getGlass() {
return null;
}
@Override
public GlassPane getGlass() {
return null;
}

@Override
public void setGlass(GlassPane glass) {
@Override
public void setGlass(GlassPane glass) {

}
}

}

0 comments on commit 27ae9df

Please sign in to comment.