Package ca.spatial.mapview.symbol
Class LineSymbol
java.lang.Object
java.util.Observable
ca.spatial.mapview.symbol.Symbol
ca.spatial.mapview.symbol.SymbolList
ca.spatial.mapview.symbol.LineSymbol
- All Implemented Interfaces:
Visibility
,Observer
Line symbology
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
static int
static double
static double
static double
static LineSymbol
static LineSymbol
static ArrayList
static LineSymbol
-
Constructor Summary
ConstructorsConstructorDescriptionLineSymbol(double minScale, double maxScale, AlphaComposite alpha, Paint paint, BasicStroke stroke, double lineMinScale, double lineMaxScale, AlphaComposite lineAlpha)
Deprecated.LineSymbol(SimpleLineSymbol line)
LineSymbol(Symbol[] symbols)
LineSymbol(Paint paint)
LineSymbol(Paint paint, double width)
-
Method Summary
Modifier and TypeMethodDescriptionclone()
getColor()
Get the color for this symbol.getCustomizer(boolean scaledSymbol)
Get a GUI component that can be used to customize this symbolstatic Symbol
getDefault(int theme, int index)
double
int
getType()
boolean
isPlainLineSymbol(boolean testColor)
static Symbol
random()
void
Set the color for this symbol.toString()
static Symbol
Methods inherited from class ca.spatial.mapview.symbol.SymbolList
addSymbol, clone, customize, customizeFull, getFillColor, getLineColor, getLineWidth, getModel, getSymbolAt, getSymbols, insertSymbolAt, isClear, remove, setFillColor, setLineColor, setLineWidth, size, symbolize, update
Methods inherited from class ca.spatial.mapview.symbol.Symbol
clone, getAlpha, getColor, getColorSet, getDefault, getDefault, getDefaultSelectedSymbol, getMaxScale, getMinScale, getRandomColor, getTypeForName, getUnclassified, isActive, isLocked, isStandardVisibility, isVisible, random, setActive, setAlpha, setLocked, setMaxScale, setMinScale, setVisibility, symbolize
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
-
Field Details
-
ARROW_TO
public static final int ARROW_TO- See Also:
- Constant Field Values
-
ARROW_FROM
public static final int ARROW_FROM- See Also:
- Constant Field Values
-
ARROWANGLE
public static double ARROWANGLE -
ARROWWIDTH
public static double ARROWWIDTH -
DEFAULT_MAXSCALE
public static double DEFAULT_MAXSCALE -
defaultSymbol
-
erase
-
selected
-
samples
-
-
Constructor Details
-
LineSymbol
public LineSymbol() -
LineSymbol
-
LineSymbol
-
LineSymbol
-
LineSymbol
-
LineSymbol
public LineSymbol(double minScale, double maxScale, AlphaComposite alpha, Paint paint, BasicStroke stroke, double lineMinScale, double lineMaxScale, AlphaComposite lineAlpha)Deprecated.
-
-
Method Details
-
getType
public int getType() -
clone
-
getRandomSubSymbol
- Specified by:
getRandomSubSymbol
in classSymbolList
-
getDefault
- Specified by:
getDefault
in classSymbolList
-
toString
-
getCustomizer
Description copied from class:Symbol
Get a GUI component that can be used to customize this symbol- Specified by:
getCustomizer
in classSymbol
-
getDefault
-
random
-
unclassified
-
getSamples
- Specified by:
getSamples
in classSymbolList
-
getSimpleLineSymbol
-
getSimpleLinePaint
-
getSimpleLineWidth
public double getSimpleLineWidth() -
isPlainLineSymbol
public boolean isPlainLineSymbol(boolean testColor) -
getColor
Description copied from class:Symbol
Get the color for this symbol. The action that happens depends on the type of symbol:- for a polygon symbol get the fill color, or if null get the outline color
- for a line symbol get the line color
- for a point symbol get the marker color
-
setColor
Description copied from class:Symbol
Set the color for this symbol. The action that happens depends on the type of symbol:- for a polygon symbol set the fill color, or if null set the outline color
- for a line symbol set the line color
- for a point symbol set the marker color
-