public class PictureLineSymbol extends AbstractLineSymbol implements IPictureLineSymbol
Modifier and Type | Class and Description |
---|---|
static class |
PictureLineSymbol.RegisterPersistence |
static class |
PictureLineSymbol.RegisterSymbol |
Modifier and Type | Field and Description |
---|---|
static String |
PICTURE_LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME |
LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME
SYMBOL_PERSISTENCE_DEFINITION_NAME
SYMBOL_NAME
SELECTION_COLOR
PAPER, WORLD
Constructor and Description |
---|
PictureLineSymbol()
Constructor method
|
PictureLineSymbol(URL imageURL,
URL selImageURL)
Constructor method
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a copy of the object.
|
void |
draw(Graphics2D g,
AffineTransform affineTransform,
Geometry geom,
Feature f,
Cancellable cancel)
Used when a symbol is going to be drawn.The method to do
it will depend on the derived version of the symbol.
|
String |
getClassName() |
double |
getLineWidth()
Returns the width of the line symbol
|
URL |
getSelectedSource()
Returns the URL of the image that is used as a picture line symbol (when it
is selected in the map)
|
URL |
getSource()
Returns the URL of the image that is used as a picture line symbol
|
ISymbol |
getSymbolForSelection()
Returns the derived version of the symbol that will be used to draw the
feature when it is selected.
|
double |
getXScale()
Returns the xscale for the picture line symbol
|
double |
getYScale()
Returns the yscale for the picture line symbol
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
print(Graphics2D g,
AffineTransform at,
Geometry geom,
PrintAttributes properties) |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setCartographicSize(double cartographicSize,
Geometry geom)
Sets the size of the cartographic element in pixels.
|
void |
setImage(URL imageUrl)
Sets the URL for the image to be used as a picture line symbol
|
void |
setLineWidth(double width)
Sets the width of the line symbol.
|
void |
setSelImage(URL selImageUrl)
Sets the URL for the image to be used as a picture line symbol (when it is selected in the map)
|
void |
setXScale(double xScale)
Sets the xscale for the picture line symbol
|
void |
setYScale(double yScale)
Sets the yscale for the picture line symbol
|
double |
toCartographicSize(ViewPort viewPort,
double dpi,
Geometry geom)
Computes and sets the size (in pixels) of the cartographic element according
to the current rendering context (output dpi, map scale, map units) and the
symbol cartgraphic settings (unit, size, and unit reference system).
|
drawInsideRectangle, getAlpha, getCartographicSize, getColor, getLineStyle, getOnePointRgb, getPixExtentPlus, getSymbolType, isSuitableFor, offsetFShape, setAlpha, setColor, setLineColor, setLineStyle
cloneForSelection, equals, getDescription, getID, getReferenceSystem, getUnit, isOneDotOrPixel, isShapeVisible, setDescription, setID, setIsShapeVisible, setReferenceSystem, setUnit
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlpha, getColor, getLineStyle, setAlpha, setLineColor, setLineStyle
drawInsideRectangle, getDescription, getOnePointRgb, getPixExtentPlus, getSymbolType, isOneDotOrPixel, isShapeVisible, isSuitableFor, setColor, setDescription
getCartographicSize, getReferenceSystem, getUnit, setReferenceSystem, setUnit
public static final String PICTURE_LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME
public PictureLineSymbol()
public PictureLineSymbol(URL imageURL, URL selImageURL) throws IOException
imageURL,
- URL of the normal imageselImageURL,
- URL of the image when it is selected in the mapIOException
public void setImage(URL imageUrl) throws IOException
setImage
in interface IPictureLineSymbol
imageFile,
- FileIOException
public void setSelImage(URL selImageUrl) throws IOException
setSelImage
in interface IPictureLineSymbol
imageFile,
- FileIOException
public void setLineWidth(double width)
ILineSymbol
setLineWidth
in interface ILineSymbol
public double getLineWidth()
ILineSymbol
getLineWidth
in interface ILineSymbol
public ISymbol getSymbolForSelection()
ISymbol
getSymbolForSelection
in interface ISymbol
public void draw(Graphics2D g, AffineTransform affineTransform, Geometry geom, Feature f, Cancellable cancel)
ISymbol
public void setYScale(double yScale)
setYScale
in interface IPictureLineSymbol
yScale
- public void setXScale(double xScale)
setXScale
in interface IPictureLineSymbol
xScale
- public String getClassName()
public void print(Graphics2D g, AffineTransform at, Geometry geom, PrintAttributes properties)
print
in interface IPrintable
print
in class AbstractLineSymbol
public URL getSelectedSource()
getSelectedSource
in interface IPictureLineSymbol
public URL getSource()
getSource
in interface IPictureLineSymbol
public double getXScale()
getXScale
in interface IPictureLineSymbol
xScale
- public double getYScale()
getYScale
in interface IPictureLineSymbol
yScale
- public void setCartographicSize(double cartographicSize, Geometry geom)
CartographicSupport
setCartographicSize
in interface CartographicSupport
setCartographicSize
in class AbstractLineSymbol
public double toCartographicSize(ViewPort viewPort, double dpi, Geometry geom)
CartographicSupport
toCartographicSize
in interface CartographicSupport
toCartographicSize
in class AbstractLineSymbol
public Object clone() throws CloneNotSupportedException
Cloneable
clone
in class AbstractLineSymbol
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()}.
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractLineSymbol
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractLineSymbol
PersistenceException