public class MeasurementStyle extends java.lang.Object implements Style
Constructor and Description |
---|
MeasurementStyle() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
java.lang.String |
getAreaAttribute() |
java.lang.String |
getLengthAttribute() |
java.awt.Color |
getSummaryColor() |
java.awt.Font |
getSummaryFont() |
java.awt.Color |
getVertexFirstColor() |
java.lang.String |
getVertexFirstForm() |
int |
getVertexFirstSize() |
java.awt.Color |
getVertexFollowingColor() |
java.lang.String |
getVertexFollowingForm() |
int |
getVertexFollowingSize() |
java.awt.Font |
getVertexFont() |
java.awt.Color |
getVertexFontColor() |
void |
initialize(Layer layer)
Called before #paint is applied to each Feature.
|
boolean |
isEnabled() |
boolean |
isPaintSummaryArea() |
boolean |
isPaintSummaryLength() |
boolean |
isVertexPaint() |
boolean |
isVertexPaintDistance() |
boolean |
isVertexPaintDistanceRelative() |
void |
paint(Feature f,
java.awt.Graphics2D g,
Viewport viewport) |
void |
setAreaAttribute(java.lang.String areaAttribute) |
void |
setEnabled(boolean enabled) |
void |
setLengthAttribute(java.lang.String lengthAttribute) |
void |
setPaintSummaryArea(boolean paintSummaryArea) |
void |
setPaintSummaryLength(boolean paintSummary) |
void |
setSummaryColor(java.awt.Color summaryColor) |
void |
setSummaryFont(java.awt.Font font) |
void |
setVertexFirstColor(java.awt.Color vertexFirstColor) |
void |
setVertexFirstForm(java.lang.String vertexFirstForm) |
void |
setVertexFirstSize(int vertexFirstSize) |
void |
setVertexFollowingColor(java.awt.Color vertexFollowingColor) |
void |
setVertexFollowingForm(java.lang.String vertexFollowingForm) |
void |
setVertexFollowingSize(int vertexFollowingSize) |
void |
setVertexFont(java.awt.Font vertexFont) |
void |
setVertexFontColor(java.awt.Color vertexFontColor) |
void |
setVertexPaint(boolean vertexPaint) |
void |
setVertexPaintDistance(boolean vertexPaintDistance) |
void |
setVertexPaintDistanceRelative(boolean vertexPaintDistanceRelative) |
public void paint(Feature f, java.awt.Graphics2D g, Viewport viewport) throws java.lang.Exception
public void initialize(Layer layer)
Style
initialize
in interface Style
public void setEnabled(boolean enabled)
setEnabled
in interface Style
public boolean isEnabled()
public java.lang.Object clone()
public java.lang.String getAreaAttribute()
public void setAreaAttribute(java.lang.String areaAttribute)
areaAttribute
- the areaAttribute to setpublic java.lang.String getLengthAttribute()
public void setLengthAttribute(java.lang.String lengthAttribute)
lengthAttribute
- the lengthAttribute to setpublic java.awt.Font getSummaryFont()
public void setSummaryFont(java.awt.Font font)
font
- the font to setpublic java.awt.Color getSummaryColor()
public void setSummaryColor(java.awt.Color summaryColor)
summaryColor
- the summaryColor to setpublic boolean isPaintSummaryLength()
public void setPaintSummaryLength(boolean paintSummary)
paintSummary
- the paintSummary to setpublic boolean isPaintSummaryArea()
public void setPaintSummaryArea(boolean paintSummaryArea)
paintSummaryArea
- the paintSummaryArea to setpublic java.awt.Font getVertexFont()
public void setVertexFont(java.awt.Font vertexFont)
vertexFont
- the vertexFont to setpublic java.awt.Color getVertexFontColor()
public void setVertexFontColor(java.awt.Color vertexFontColor)
vertexFontColor
- the vertexFontColor to setpublic boolean isVertexPaintDistance()
public void setVertexPaintDistance(boolean vertexPaintDistance)
vertexPaintDistance
- the vertexPaintDistance to setpublic boolean isVertexPaint()
public void setVertexPaint(boolean vertexPaint)
vertexPaint
- the vertexPaint to setpublic java.awt.Color getVertexFirstColor()
public void setVertexFirstColor(java.awt.Color vertexFirstColor)
vertexFirstColor
- the vertexFirstColor to setpublic java.lang.String getVertexFirstForm()
public void setVertexFirstForm(java.lang.String vertexFirstForm)
vertexFirstForm
- the vertexFirstForm to setpublic int getVertexFirstSize()
public void setVertexFirstSize(int vertexFirstSize)
vertexFirstSize
- the vertexFirstSize to setpublic java.awt.Color getVertexFollowingColor()
public void setVertexFollowingColor(java.awt.Color vertexFollowingColor)
vertexFollowingColor
- the vertexFollowingColor to setpublic java.lang.String getVertexFollowingForm()
public void setVertexFollowingForm(java.lang.String vertexFollowingForm)
vertexFollowingForm
- the vertexFollowingForm to setpublic int getVertexFollowingSize()
public void setVertexFollowingSize(int vertexFollowingSize)
vertexFollowingSize
- the vertexFollowingSize to setpublic boolean isVertexPaintDistanceRelative()
public void setVertexPaintDistanceRelative(boolean vertexPaintDistanceRelative)
vertexPaintDistanceRelative
- the vertexPaintDistanceRelative to set