public class CharacterMarkerSymbol
extends org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.AbstractMarkerSymbol
implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CHARACTER_MARKER_SYMBOL_PERSISTENCE_NAME |
MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAMELOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMECIRCLE_STYLE, CROSS_STYLE, DIAMOND_STYLE, HORIZONTAL_LINE_STYLE, SQUARE_STYLE, STAR_STYLE, SYMBOL_NAME, TRIANGLE_STYLE, VERTICAL_LINE_STYLE, X_STYLE| Constructor and Description |
|---|
CharacterMarkerSymbol()
Creates a new instance of CharacterMarker with default values
|
CharacterMarkerSymbol(java.awt.Font font,
int charCode,
java.awt.Color color)
Creates a new instance of CharacterMarker specifying the marker source
font, the character code corresponding to the symbol, and the color that
will be used in rendering time.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
void |
draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
org.gvsig.fmap.geom.Geometry geom,
org.gvsig.fmap.dal.feature.Feature feat,
org.gvsig.tools.task.Cancellable cancel,
java.awt.Rectangle r) |
java.awt.Font |
getFont()
Returns the font that will be used to define the symbol
|
int |
getOnePointRgb() |
void |
getPixExtentPlus(org.gvsig.fmap.geom.Geometry geom,
float[] distances,
org.gvsig.fmap.mapcontext.ViewPort viewPort,
int dpi) |
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol |
getSymbolForSelection(java.awt.Color selectionColor) |
int |
getUnicode()
Obtains the unicode for a symbol
|
boolean |
isOneDotOrPixel(org.gvsig.fmap.geom.Geometry geom,
double[] positionOfDotOrPixel,
org.gvsig.fmap.mapcontext.ViewPort viewPort,
int dpi) |
boolean |
isSuitableFor(org.gvsig.fmap.geom.Geometry geom) |
boolean |
isVisuallyCorrected()
Returns true of false depending if the character marker symbol selected is visually
corrected.That is, if the character has been properly scaled to use a specific number
of pixels to be represented.
|
void |
loadFromState(org.gvsig.tools.persistence.PersistentState state) |
void |
print(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at,
org.gvsig.fmap.geom.Geometry geom,
org.gvsig.compat.print.PrintAttributes properties) |
static void |
registerPersistent() |
void |
saveToState(org.gvsig.tools.persistence.PersistentState state) |
void |
setAlpha(int a) |
void |
setFont(java.awt.Font font)
Sets the font that will be used to define the symbol
|
void |
setSize(double size) |
void |
setUnicode(int symbol)
Sets the unicode for a symbol represented by a character
|
void |
setVisuallyCorrected(boolean visuallyCorrected)
Sets the visual correction for a character in order to scale it if it is necessary.
|
getAdjustedSize, getCartographicSize, getColor, getEfectiveLineToOffsetColor, getEfectiveOffset, getEfectiveRotationInDegres, getEfectiveRotationInRadians, getEfectiveSize, getLineToOffsetColor, getLineToOffsetColorExpression, getMask, getOffset, getOffsetXExpression, getOffsetYExpression, getPoint, getRotation, getRotationExpression, getRotationInDegrees, getRotationInRadians, getSampleGeometry, getSize, getSizeExpression, getSymbolTable, getSymbolType, isDrawLineToOffset, setColor, setDrawLineToOffset, setLineToOffsetColor, setLineToOffsetColorExpression, setMask, setOffset, setOffsetXExpression, setOffsetYExpression, setRotation, setRotationExpression, setRotationInDegrees, setRotationInRadians, setSizeExpressioncloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, getSymbolForSelection, isShapeVisible, setDescription, setFeature, setID, setIsShapeVisiblecopyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEfectiveLineToOffsetColor, getEfectiveOffset, getEfectiveRotationInDegres, getEfectiveRotationInRadians, getEfectiveSize, getLineToOffsetColor, getLineToOffsetColorExpression, getOffsetXExpression, getOffsetYExpression, getRotationExpression, getSizeExpression, isDrawLineToOffset, setDrawLineToOffset, setLineToOffsetColor, setLineToOffsetColorExpression, setOffsetXExpression, setOffsetYExpression, setRotationExpression, setSizeExpressiongetColor, getMask, getOffset, getRotation, getSize, setColor, setMask, setOffset, setRotationcopyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitspublic static final java.lang.String CHARACTER_MARKER_SYMBOL_PERSISTENCE_NAME
public CharacterMarkerSymbol()
public CharacterMarkerSymbol(java.awt.Font font,
int charCode,
java.awt.Color color)
font - -
src FontcharCode - -
character code of the symbol for this fontcolor - -
color to be used in when rendering.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.AbstractMarkerSymboljava.lang.CloneNotSupportedExceptionpublic void draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
org.gvsig.fmap.geom.Geometry geom,
org.gvsig.fmap.dal.feature.Feature feat,
org.gvsig.tools.task.Cancellable cancel,
java.awt.Rectangle r)
draw in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolpublic java.awt.Font getFont()
public int getOnePointRgb()
public void getPixExtentPlus(org.gvsig.fmap.geom.Geometry geom,
float[] distances,
org.gvsig.fmap.mapcontext.ViewPort viewPort,
int dpi)
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolForSelection(java.awt.Color selectionColor)
getSymbolForSelection in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolForSelection in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbolpublic int getUnicode()
public boolean isOneDotOrPixel(org.gvsig.fmap.geom.Geometry geom,
double[] positionOfDotOrPixel,
org.gvsig.fmap.mapcontext.ViewPort viewPort,
int dpi)
public boolean isSuitableFor(org.gvsig.fmap.geom.Geometry geom)
isSuitableFor in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolisSuitableFor in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.AbstractMarkerSymbolpublic boolean isVisuallyCorrected()
public void loadFromState(org.gvsig.tools.persistence.PersistentState state)
throws org.gvsig.tools.persistence.exception.PersistenceException
loadFromState in interface org.gvsig.tools.persistence.PersistentloadFromState in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.AbstractMarkerSymbolorg.gvsig.tools.persistence.exception.PersistenceExceptionpublic void print(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at,
org.gvsig.fmap.geom.Geometry geom,
org.gvsig.compat.print.PrintAttributes properties)
print in interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintableprint in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbolpublic static void registerPersistent()
public void saveToState(org.gvsig.tools.persistence.PersistentState state)
throws org.gvsig.tools.persistence.exception.PersistenceException
saveToState in interface org.gvsig.tools.persistence.PersistentsaveToState in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.AbstractMarkerSymbolorg.gvsig.tools.persistence.exception.PersistenceExceptionpublic void setAlpha(int a)
setAlpha in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbolsetAlpha in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.AbstractMarkerSymbolpublic void setFont(java.awt.Font font)
public void setSize(double size)
setSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbolsetSize in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.AbstractMarkerSymbolpublic void setUnicode(int symbol)
symbol, - intpublic void setVisuallyCorrected(boolean visuallyCorrected)
Copyright © 2025 gvSIG Association. All rights reserved.