org.openstreetmap.josm.gui.bbox
Class SourceButton

java.lang.Object
  extended by org.openstreetmap.josm.gui.bbox.SourceButton

public class SourceButton
extends java.lang.Object


Field Summary
private  int barWidth
           
private  int barX
           
private  int barY
           
private  int currentMap
           
private  javax.swing.ImageIcon enlargeImage
           
static int HIDE_OR_SHOW
           
private  boolean isEnlarged
           
private  int layerHeight
           
private  javax.swing.ImageIcon shrinkImage
           
private  TileSource[] sources
           
 
Constructor Summary
SourceButton(java.util.List<TileSource> sources)
           
 
Method Summary
 int hit(java.awt.Point point)
           
 TileSource hitToTileSource(int hit)
           
 void paint(java.awt.Graphics2D g)
           
 void setCurrentMap(TileSource tileSource)
           
 void toggle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

barX

private int barX

barY

private int barY

barWidth

private int barWidth

layerHeight

private int layerHeight

sources

private final TileSource[] sources

enlargeImage

private javax.swing.ImageIcon enlargeImage

shrinkImage

private javax.swing.ImageIcon shrinkImage

isEnlarged

private boolean isEnlarged

currentMap

private int currentMap

HIDE_OR_SHOW

public static final int HIDE_OR_SHOW
See Also:
Constant Field Values
Constructor Detail

SourceButton

public SourceButton(java.util.List<TileSource> sources)
Method Detail

paint

public void paint(java.awt.Graphics2D g)

toggle

public void toggle()

hit

public int hit(java.awt.Point point)

hitToTileSource

public TileSource hitToTileSource(int hit)

setCurrentMap

public void setCurrentMap(TileSource tileSource)


JOSM