/**************************************************************************************************
 **
 ** $Id: DisplayCapabilities.java 831 2006-05-01 00:27:23Z Desruisseaux $
 **
 ** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/go/display/DisplayCapabilities.java $
 **
 ** Copyright (C) 2003-2005 Open GIS Consortium, Inc.
 ** All Rights Reserved. http://www.opengis.org/legal/
 **
 *************************************************************************************************/
package org.opengis.go.display;

import org.opengis.go.display.style.ArrowStyle;
import org.opengis.go.display.style.FillPattern;
import org.opengis.go.display.style.FillStyle;
import org.opengis.go.display.style.GraphicStyle;
import org.opengis.go.display.style.LineCap;
import org.opengis.go.display.style.LineJoin;
import org.opengis.go.display.style.LinePattern;
import org.opengis.go.display.style.LineStyle;
import org.opengis.go.display.style.Mark;
import org.opengis.go.display.style.SymbologyInfo;
import org.opengis.go.display.style.XAnchor;
import org.opengis.go.display.style.YAnchor;

/**
 * Objects implementing the interface DisplayCapabilities provide
 * runtime information about the capabilities of a given implementation.
 *
 * @author OpenGIS® consortium
 * @version $Revision: 658 $, $Date: 2006-02-23 12:09:34 +1100 (jeu., 23 févr. 2006) $
 */
public interface DisplayCapabilities {
    
    /**
     * Returns an array of Class objects for the
     * Canvas interfaces that are supported by a given 
     * implementation. 
     * @return an array of Canvas interfaces
     */
    public Class[] getSupportedCanvases();
    
    /**
     * Returns an array of Class objects for the
     * primitive interfaces that are supported by a given
     * implementation.
     */
    public Class[] getSupportedPrimitives();
    
    /**
     * Returns true if a given implementation supports the given
     * EventManager type.
     */
    public boolean isEventManagerSupported(Class eventManagerClass);
    
    /**
     * Returns true if a given implementation supports drawing
     * primitives in "backlit" mode, using the "isBacklighting" attribute
     * of the GraphicStyle interface.
     */
    public boolean isBacklightingSupported();
    
    /**
     * Returns true if a given implementation will honor the
     * "lineWidth" attribute of the GraphicStyle interface.
     */
    public boolean isLineWidthSupported();
    
    /**
     * Returns true if a given implementation will honor the
     * "lineGap" attribute of the GraphicStyle interface.
     */
    public boolean isLineGapSupported();
    
    /**
     * Returns an array of ArrowStyle objects that
     * indicates the arrow styles that are supported by a given
     * implementation.
     */
    public ArrowStyle[] getSupportedArrowStyles();
    
    /**
     * Returns an array of LineStyle objects that
     * indicates the line styles that are supported by a given
     * implementation.
     */
    public LineStyle[] getSupportedLineStyles();
    
    /**
     * Returns an array of LineJoin objects that indicates the
     * line join styles that are supported by a given implementation.
     */
    public LineJoin[] getSupportedLineJoins();
    
    /**
     * Returns an array of LineCap objects that indicates the
     * line cap styles that are supported by a given implementation.
     */
    public LineCap[] getSupportedLineCaps();
    
    /**
     * Returns true if a given implementation will honor the
     * "dashPattern" attribute of the GraphicStyle interface.
     */
    public boolean isDashPatternSupported();
    
    /**
     * Returns true if a given implementation supports the "blink"
     * attribute of the GraphicStyle interface.
     */
    public boolean isBlinkSupported();
    
    /**
     * Returns an array of FillStyle objects that indicates the
     * fill styles supported by a given implementation.
     */
    public FillStyle[] getSupportedFillStyles();
    
    /**
     * Returns an array of FillPattern objects that
     * indicates the fill patterns that are supported by a given
     * implementation.
     */
    public FillPattern[] getSupportedFillPatterns();
    
    /**
     * Returns an array of Mark objects that
     * indicates the marks that are supported by a given
     * implementation.
     */
    public Mark[] getSupportedMarks();
    
    /**
     * Returns an array of LinePattern objects that
     * indicates the line patterns that are supported by a given
     * implementation.
     */
    public LinePattern[] getSupportedLinePatterns();
    
    /**
     * Returns an array of XAnchor objects that
     * indicates the X anchors that are supported by a given
     * implementation.
     */
    public XAnchor[] getSupportedXAnchors();
    
    /**
     * Returns an array of YAnchor objects that
     * indicates the Y anchors that are supported by a given
     * implementation.
     */
    public YAnchor[] getSupportedYAnchors();
    
    /**
     * Returns true if a given implementation support drawing
     * primitives filled with a gradient as specified by in the
     * GraphicStyle interface.
     */
    public boolean isGradientSupported();
    
    /**
     * Returns an GraphicStyle object, configured to the
     * defaults for the DisplayFactory for this
     * Capabilities instance.
     */
    public GraphicStyle getDefaultGraphicStyle();
    
    /**
     * Returns an array of SymbologyInfo objects
     * that this implementations supports.
     */
    public SymbologyInfo[] getSupportedSymbologies();
     
}


 

Ads help maintain this website.