Class SimpleLabelStyle
java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.SimpleLabelStyle
- All Implemented Interfaces:
Cloneable,org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport,org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle,org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
public class SimpleLabelStyle
extends AbstractStyle
implements org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
Implements a style for the creation of simple labels.
- Author:
- jaume dominguez faus - jaume.dominguez@iver.es
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext -
Field Summary
FieldsFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
LOGGER, STYLE_PERSISTENCE_DEFINITION_NAMEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
PAPER, WORLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTextFieldArea(Rectangle2D rect) voiddeleteTextFieldArea(int index) voidvoiddrawOutline(Graphics2D g, Rectangle r) org.gvsig.fmap.mapcontext.rendering.symbols.styles.IBackgroundFileStyleintgetSize()booleanisSuitableFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetBackgroundFileStyle(org.gvsig.fmap.mapcontext.rendering.symbols.styles.IBackgroundFileStyle bg) voidvoidsetSize(double width, double height) voidsetTextFieldArea(int index, Rectangle2D rect) voidsetTextFields(String[] texts) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
clone, getDescription, setDescriptionMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
getDescription, setDescription
-
Field Details
-
SIMPLE_LABEL_STYLE_PERSISTENCE_NAME
- See Also:
-
-
Constructor Details
-
SimpleLabelStyle
public SimpleLabelStyle()
-
-
Method Details
-
getFieldCount
public int getFieldCount()- Specified by:
getFieldCountin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
-
setTextFields
- Specified by:
setTextFieldsin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
-
isSuitableFor
public boolean isSuitableFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) - Specified by:
isSuitableForin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
-
getClassName
-
getTextBounds
- Specified by:
getTextBoundsin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
-
drawInsideRectangle
public void drawInsideRectangle(Graphics2D g, Rectangle r) throws org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException - Specified by:
drawInsideRectanglein interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle- Throws:
org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException
-
getSize
- Specified by:
getSizein interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
-
getMarkerPoint
- Specified by:
getMarkerPointin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
-
setMarkerPoint
- Specified by:
setMarkerPointin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle- Throws:
IllegalArgumentException
-
drawOutline
public void drawOutline(Graphics2D g, Rectangle r) throws org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException - Specified by:
drawOutlinein interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle- Throws:
org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException
-
setTextFieldArea
- Specified by:
setTextFieldAreain interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
-
addTextFieldArea
- Specified by:
addTextFieldAreain interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
-
deleteTextFieldArea
public void deleteTextFieldArea(int index) - Specified by:
deleteTextFieldAreain interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
-
setSize
public void setSize(double width, double height) - Specified by:
setSizein interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
-
getBackgroundFileStyle
public org.gvsig.fmap.mapcontext.rendering.symbols.styles.IBackgroundFileStyle getBackgroundFileStyle()- Specified by:
getBackgroundFileStylein interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
-
setBackgroundFileStyle
public void setBackgroundFileStyle(org.gvsig.fmap.mapcontext.rendering.symbols.styles.IBackgroundFileStyle bg) - Specified by:
setBackgroundFileStylein interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
-
loadFromState
public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
loadFromStatein classAbstractStyle- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
saveToState
public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
saveToStatein classAbstractStyle- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-