Class MeasurementStyle
java.lang.Object
org.openjump.core.ui.plugin.tools.MeasurementStyle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intintvoidinitialize(Layer layer) Called before #paint is applied to each Feature.booleanbooleanbooleanbooleanbooleanbooleanvoidpaint(Feature f, Graphics2D g, Viewport viewport) voidsetAreaAttribute(String areaAttribute) voidsetEnabled(boolean enabled) voidsetLengthAttribute(String lengthAttribute) voidsetPaintSummaryArea(boolean paintSummaryArea) voidsetPaintSummaryLength(boolean paintSummary) voidsetSummaryColor(Color summaryColor) voidsetSummaryFont(Font font) voidsetVertexFirstColor(Color vertexFirstColor) voidsetVertexFirstForm(String vertexFirstForm) voidsetVertexFirstSize(int vertexFirstSize) voidsetVertexFollowingColor(Color vertexFollowingColor) voidsetVertexFollowingForm(String vertexFollowingForm) voidsetVertexFollowingSize(int vertexFollowingSize) voidsetVertexFont(Font vertexFont) voidsetVertexFontColor(Color vertexFontColor) voidsetVertexPaint(boolean vertexPaint) voidsetVertexPaintDistance(boolean vertexPaintDistance) voidsetVertexPaintDistanceRelative(boolean vertexPaintDistanceRelative)
-
Constructor Details
-
MeasurementStyle
public MeasurementStyle()
-
-
Method Details
-
paint
-
initialize
Description copied from interface:StyleCalled before #paint is applied to each Feature.- Specified by:
initializein interfaceStyle- Parameters:
layer- the layer on which to apply this style
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceStyle
-
isEnabled
-
clone
-
getAreaAttribute
- Returns:
- the areaAttribute
-
setAreaAttribute
- Parameters:
areaAttribute- the areaAttribute to set
-
getLengthAttribute
- Returns:
- the lengthAttribute
-
setLengthAttribute
- Parameters:
lengthAttribute- the lengthAttribute to set
-
getSummaryFont
- Returns:
- the font
-
setSummaryFont
- Parameters:
font- the font to set
-
getSummaryColor
- Returns:
- the summaryColor
-
setSummaryColor
- Parameters:
summaryColor- the summaryColor to set
-
isPaintSummaryLength
public boolean isPaintSummaryLength()- Returns:
- the paintSummary
-
setPaintSummaryLength
public void setPaintSummaryLength(boolean paintSummary) - Parameters:
paintSummary- the paintSummary to set
-
isPaintSummaryArea
public boolean isPaintSummaryArea()- Returns:
- the paintSummaryArea
-
setPaintSummaryArea
public void setPaintSummaryArea(boolean paintSummaryArea) - Parameters:
paintSummaryArea- the paintSummaryArea to set
-
getVertexFont
- Returns:
- the vertexFont
-
setVertexFont
- Parameters:
vertexFont- the vertexFont to set
-
getVertexFontColor
- Returns:
- the vertexFontColor
-
setVertexFontColor
- Parameters:
vertexFontColor- the vertexFontColor to set
-
isVertexPaintDistance
public boolean isVertexPaintDistance()- Returns:
- the vertexPaintDistance
-
setVertexPaintDistance
public void setVertexPaintDistance(boolean vertexPaintDistance) - Parameters:
vertexPaintDistance- the vertexPaintDistance to set
-
isVertexPaint
public boolean isVertexPaint()- Returns:
- the vertexPaint
-
setVertexPaint
public void setVertexPaint(boolean vertexPaint) - Parameters:
vertexPaint- the vertexPaint to set
-
getVertexFirstColor
- Returns:
- the vertexFirstColor
-
setVertexFirstColor
- Parameters:
vertexFirstColor- the vertexFirstColor to set
-
getVertexFirstForm
- Returns:
- the vertexFirstForm
-
setVertexFirstForm
- Parameters:
vertexFirstForm- the vertexFirstForm to set
-
getVertexFirstSize
public int getVertexFirstSize()- Returns:
- the vertexFirstSize
-
setVertexFirstSize
public void setVertexFirstSize(int vertexFirstSize) - Parameters:
vertexFirstSize- the vertexFirstSize to set
-
getVertexFollowingColor
- Returns:
- the vertexFollowingColor
-
setVertexFollowingColor
- Parameters:
vertexFollowingColor- the vertexFollowingColor to set
-
getVertexFollowingForm
- Returns:
- the vertexFollowingForm
-
setVertexFollowingForm
- Parameters:
vertexFollowingForm- the vertexFollowingForm to set
-
getVertexFollowingSize
public int getVertexFollowingSize()- Returns:
- the vertexFollowingSize
-
setVertexFollowingSize
public void setVertexFollowingSize(int vertexFollowingSize) - Parameters:
vertexFollowingSize- the vertexFollowingSize to set
-
isVertexPaintDistanceRelative
public boolean isVertexPaintDistanceRelative()- Returns:
- the vertexPaintDistanceRelative
-
setVertexPaintDistanceRelative
public void setVertexPaintDistanceRelative(boolean vertexPaintDistanceRelative) - Parameters:
vertexPaintDistanceRelative- the vertexPaintDistanceRelative to set
-