Java Doc for TextStyle2D.java in  » GIS » GeoTools-2.4.1 » org » geotools » renderer » style » 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 » GeoTools 2.4.1 » org.geotools.renderer.style 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.renderer.style.Style
      org.geotools.renderer.style.Style2D
         org.geotools.renderer.style.TextStyle2D

TextStyle2D
public class TextStyle2D extends Style2D (Code)
DJB: This class was fundamentally wrong - it tried to convert into . Not only was it doing a really crappy job, but its fundamentally the wrong place to do it. The SLD spec defines a as: and as: its annotated as: A "PerpendicularOffset" gives the perpendicular distance away from a line to draw a label. which is a bit vague, but there's a little more details here: The PerpendicularOffset element of a LinePlacement gives the perpendicular distance away from a line to draw a label. ... The distance is in pixels and is positive to the left-hand. Left hand/right hand for perpendicularOffset is just crap - I'm assuming them mean +ive --> "up" and -ive --> "down". See the actual label code for how it deals with this. I've removed all the absoluteLineDisplacement stuff and replaced it with isPointPlacement() (true) --> render normally (PointPlacement Attributes) isPointPlacement() (false) --> render LinePlacement This replaces the old behavior which converted a LinePlacement -> pointplacement and set the absoluteLineDisplacement flag!


Field Summary
 doubleanchorX
    
 doubleanchorY
    
 doubledisplacementX
    
 doubledisplacementY
    
 Fontfont
    
 Style2Dgraphic
    
 CompositehaloComposite
    
 PainthaloFill
    
 floathaloRadius
    
 ShapehaloShape
    
 Stringlabel
    
 intperpendicularOffset
    
 booleanpointPlacement
    
 doublerotation
    
 GlyphVectortextGlyphVector
    


Method Summary
public  doublegetAnchorX()
    
public  doublegetAnchorY()
    
public  CompositegetComposite()
     Getter for property composite.
public  doublegetDisplacementX()
    
public  doublegetDisplacementY()
    
public  PaintgetFill()
     Getter for property fill.
public  FontgetFont()
    
public  Style2DgetGraphic()
    
public  RectanglegetGraphicDimensions()
    
public  CompositegetHaloComposite()
    
public  PaintgetHaloFill()
    
public  floatgetHaloRadius()
    
public  ShapegetHaloShape(Graphics2D graphics)
    
public  StringgetLabel()
    
public  intgetPerpendicularOffset()
     only valid for a isPointPlacement=false (ie.
public  doublegetRotation()
    
public  GlyphVectorgetTextGlyphVector(Graphics2D graphics)
    
public  booleanisPointPlacement()
    
public  voidsetAnchorX(double f)
    
public  voidsetAnchorY(double f)
    
public  voidsetComposite(Composite composite)
     Setter for property composite.
public  voidsetDisplacementX(double displacementX)
    
public  voidsetDisplacementY(double displacementY)
    
public  voidsetFill(Paint fill)
     Setter for property fill.
public  voidsetFont(Font font)
    
public  voidsetGraphic(Style2D s)
    
public  voidsetHaloComposite(Composite composite)
    
public  voidsetHaloFill(Paint paint)
    
public  voidsetHaloRadius(float f)
    
public  voidsetLabel(String label)
    
public  voidsetPerpendicularOffset(int displace)
     only valid for a isPointPlacement=false (ie.
public  voidsetPointPlacement(boolean pointPlacement)
    
public  voidsetRotation(double f)
    
public  StringtoString()
     Returns a string representation of this style.

Field Detail
anchorX
double anchorX(Code)



anchorY
double anchorY(Code)



displacementX
double displacementX(Code)



displacementY
double displacementY(Code)



font
Font font(Code)



graphic
Style2D graphic(Code)



haloComposite
Composite haloComposite(Code)



haloFill
Paint haloFill(Code)



haloRadius
float haloRadius(Code)



haloShape
Shape haloShape(Code)



label
String label(Code)



perpendicularOffset
int perpendicularOffset(Code)



pointPlacement
boolean pointPlacement(Code)
yes = no = default = yes*



rotation
double rotation(Code)



textGlyphVector
GlyphVector textGlyphVector(Code)





Method Detail
getAnchorX
public double getAnchorX()(Code)



getAnchorY
public double getAnchorY()(Code)



getComposite
public Composite getComposite()(Code)
Getter for property composite. Value of property composite.



getDisplacementX
public double getDisplacementX()(Code)
Returns the displacementX.



getDisplacementY
public double getDisplacementY()(Code)
Returns the displacementY.



getFill
public Paint getFill()(Code)
Getter for property fill. Value of property fill.



getFont
public Font getFont()(Code)



getGraphic
public Style2D getGraphic()(Code)
gets the Style2D to be drawn underneath this text



getGraphicDimensions
public Rectangle getGraphicDimensions()(Code)



getHaloComposite
public Composite getHaloComposite()(Code)



getHaloFill
public Paint getHaloFill()(Code)



getHaloRadius
public float getHaloRadius()(Code)



getHaloShape
public Shape getHaloShape(Graphics2D graphics)(Code)



getLabel
public String getLabel()(Code)
Returns the label.



getPerpendicularOffset
public int getPerpendicularOffset()(Code)
only valid for a isPointPlacement=false (ie. a lineplacement) displacement in pixels



getRotation
public double getRotation()(Code)



getTextGlyphVector
public GlyphVector getTextGlyphVector(Graphics2D graphics)(Code)
recompute each time



isPointPlacement
public boolean isPointPlacement()(Code)
Returns the pointPlacement (true => point placement, false => line placement)



setAnchorX
public void setAnchorX(double f)(Code)

Parameters:
  f -



setAnchorY
public void setAnchorY(double f)(Code)

Parameters:
  f -



setComposite
public void setComposite(Composite composite)(Code)
Setter for property composite.
Parameters:
  composite - New value of property composite.



setDisplacementX
public void setDisplacementX(double displacementX)(Code)

Parameters:
  displacementX - The displacementX to set.



setDisplacementY
public void setDisplacementY(double displacementY)(Code)

Parameters:
  displacementY - The displacementY to set.



setFill
public void setFill(Paint fill)(Code)
Setter for property fill.
Parameters:
  fill - New value of property fill.



setFont
public void setFont(Font font)(Code)

Parameters:
  font -



setGraphic
public void setGraphic(Style2D s)(Code)
Sets the style2D to be drawn underneath this text



setHaloComposite
public void setHaloComposite(Composite composite)(Code)

Parameters:
  composite -



setHaloFill
public void setHaloFill(Paint paint)(Code)

Parameters:
  paint -



setHaloRadius
public void setHaloRadius(float f)(Code)

Parameters:
  f -



setLabel
public void setLabel(String label)(Code)

Parameters:
  label - The label to set.



setPerpendicularOffset
public void setPerpendicularOffset(int displace)(Code)
only valid for a isPointPlacement=false (ie. a lineplacement)
Parameters:
  displace - in pixels



setPointPlacement
public void setPointPlacement(boolean pointPlacement)(Code)

Parameters:
  pointPlacement - (true => point placement, false => line placement.)



setRotation
public void setRotation(double f)(Code)

Parameters:
  f -



toString
public String toString()(Code)
Returns a string representation of this style.




Fields inherited from org.geotools.renderer.style.Style
protected double maxScale(Code)(Java Doc)
protected double minScale(Code)(Java Doc)

Methods inherited from org.geotools.renderer.style.Style
public double getMaxScale()(Code)(Java Doc)
public double getMinScale()(Code)(Java Doc)
public boolean isScaleInRange(double scale)(Code)(Java Doc)
public void setMinMaxScale(double minScale, double maxScale)(Code)(Java Doc)

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.