public abstract class BackgroundFileStyle extends AbstractStyle implements IBackgroundFileStyle
| Modifier and Type | Class and Description |
|---|---|
class |
BackgroundFileStyle.PersistenceCantSetSourceException |
static class |
BackgroundFileStyle.RegisterPersistence |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BACKGROUND_FILE_STYLE_PERSISTENCE_DEFINITION_NAME |
protected java.net.URL |
source |
protected static java.lang.String |
SOURCE_SYMBOL_IN_LIBRARY |
protected SymbolTable |
symbolTable |
LOGGER, STYLE_PERSISTENCE_DEFINITION_NAMEPAPER, WORLD| Constructor and Description |
|---|
BackgroundFileStyle() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
static BackgroundFileStyle |
createStyleByURL(java.net.URL url) |
void |
drawInsideRectangle(java.awt.Graphics2D g,
java.awt.Rectangle r)
Useful to render the symbol inside the TOC, or inside little
rectangles.
|
abstract void |
drawInsideRectangle(java.awt.Graphics2D g,
java.awt.Rectangle r,
boolean keepAspectRatio) |
abstract java.awt.Rectangle |
getBounds()
Gets the bounding
Rectangle of this Rectangle. |
java.net.URL |
getSource()
Obtains the source of the file which is used to create the background
|
protected java.lang.String |
getSourceSymbolInLibrary()
Return the final substring of the URL symbol in the library
|
protected java.net.URL |
getSymbolLibraryURL() |
protected boolean |
isLibrarySymbol() |
abstract void |
setSource(java.net.URL url)
Sets the file that is used as a source to create the Background
|
void |
setSymbolTable(SymbolTable symbolTable) |
getDescription, loadFromState, saveToState, setDescriptioncopyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdrawOutline, getDescription, isSuitableFor, setDescriptionloadFromState, saveToStatecloneQuietly, cloneQuietlycopyCartographicContextpublic static final java.lang.String BACKGROUND_FILE_STYLE_PERSISTENCE_DEFINITION_NAME
protected static final java.lang.String SOURCE_SYMBOL_IN_LIBRARY
protected java.net.URL source
protected SymbolTable symbolTable
public static BackgroundFileStyle createStyleByURL(java.net.URL url) throws java.io.IOException
java.io.IOExceptionpublic abstract void setSource(java.net.URL url)
throws java.io.IOException
setSource in interface IBackgroundFileStylef, - Filejava.io.IOExceptionpublic abstract java.awt.Rectangle getBounds()
Rectangle of this Rectangle.
This method is included for completeness, to parallel the
getBounds method of
Component.
getBounds in interface IBackgroundFileStyleRectangle, equal to the
bounding Rectangle for this Rectangle.Component.getBounds(),
#setBounds(Rectangle),
#setBounds(int, int, int, int)public final java.net.URL getSource()
getSource in interface IBackgroundFileStylepublic final void drawInsideRectangle(java.awt.Graphics2D g,
java.awt.Rectangle r)
throws SymbolDrawingException
IStyledrawInsideRectangle in interface IStyleg - Graphics2Dr - RectangleSymbolDrawingExceptionpublic abstract void drawInsideRectangle(java.awt.Graphics2D g,
java.awt.Rectangle r,
boolean keepAspectRatio)
throws SymbolDrawingException
SymbolDrawingExceptionpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class AbstractStylejava.lang.CloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.protected boolean isLibrarySymbol()
protected java.net.URL getSymbolLibraryURL()
protected java.lang.String getSourceSymbolInLibrary()
public void setSymbolTable(SymbolTable symbolTable)
setSymbolTable in interface IBackgroundFileStyle