public class RemoteFileStyle extends BackgroundFileStyle
| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteFileStyle.RegisterPersistence |
BackgroundFileStyle.PersistenceCantSetSourceExceptionCartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REMOTE_FILE_STYLE_PERSISTENCE_DEFINITION_NAME |
BACKGROUND_FILE_STYLE_PERSISTENCE_DEFINITION_NAME, source, SOURCE_SYMBOL_IN_LIBRARY, symbolTableLOGGER, STYLE_PERSISTENCE_DEFINITION_NAMEPAPER, WORLD| Constructor and Description |
|---|
RemoteFileStyle() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawInsideRectangle(java.awt.Graphics2D g,
java.awt.Rectangle r,
boolean keepAspectRatio) |
void |
drawOutline(java.awt.Graphics2D g,
java.awt.Rectangle r)
Used to show an outline of the style to graphically show its properties.
|
java.awt.Rectangle |
getBounds()
Gets the bounding
Rectangle of this Rectangle. |
java.lang.String |
getClassName() |
boolean |
isSuitableFor(ISymbol symbol)
True if this symbol is ok for the style or class.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setSource(java.net.URL url)
Sets the file that is used as a source to create the Background
|
clone, createStyleByURL, drawInsideRectangle, getSource, getSourceSymbolInLibrary, getSymbolLibraryURL, isLibrarySymbol, setSymbolTablegetDescription, setDescriptioncopyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, setDescriptioncloneQuietly, cloneQuietlycopyCartographicContextpublic static final java.lang.String REMOTE_FILE_STYLE_PERSISTENCE_DEFINITION_NAME
public java.awt.Rectangle getBounds()
BackgroundFileStyleRectangle of this Rectangle.
This method is included for completeness, to parallel the
getBounds method of
Component.
getBounds in interface IBackgroundFileStylegetBounds in class BackgroundFileStyleRectangle, equal to the
bounding Rectangle for this Rectangle.Component.getBounds(),
#setBounds(Rectangle),
#setBounds(int, int, int, int)public void setSource(java.net.URL url)
throws java.io.IOException
BackgroundFileStylesetSource in interface IBackgroundFileStylesetSource in class BackgroundFileStylejava.io.IOExceptionpublic void drawInsideRectangle(java.awt.Graphics2D g,
java.awt.Rectangle r,
boolean keepAspectRatio)
throws SymbolDrawingException
drawInsideRectangle in class BackgroundFileStyleSymbolDrawingExceptionpublic void drawOutline(java.awt.Graphics2D g,
java.awt.Rectangle r)
throws SymbolDrawingException
IStyleSymbolDrawingExceptionpublic boolean isSuitableFor(ISymbol symbol)
IStylesymbol - ISymbolpublic java.lang.String getClassName()
public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractStylePersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractStylePersistenceException