public class MarkerFillSymbol extends AbstractFillSymbol implements IMarkerFillSymbol
Modifier and Type | Class and Description |
---|---|
static class |
MarkerFillSymbol.RegisterPersistence |
static class |
MarkerFillSymbol.RegisterSymbol |
Modifier and Type | Field and Description |
---|---|
static int |
DefaultFillStyle |
static int |
GRID_FILL |
static String |
MARK_FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME |
static int |
RANDOM_FILL |
static int |
SINGLE_CENTERED_SYMBOL |
FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME
SYMBOL_PERSISTENCE_DEFINITION_NAME
SYMBOL_NAME
SELECTION_COLOR
PAPER, WORLD
Constructor and Description |
---|
MarkerFillSymbol() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a copy of the object.
|
void |
draw(Graphics2D g,
AffineTransform affineTransform,
Geometry geom,
Feature feat,
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.
|
void |
drawInsideRectangle(Graphics2D g,
AffineTransform scaleInstance,
Rectangle r,
PrintAttributes properties)
Useful to render the symbol inside the TOC, or inside little
rectangles.
|
String |
getClassName() |
Color |
getFillColor() |
IMarkerSymbol |
getMarker() |
IMarkerFillPropertiesStyle |
getMarkerFillProperties()
Returns the markerfillproperties that are used by the class
|
ISymbol |
getSymbolForSelection()
Returns the derived version of the symbol that will be used to draw the
feature when it is selected.
|
int |
getSymbolType()
The use of this method -and its mechanism- is being valorated.
|
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 |
setFillColor(Color color)
Sets the color that will be used to draw the filling pattern of this symbol.
|
void |
setMarker(IMarkerSymbol marker) |
void |
setMarkerFillProperties(IMarkerFillPropertiesStyle markerFillStyle)
Sets the markerfillproperties to be used by the class
|
void |
setReferenceSystem(int system)
Sets the Reference System that defines how this units have to be
handled.
|
void |
setUnit(int unitIndex)
Defines the unit used to express measures.
|
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).
|
getCartographicSize, getColor, getFillAlpha, getOnePointRgb, getOutline, getPixExtentPlus, hasFill, hasOutline, isSuitableFor, setColor, setHasFill, setHasOutline, setOutline
cloneForSelection, equals, getDescription, getID, getReferenceSystem, getUnit, isOneDotOrPixel, isShapeVisible, setDescription, setID, setIsShapeVisible
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFillAlpha, getOnePointRgb, getOutline, hasFill, hasOutline, isSuitableFor, setHasFill, setHasOutline, setOutline
getColor, getDescription, getPixExtentPlus, isOneDotOrPixel, isShapeVisible, setColor, setDescription
getCartographicSize, getReferenceSystem, getUnit
public static final String MARK_FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME
public static final int RANDOM_FILL
public static final int GRID_FILL
public static final int SINGLE_CENTERED_SYMBOL
public static int DefaultFillStyle
public ISymbol getSymbolForSelection()
ISymbol
getSymbolForSelection
in interface ISymbol
public void draw(Graphics2D g, AffineTransform affineTransform, Geometry geom, Feature feat, Cancellable cancel)
ISymbol
public int getSymbolType()
ISymbol
getSymbolType
in interface ISymbol
public void drawInsideRectangle(Graphics2D g, AffineTransform scaleInstance, Rectangle r, PrintAttributes properties) throws SymbolDrawingException
ISymbol
drawInsideRectangle
in interface ISymbol
properties
- TODOSymbolDrawingException
- TODOpublic String getClassName()
public void setMarker(IMarkerSymbol marker)
setMarker
in interface IMarkerFillSymbol
public IMarkerSymbol getMarker()
getMarker
in interface IMarkerFillSymbol
public Color getFillColor()
getFillColor
in interface IFillSymbol
getFillColor
in class AbstractFillSymbol
public void setFillColor(Color color)
IFillSymbol
setFillColor
in interface IFillSymbol
setFillColor
in class AbstractFillSymbol
public void print(Graphics2D g, AffineTransform at, Geometry geom, PrintAttributes properties)
print
in interface IPrintable
public void setMarkerFillProperties(IMarkerFillPropertiesStyle markerFillStyle)
setMarkerFillProperties
in interface IMarkerFillSymbol
markerFillStyle,IMarkerFillPropertiesStyle
- public IMarkerFillPropertiesStyle getMarkerFillProperties()
getMarkerFillProperties
in interface IMarkerFillSymbol
public void setUnit(int unitIndex)
CartographicSupport
setUnit
in interface CartographicSupport
setUnit
in class AbstractFillSymbol
public void setReferenceSystem(int system)
CartographicSupport
setReferenceSystem
in interface CartographicSupport
setReferenceSystem
in class AbstractSymbol
public void setCartographicSize(double cartographicSize, Geometry geom)
CartographicSupport
setCartographicSize
in interface CartographicSupport
setCartographicSize
in class AbstractFillSymbol
public double toCartographicSize(ViewPort viewPort, double dpi, Geometry geom)
CartographicSupport
toCartographicSize
in interface CartographicSupport
toCartographicSize
in class AbstractFillSymbol
public Object clone() throws CloneNotSupportedException
Cloneable
clone
in class AbstractFillSymbol
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 AbstractFillSymbol
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractFillSymbol
PersistenceException