|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
org.geotools.gui.swing.ZoomPane
org.geotools.gui.swing.image.ImagePane
com.neatech.climbplan.geographicinformationgathering.MapPane
public class MapPane
Nested Class Summary | |
---|---|
static class |
MapPane.Path
|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private List<GridPoint> |
checkPoints
|
private List<WorldPoint> |
checkPointsPaint
|
private MapOperations |
mapOperations
|
private List<MapPane.Path> |
paths
|
private static long |
serialVersionUID
|
Fields inherited from class org.geotools.gui.swing.ZoomPane |
---|
DEFAULT_ZOOM, RESET, ROTATE, SCALE_X, SCALE_Y, TRANSLATE_X, TRANSLATE_Y, UNIFORM_SCALE, zoom |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MapPane()
|
Method Summary | |
---|---|
void |
addPath(MapPane.Path path)
|
void |
addToPath(int x,
int y)
|
private GridPoint |
convertToGridCoordinate(WorldPoint wp)
|
private GridPoint |
convertToMapPaneCoordinate(GridPoint gp)
|
WorldPoint |
convertToWorldCoordinate(int mouseX,
int mouseY)
|
void |
delete()
|
void |
deleteCheckPoints()
|
void |
deletePaths()
|
List<GridPoint> |
getCheckPoints()
|
double |
getScaleX()
|
double |
getScaleY()
|
void |
paint(Graphics g)
|
void |
removePath(int id)
|
void |
setRasterMap(MapOperations rasterMap)
|
Methods inherited from class org.geotools.gui.swing.image.ImagePane |
---|
getArea, paintComponent, reset, run, setImage, setImage |
Methods inherited from class org.geotools.gui.swing.ZoomPane |
---|
addMouseListener, addZoomChangeListener, buildNavigationMenu, correctApparentPixelPosition, createScrollPane, fireZoomChanged, getDefaultSize, getInsets, getInsets, getMagnifierBorder, getMagnifierGlass, getMagnifierMenu, getMouseSelectionShape, getPopupMenu, getPreferredArea, getPreferredPixelSize, getScaleFactor, getVisibleArea, getZoomableBounds, hasPreferredArea, isMagnifierEnabled, isMagnifierVisible, isPaintingWhileAdjusting, mouseSelectionPerformed, paintComponent, paintMagnifier, printComponent, printComponent, removeZoomChangeListener, repaint, reset, scrollRectToVisible, setMagnifierBorder, setMagnifierEnabled, setMagnifierGlass, setMagnifierVisible, setPaintingWhileAdjusting, setPreferredArea, setResetPolicy, setVisibleArea, tieModels, transform, transformPixels, untieModels, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private MapOperations mapOperations
private List<WorldPoint> checkPointsPaint
private List<GridPoint> checkPoints
private List<MapPane.Path> paths
Constructor Detail |
---|
public MapPane()
Method Detail |
---|
public List<GridPoint> getCheckPoints()
public double getScaleX()
public double getScaleY()
public void setRasterMap(MapOperations rasterMap)
public WorldPoint convertToWorldCoordinate(int mouseX, int mouseY)
private GridPoint convertToGridCoordinate(WorldPoint wp)
private GridPoint convertToMapPaneCoordinate(GridPoint gp)
public void paint(Graphics g)
paint
in class JComponent
public void addToPath(int x, int y)
public void addPath(MapPane.Path path)
public void removePath(int id)
public void deleteCheckPoints()
public void deletePaths()
public void delete()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |