org.openstreetmap.gui.jmapviewer
Class AttributionSupport

java.lang.Object
  extended by org.openstreetmap.gui.jmapviewer.AttributionSupport

public class AttributionSupport
extends java.lang.Object


Field Summary
static java.awt.Font ATTR_FONT
           
static java.awt.Font ATTR_LINK_FONT
           
private  java.awt.Image attrImage
           
protected  java.awt.Rectangle attrImageBounds
           
private  java.lang.String attrTermsText
           
private  java.lang.String attrTermsUrl
           
protected  java.awt.Rectangle attrTextBounds
           
protected  java.awt.Rectangle attrToUBounds
           
private  Attributed source
           
 
Constructor Summary
AttributionSupport()
           
 
Method Summary
 boolean handleAttribution(java.awt.Point p, boolean click)
           
 void initialize(Attributed source)
           
 void paintAttribution(java.awt.Graphics g, int width, int height, Coordinate topLeft, Coordinate bottomRight, int zoom, java.awt.image.ImageObserver observer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

private Attributed source

attrImage

private java.awt.Image attrImage

attrTermsText

private java.lang.String attrTermsText

attrTermsUrl

private java.lang.String attrTermsUrl

ATTR_FONT

public static final java.awt.Font ATTR_FONT

ATTR_LINK_FONT

public static final java.awt.Font ATTR_LINK_FONT

attrTextBounds

protected java.awt.Rectangle attrTextBounds

attrToUBounds

protected java.awt.Rectangle attrToUBounds

attrImageBounds

protected java.awt.Rectangle attrImageBounds
Constructor Detail

AttributionSupport

public AttributionSupport()
Method Detail

initialize

public void initialize(Attributed source)

paintAttribution

public void paintAttribution(java.awt.Graphics g,
                             int width,
                             int height,
                             Coordinate topLeft,
                             Coordinate bottomRight,
                             int zoom,
                             java.awt.image.ImageObserver observer)

handleAttribution

public boolean handleAttribution(java.awt.Point p,
                                 boolean click)


JOSM