org.opengis.go.display
Interface DisplayFactory
-
public interface DisplayFactoryDisplayFactorydefines a common abstraction for creating the different kinds of display objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description CanvascreateCanvas(java.util.Properties canvasProperties)Creates a newCanvasobject that is returned embedded in a window, as determined by the GO-1 implementation.CanvascreateCanvas(java.util.Properties canvasProperties, java.awt.Container container)Creates a newCanvasobject that is embedded in the givenContainer.GraphiccreateGraphic(java.lang.Class implementsGraphic)Creates a newGraphic.GraphicStylecreateGraphicStyle(java.lang.Class implementsGraphicStyle)Creates a newGraphicStyle.CanvasgetCanvas(java.lang.String uid)Gets an existingCanvasobject by UID, or null if noCanvasexists for the given UID.DisplayCapabilitiesgetCapabilities()Returns an object that represents the capabilities of this Display factory and its associated canvas.
-
-
-
Method Detail
-
createGraphic
Graphic createGraphic(java.lang.Class implementsGraphic)
Creates a newGraphic.- Parameters:
implementsGraphic- TheClassof a Graphic primitive interface (such asGraphicArc.class). Throws anIllegalArgumentExceptionif theimplementsGraphicdoes not match any Graphic primitive interface that this factory supports.- Returns:
- the newly created
Graphic.
-
createGraphicStyle
GraphicStyle createGraphicStyle(java.lang.Class implementsGraphicStyle)
Creates a newGraphicStyle. Implementations of DisplayFactory are expected to support all four subclasses of GraphicStyle.- Parameters:
implementsGraphicStyle- TheClassof a GraphicStyle interface (such asTextSymbolizer.class). Throws anIllegalArgumentExceptionif theimplementsGraphicStyledoes not match any GraphicStyle interface.- Returns:
- the newly created
GraphicStyle.
-
getCapabilities
DisplayCapabilities getCapabilities()
Returns an object that represents the capabilities of this Display factory and its associated canvas.
-
createCanvas
Canvas createCanvas(java.util.Properties canvasProperties, java.awt.Container container)
Creates a newCanvasobject that is embedded in the givenContainer.If the GO-1 implementation has multiple types of
Canvasimplementations, then theCanvasobject that best fits the givenPropertiesis the object returned. The criteria for "best fit" are left up to the particular GO-1 implementation.The
Canvasrendering takes up the full extent of theContainerdisplay space. It is assumed that theContainerwill be embedded by a user program in another user interface.- Parameters:
canvasProperties-Propertiesthat can be used to determine whichCanvasimplementation to use.container- thejava.awt.Containerto place theCanvasin.- Returns:
- the newly-created Canvas.
-
createCanvas
Canvas createCanvas(java.util.Properties canvasProperties)
Creates a newCanvasobject that is returned embedded in a window, as determined by the GO-1 implementation. For example, it could create a new top level frame window. The implementor may include all of its standard user interface components.If the GO-1 implementation has multiple types of
Canvasimplementations, then theCanvasobject that best fits the givenPropertiesis the object returned. The criteria for "best fit" are left up to the particular GO-1 implementation.- Parameters:
canvasProperties-Propertiesthat can be used to determine whichCanvasimplementation to use.
-
getCanvas
Canvas getCanvas(java.lang.String uid)
Gets an existingCanvasobject by UID, or null if noCanvasexists for the given UID.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG