Interface IMultiLayerSymbol
- All Superinterfaces:
Cloneable,org.gvsig.tools.lang.Cloneable,IPrintable,ISymbol,org.gvsig.tools.persistence.Persistent
Allows to create multi layer symbols using the composition of
several symbols of the same type.Depending on the type of the symbols that are
used to compose the final symbol, the user will have MultiLayerMarkerSymbol,
MultiLayerLineSymbol,...
-
Field Summary
Fields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
SELECTION_COLOR -
Method Summary
Modifier and TypeMethodDescriptionvoidStacks a new symbol to the symbol list.voidStacks a new symbol to the symbol list.getLayer(int layerIndex) Obtains the symbol that "contains" a layer whose index is the argument of the method.intReturns the number of layersbooleanremoveLayer(ISymbol layer) TODO maybe push it up to ISymbolvoidEstablishes a concret symbol for a layervoidswapLayers(int index1, int index2) Changes the position of two layers in a multilayersymbolMethods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable
printMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
draw, draw, drawInsideRectangle, getColor, getDescription, getFeature, getID, getSymbolForSelection, getSymbolForSelection, getSymbolType, isShapeVisible, isSuitableFor, setColor, setDescription, setFeature, setIDMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Method Details
-
setLayer
Establishes a concret symbol for a layer- Parameters:
index- , index of the layerlayer- , symbol to be "applied" to the layer- Throws:
IndexOutOfBoundsException
-
swapLayers
void swapLayers(int index1, int index2) Changes the position of two layers in a multilayersymbol- Parameters:
index1- , index of the layerindex2- , index of the layer
-
getLayer
Obtains the symbol that "contains" a layer whose index is the argument of the method.- Parameters:
layerIndex-- Returns:
-
getLayerCount
int getLayerCount()Returns the number of layers- Returns:
- int
-
addLayer
Stacks a new symbol to the symbol list. The symbol is appended to the list and, in terms of use, it will be the last symbol to be processed.- Parameters:
ISymbol- newLayer
-
addLayer
Stacks a new symbol to the symbol list. The symbol is appended to the list in the specified position.- Parameters:
ISymbol- newLayer- Throws:
IndexOutOfBoundsException
-
removeLayer
TODO maybe push it up to ISymbol- Parameters:
layer-- Returns:
- true if this symbol contains the removed one
-