org.openstreetmap.josm.gui.mappaint
Class StyleSource
java.lang.Object
org.openstreetmap.josm.gui.preferences.SourceEntry
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
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
StyleSource
public StyleSource(java.lang.String url,
java.lang.String name,
java.lang.String title)
StyleSource
public StyleSource(SourceEntry entry)
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