Java Doc for Drawing.java in  » GIS » udig-1.1 » net » refractions » udig » ui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » udig 1.1 » net.refractions.udig.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.refractions.udig.ui.Drawing

Drawing
final public class Drawing (Code)
Drawing utitlity package - make your own previes and glyphs!
author:
   jones
since:
   0.6.0


Field Summary
static  FeatureTypelineSchema
    
static  FeatureTypemultilineSchema
    
static  FeatureTypemultipointSchema
    
static  FeatureTypemultipolygonSchema
    
static  FeatureTypepointSchema
    
static  FeatureTypepolygonSchema
    


Method Summary
public static  Drawingcreate()
     Retrieve the default Drawing implementation.
public static  ViewportGraphicscreateGraphics(GC gc, Display display, Dimension displaySize)
     Creates a ViewportGraphics object based backed by SWT.
public static  ViewportGraphicscreateGraphics(Graphics2D graphics)
     Creates a ViewportGraphics object based backed by SWT.
public  voiddrawDirect(Image image, Display display, Feature feature, Style style)
     Used to draw a freature directly onto the provided image.
public  voiddrawDirect(Image image, Display display, Feature feature, Rule rule)
    
public  voiddrawFeature(ViewportGraphics graphics, Feature feature, AffineTransform worldToScreenTransform, boolean drawVertices, MathTransform mt)
    
public  voiddrawFeature(ViewportGraphics graphics, Feature feature, AffineTransform worldToScreenTransform)
    
public  voiddrawFeature(ViewportGraphics graphics, Feature feature, AffineTransform worldToScreenTransform, Style style)
    
public  voiddrawFeature(ViewportGraphics graphics, Feature feature, Style style, AffineTransform worldToScreenTransform)
    
public  voiddrawFeature(ViewportGraphics graphics, Feature feature, AffineTransform worldToScreenTransform, boolean drawVertices, Symbolizer[] symbs, MathTransform mt)
    
public  voiddrawFeature(ViewportGraphics graphics, Feature feature, AffineTransform worldToScreenTransform, boolean drawVertices, Symbolizer symbolizer, MathTransform mathTransform, LiteShape shape)
    
public  Featurefeature(Geometry geom)
     Just a convinient method to create feature from geometry.
public  Featurefeature(Point point)
     Simple feature with one attribute called "point".
public  Featurefeature(LineString line)
     Simple Feature with a default geometry and no attribtues.
public  Featurefeature(Polygon polygon)
     Simple Feature with a default geometry and no attribtues.
public  Featurefeature(MultiPoint multipoint)
     Simple Feature with a default geometry and no attribtues.
public  Featurefeature(MultiLineString multilinestring)
     Simple Feature with a default geometry and no attribtues.
public  Featurefeature(MultiPolygon multipolygon)
     Simple Feature with a default geometry and no attribtues.
 Symbolizer[]getSymbolizers(Style style)
    
 Symbolizer[]getSymbolizers(Rule rule)
    
public static  Symbolizer[]getSymbolizers(Feature feature)
    
public static  Symbolizer[]getSymbolizers(Class<? extends Geometry> type, Color baseColor)
    
public static  Symbolizer[]getSymbolizers(Class<? extends Geometry> type, Color baseColor, boolean useTransparency)
    
public  LineStringline(int[] xy)
    
public  MultiLineStringlines(int[][] xy)
    
public  Pointpoint(int x, int y)
    
public  Polygonpolygon(int[] xy)
     Convience constructor for GeometryFactory.createPolygon.

The provided xy ordinates are turned into a linear rings.


Parameters:
  xy - Two dimensional ordiantes.
public  Polygonpolygon(int[] xy, int[] holes)
     Convience constructor for GeometryFactory.createPolygon.

The provided xy and holes are turned into linear rings.


Parameters:
  xy - Two dimensional ordiantes.
Parameters:
  holes - Holes in polygon or null.
public  LinearRingring(int[] xy)
     Convience constructor for GeometryFactory.createLinearRing.
Parameters:
  xy - Two dimensional ordiantes.
public  FeatureTypeschema(String name, String spec)
     Create a FeatureType schema using a type short hand.
public  java.awt.PointworldToPixel(Coordinate coord, AffineTransform worldToScreenTransform)
    
public static  AffineTransformworldToScreenTransform(Envelope mapExtent, Rectangle screenSize)
     TODO summary sentence for worldToScreenTransform ...

Field Detail
lineSchema
static FeatureType lineSchema(Code)



multilineSchema
static FeatureType multilineSchema(Code)



multipointSchema
static FeatureType multipointSchema(Code)



multipolygonSchema
static FeatureType multipolygonSchema(Code)



pointSchema
static FeatureType pointSchema(Code)



polygonSchema
static FeatureType polygonSchema(Code)





Method Detail
create
public static Drawing create()(Code)
Retrieve the default Drawing implementation. Drawing ready for use



createGraphics
public static ViewportGraphics createGraphics(GC gc, Display display, Dimension displaySize)(Code)
Creates a ViewportGraphics object based backed by SWT.

REMEMBER to dispose of graphics.
Parameters:
  gc - A SWT GC object that the ViewportGraphics object will draw on.
Parameters:
  display - The display object that will be used to create new
Parameters:
  displaySize - Wrapper around a normal SWT Image




createGraphics
public static ViewportGraphics createGraphics(Graphics2D graphics)(Code)
Creates a ViewportGraphics object based backed by SWT.
Parameters:
  graphics - Wrapper allowing system to draw onto j2d images



drawDirect
public void drawDirect(Image image, Display display, Feature feature, Style style)(Code)
Used to draw a freature directly onto the provided image.

Feature coordintes are in the same coordinates as the image.

You may call this method multiple times to draw several features onto the same Image (say for glyph creation).


Parameters:
  image - Image to render on to
Parameters:
  display - Needed to create Colors for image
Parameters:
  feature - Feature to be rendered
Parameters:
  style - Style to render feature with



drawDirect
public void drawDirect(Image image, Display display, Feature feature, Rule rule)(Code)



drawFeature
public void drawFeature(ViewportGraphics graphics, Feature feature, AffineTransform worldToScreenTransform, boolean drawVertices, MathTransform mt)(Code)



drawFeature
public void drawFeature(ViewportGraphics graphics, Feature feature, AffineTransform worldToScreenTransform)(Code)



drawFeature
public void drawFeature(ViewportGraphics graphics, Feature feature, AffineTransform worldToScreenTransform, Style style)(Code)



drawFeature
public void drawFeature(ViewportGraphics graphics, Feature feature, Style style, AffineTransform worldToScreenTransform)(Code)



drawFeature
public void drawFeature(ViewportGraphics graphics, Feature feature, AffineTransform worldToScreenTransform, boolean drawVertices, Symbolizer[] symbs, MathTransform mt)(Code)



drawFeature
public void drawFeature(ViewportGraphics graphics, Feature feature, AffineTransform worldToScreenTransform, boolean drawVertices, Symbolizer symbolizer, MathTransform mathTransform, LiteShape shape)(Code)



feature
public Feature feature(Geometry geom)(Code)
Just a convinient method to create feature from geometry.
Parameters:
  geom - the geometry to create feature from feature instance



feature
public Feature feature(Point point)(Code)
Simple feature with one attribute called "point".
Parameters:
  point - Feature with a default geometry and no attribtues



feature
public Feature feature(LineString line)(Code)
Simple Feature with a default geometry and no attribtues.
Parameters:
  line - Feature with a default geometry and no attribtues



feature
public Feature feature(Polygon polygon)(Code)
Simple Feature with a default geometry and no attribtues.
Parameters:
  polygon - Feature with a default geometry and no attribtues



feature
public Feature feature(MultiPoint multipoint)(Code)
Simple Feature with a default geometry and no attribtues.
Parameters:
  multipoint - Feature with a default geometry and no attribtues



feature
public Feature feature(MultiLineString multilinestring)(Code)
Simple Feature with a default geometry and no attribtues.
Parameters:
  multilinestring - Feature with a default geometry and no attribtues



feature
public Feature feature(MultiPolygon multipolygon)(Code)
Simple Feature with a default geometry and no attribtues.
Parameters:
  multipolygon - Feature with a default geometry and no attribtues



getSymbolizers
Symbolizer[] getSymbolizers(Style style)(Code)



getSymbolizers
Symbolizer[] getSymbolizers(Rule rule)(Code)



getSymbolizers
public static Symbolizer[] getSymbolizers(Feature feature)(Code)



getSymbolizers
public static Symbolizer[] getSymbolizers(Class<? extends Geometry> type, Color baseColor)(Code)



getSymbolizers
public static Symbolizer[] getSymbolizers(Class<? extends Geometry> type, Color baseColor, boolean useTransparency)(Code)



line
public LineString line(int[] xy)(Code)
Generate LineStrings from two dimensional ordinates
Parameters:
  xy - LineStirng



lines
public MultiLineString lines(int[][] xy)(Code)
Generate a MultiLineString from two dimensional ordinates
Parameters:
  xy - MultiLineStirng



point
public Point point(int x, int y)(Code)
Generate Point from two dimensional ordinates
Parameters:
  x -
Parameters:
  y - Point



polygon
public Polygon polygon(int[] xy)(Code)
Convience constructor for GeometryFactory.createPolygon.

The provided xy ordinates are turned into a linear rings.


Parameters:
  xy - Two dimensional ordiantes. Polygon



polygon
public Polygon polygon(int[] xy, int[] holes)(Code)
Convience constructor for GeometryFactory.createPolygon.

The provided xy and holes are turned into linear rings.


Parameters:
  xy - Two dimensional ordiantes.
Parameters:
  holes - Holes in polygon or null. Polygon



ring
public LinearRing ring(int[] xy)(Code)
Convience constructor for GeometryFactory.createLinearRing.
Parameters:
  xy - Two dimensional ordiantes. LinearRing for use with polygon



schema
public FeatureType schema(String name, String spec)(Code)
Create a FeatureType schema using a type short hand.

Code Example:


 new Drawing().schema("namespace.typename", "id:0,*geom:LineString,name:String,*centroid:Point");
 
  • FeatureType with identifier "namespace.typename"
  • Default Geometry "geom" of type LineStirng indicated with a "*"
  • Three attributes: id of type Integer, name of type String and centroid of type Point


Parameters:
  name - namespace.name
Parameters:
  spec - Generated FeatureType



worldToPixel
public java.awt.Point worldToPixel(Coordinate coord, AffineTransform worldToScreenTransform)(Code)



worldToScreenTransform
public static AffineTransform worldToScreenTransform(Envelope mapExtent, Rectangle screenSize)(Code)
TODO summary sentence for worldToScreenTransform ...
Parameters:
  bounds -
Parameters:
  rectangle -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.