org.openstreetmap.josm.gui.mappaint
Class StyleSource

java.lang.Object
  extended by org.openstreetmap.josm.gui.preferences.SourceEntry
      extended by org.openstreetmap.josm.gui.mappaint.StyleSource
Direct Known Subclasses:
MapCSSStyleSource, XmlStyleSource

public abstract class StyleSource
extends SourceEntry


Field Summary
private static javax.swing.ImageIcon defaultIcon
           
private  java.util.List<java.lang.Throwable> errors
           
 java.lang.String icon
          The following fields is additional information found in the header of the source file.
private  javax.swing.ImageIcon imageIcon
           
private  long lastMTime
           
 java.io.File zipIcons
           
 
Fields inherited from class org.openstreetmap.josm.gui.preferences.SourceEntry
active, name, title, url
 
Constructor Summary
StyleSource(SourceEntry entry)
           
StyleSource(java.lang.String url, java.lang.String name, java.lang.String title)
           
 
Method Summary
abstract  void apply(MultiCascade mc, OsmPrimitive osm, double scale, OsmPrimitive multipolyOuterWay, boolean pretendWayIsClosed)
           
 java.awt.Color getBackgroundColorOverride()
           
private static javax.swing.ImageIcon getDefaultIcon()
           
 java.util.Collection<java.lang.Throwable> getErrors()
           
 javax.swing.ImageIcon getIcon()
           
 long getLastMTime()
           
protected  javax.swing.ImageIcon getSourceIcon()
           
abstract  java.io.InputStream getSourceInputStream()
           
 java.lang.String getToolTipText()
           
protected  void init()
           
abstract  void loadStyleSource()
           
 void logError(java.lang.Throwable e)
           
 void setLastMTime(long lastMTime)
           
 
Methods inherited from class org.openstreetmap.josm.gui.preferences.SourceEntry
equals, getDisplayString, getFileNamePart, getLocalSourceDir, getPrefName, hashCode, isLocal, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

errors

private java.util.List<java.lang.Throwable> errors

zipIcons

public java.io.File zipIcons

imageIcon

private javax.swing.ImageIcon imageIcon

lastMTime

private long lastMTime

icon

public java.lang.String icon
The following fields is additional information found in the header of the source file.


defaultIcon

private static javax.swing.ImageIcon defaultIcon
Constructor Detail

StyleSource

public StyleSource(java.lang.String url,
                   java.lang.String name,
                   java.lang.String title)

StyleSource

public StyleSource(SourceEntry entry)
Method Detail

apply

public abstract void apply(MultiCascade mc,
                           OsmPrimitive osm,
                           double scale,
                           OsmPrimitive multipolyOuterWay,
                           boolean pretendWayIsClosed)

loadStyleSource

public abstract void loadStyleSource()

getSourceInputStream

public abstract java.io.InputStream getSourceInputStream()
                                                  throws java.io.IOException
Throws:
java.io.IOException

logError

public void logError(java.lang.Throwable e)

getErrors

public java.util.Collection<java.lang.Throwable> getErrors()

init

protected void init()

getDefaultIcon

private static javax.swing.ImageIcon getDefaultIcon()

getSourceIcon

protected javax.swing.ImageIcon getSourceIcon()

getIcon

public final javax.swing.ImageIcon getIcon()

getToolTipText

public java.lang.String getToolTipText()

getBackgroundColorOverride

public java.awt.Color getBackgroundColorOverride()

getLastMTime

public long getLastMTime()

setLastMTime

public void setLastMTime(long lastMTime)


JOSM