public class BasicSymbolImageMaker extends OMComponent implements SymbolImageMaker
Modifier and Type | Field and Description |
---|---|
protected java.awt.Paint |
background |
protected java.lang.String |
dataPath |
i18n, propertyPrefix
beanContextChildSupport, isolated
BackgroundPaintProperty, DataPathProperty
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
BasicSymbolImageMaker() |
BasicSymbolImageMaker(java.lang.String dataPath) |
Modifier and Type | Method and Description |
---|---|
java.awt.Paint |
getBackground() |
java.lang.String |
getDataPath() |
java.lang.String |
getFileExtension()
Return the file extension of this particular SymbolImageMaker, added to
the symbol name after the code has been massaged into a file name.
|
protected java.net.URL |
getFileURL(java.lang.String code) |
javax.swing.ImageIcon |
getIcon(java.lang.String code,
java.awt.Dimension di) |
protected java.lang.String |
massageCode(java.lang.String code) |
void |
setBackground(java.awt.Paint p) |
void |
setDataPath(java.lang.String dataPath) |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Sets the properties for the OMComponent.
|
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setPropertyPrefix
protected java.lang.String dataPath
protected java.awt.Paint background
public BasicSymbolImageMaker()
public BasicSymbolImageMaker(java.lang.String dataPath)
public void setProperties(java.lang.String prefix, java.util.Properties props)
OMComponent
setProperties
in interface PropertyConsumer
setProperties
in class OMComponent
prefix
- the token to prefix the property namesprops
- the Properties
objectprotected java.net.URL getFileURL(java.lang.String code) throws java.net.MalformedURLException
code
- java.net.MalformedURLException
public java.lang.String getFileExtension()
protected java.lang.String massageCode(java.lang.String code)
code
- public javax.swing.ImageIcon getIcon(java.lang.String code, java.awt.Dimension di)
getIcon
in interface SymbolImageMaker
public void setDataPath(java.lang.String dataPath)
setDataPath
in interface SymbolImageMaker
public void setBackground(java.awt.Paint p)
setBackground
in interface SymbolImageMaker
public java.awt.Paint getBackground()
public java.lang.String getDataPath()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details