org.geotools.styling
Interface GraphicLegend

All Superinterfaces:
Graphic, GraphicLegend
All Known Subinterfaces:
Graphic

public interface GraphicLegend
extends GraphicLegend

Used to represent a Rule (or other construct) in a user interface or legend.

Author:
Jody
Module:
modules/library/api (gt-api.jar)

Method Summary
 AnchorPoint getAnchorPoint()
           
 Displacement getDisplacement()
           
 Expression getOpacity()
           
 Expression getRotation()
           
 Expression getSize()
          The size of the mark if specified.
 List<GraphicalSymbol> graphicalSymbols()
          The items in this list are either a Mark or a ExternalGraphic.
 void setAnchorPoint(AnchorPoint anchor)
           
 void setDisplacement(Displacement displacement)
           
 void setOpacity(Expression opacity)
           
 void setSize(Expression size)
          Indicates the size at which the graphic should be displayed.
 
Methods inherited from interface GraphicLegend
accept
 

Method Detail

getAnchorPoint

AnchorPoint getAnchorPoint()
Specified by:
getAnchorPoint in interface Graphic

setAnchorPoint

void setAnchorPoint(AnchorPoint anchor)

getDisplacement

Displacement getDisplacement()
Specified by:
getDisplacement in interface Graphic

setDisplacement

void setDisplacement(Displacement displacement)

getOpacity

Expression getOpacity()
Specified by:
getOpacity in interface Graphic

setOpacity

void setOpacity(Expression opacity)

getRotation

Expression getRotation()
Specified by:
getRotation in interface Graphic

getSize

Expression getSize()
The size of the mark if specified.

If unspecified:

Specified by:
getSize in interface Graphic

setSize

void setSize(Expression size)
Indicates the size at which the graphic should be displayed.

If this value is null the natural size of the graphic will be used; or for graphics without a natural size like SVG files 16x16 will be used.

Parameters:
size -

graphicalSymbols

List<GraphicalSymbol> graphicalSymbols()
The items in this list are either a Mark or a ExternalGraphic.

This list may be directly edited; the items are considered in order from most preferred (say an SVG file) to least preferred (a simple shape) with the intension that the system will make use of the first entry which it is capabile of displaying.

Specified by:
graphicalSymbols in interface Graphic


Copyright © 1996-2010 Geotools. All Rights Reserved.