public interface ILabelClass extends Cloneable, Persistent, CartographicSupport
CartographicSupport.CartographicContext
PAPER, WORLD
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D graphics,
ILabelLocationMetrics llm,
Geometry geom)
LabelLocationMetrics, contains the anchor point, rotation, and some
other geometric calculations computed by the PlacementManager.
|
void |
drawInsideRectangle(java.awt.Graphics2D graphics,
java.awt.Rectangle bounds)
Useful to render a Label with size inside little rectangles.
|
java.awt.Rectangle |
getBounds() |
java.lang.String |
getClassName() |
java.lang.String[] |
getLabelExpressions()
Returns the expression that defines the text which will be showed in
the label
|
ILabelStyle |
getLabelStyle()
Returns the style of the label
|
java.lang.String |
getName()
Returns the name of the label
|
int |
getPriority() |
Geometry |
getShape(ILabelLocationMetrics llm) |
java.lang.String |
getSQLQuery() |
java.lang.String |
getStringLabelExpression()
Returns the expression that defines the text which will be showed in
the label ready to be used for the label parser
|
java.lang.String[] |
getTexts()
Return the text for the label
|
ITextSymbol |
getTextSymbol()
Returns the text symbol that is being used for the text(the font,
size,style,aligment)
|
boolean |
isUseSqlQuery() |
boolean |
isVisible()
Returns true if the label will be showed in the map
|
boolean |
isVisible(double scale)
Returns true if the label will be showed in the map
|
void |
setLabelExpressions(java.lang.String[] lbl_exps)
Sets the expression that defines the text which will be showed in
the label
|
void |
setLabelStyle(ILabelStyle labelStyle)
Stablishes the style for the label.
|
void |
setName(java.lang.String name)
Stablishes the name of the label
|
void |
setPriority(int priority) |
void |
setSQLQuery(java.lang.String sqlQuery) |
void |
setTexts(java.lang.String[] texts)
Sets the text for the label
|
void |
setTextSymbol(ITextSymbol textSymbol)
Stablishes the text symbol that is going to be used for the text(the
font,size,style,aligment)
|
void |
setUseSqlQuery(boolean use_sql) |
void |
setVisible(boolean isVisible)
Sets the visibility of the label in the map.
|
java.lang.String |
toString() |
clone, cloneQuietly, cloneQuietly
loadFromState, saveToState
copyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnits
boolean isVisible()
boolean isVisible(double scale)
void setVisible(boolean isVisible)
isVisible
- booleanITextSymbol getTextSymbol()
void setTextSymbol(ITextSymbol textSymbol)
textSymbol
- ITextSymbolvoid setLabelStyle(ILabelStyle labelStyle)
labelStyle
- ILabelStyleILabelStyle getLabelStyle()
java.lang.String getName()
void setName(java.lang.String name)
name
- java.lang.String toString()
toString
in class java.lang.Object
void setTexts(java.lang.String[] texts)
texts
- String[]java.lang.String[] getTexts()
texts
- String[]void draw(java.awt.Graphics2D graphics, ILabelLocationMetrics llm, Geometry geom)
LabelLocationMetrics, contains the anchor point, rotation, and some other geometric calculations computed by the PlacementManager.
The shp argument is passed as an accessory for subclasses of this class in case they need futher geometric calculations
graphics,
- graphics to use to paint the label.llm,
- concrete settings of the placement of this layershp,
- the Shape over whose the label is paintedvoid drawInsideRectangle(java.awt.Graphics2D graphics, java.awt.Rectangle bounds) throws SymbolDrawingException
graphics
- Graphics2Dbounds
- RectangleSymbolDrawingException
int getPriority()
void setPriority(int priority)
Geometry getShape(ILabelLocationMetrics llm) throws CreateGeometryException
CreateGeometryException
java.lang.String getClassName()
java.awt.Rectangle getBounds()
java.lang.String getSQLQuery()
void setSQLQuery(java.lang.String sqlQuery)
java.lang.String[] getLabelExpressions()
void setLabelExpressions(java.lang.String[] lbl_exps)
void setUseSqlQuery(boolean use_sql)
boolean isUseSqlQuery()
java.lang.String getStringLabelExpression()