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


java.lang.Object
   org.geotools.event.AbstractGTComponent
      org.geotools.styling.StrokeImpl

StrokeImpl
public class StrokeImpl extends AbstractGTComponent implements Stroke,Cloneable(Code)
Provides a Java representation of the Stroke object in an SLD document. A stroke defines how a line is rendered.
author:
   James Macgill, CCG
version:
   $Id: StrokeImpl.java 25459 2007-05-08 05:19:25Z jgarnett $



Constructor Summary
protected  StrokeImpl()
    
protected  StrokeImpl(FilterFactory factory)
    

Method Summary
public  voidaccept(StyleVisitor visitor)
    
public  Objectclone()
     Clone the StrokeImpl object.
public  booleanequals(Object oth)
     Compares this stroke with another stroke for equality.
public  ExpressiongetColor()
     This parameter gives the solid color that will be used for a stroke.
The color value is RGB-encoded using two hexidecimal digits per primary-color component in the order Red, Green, Blue, prefixed with the hash (#) sign.
public  java.awt.ColorgetColor(org.geotools.feature.Feature feature)
    
public  float[]getDashArray()
     This parameter encodes the dash pattern as a series of floats.
The first number gives the length in pixels of the dash to draw, the second gives the amount of space to leave, and this pattern repeats.
If an odd number of values is given, then the pattern is expanded by repeating it twice to give an even number of values.
public  ExpressiongetDashOffset()
     This param determines where the dash pattern should start from.
public  GraphicgetGraphicFill()
     This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use. The graphic to use as a stipple fill.
public  GraphicgetGraphicStroke()
     This parameter indicates that a repeated-linear-graphic graphic stroke type will be used and specifies the graphic to use.
public  ExpressiongetLineCap()
     This parameter controls how line strings should be capped. The cap style.
public  ExpressiongetLineJoin()
     This parameter controls how line strings should be joined together. The join style.
public  ExpressiongetOpacity()
     This specifies the level of translucency to use when rendering the stroke.
The value is encoded as a floating-point value between 0.0 and 1.0 with 0.0 representing totally transparent and 1.0 representing totally opaque.
public  ExpressiongetWidth()
     This parameter gives the absolute width (thickness) of a stroke in pixels encoded as a float.
public  inthashCode()
    
public  voidsetColor(Expression color)
     This parameter sets the solid color that will be used for a stroke.
The color value is RGB-encoded using two hexidecimal digits per primary-color component in the order Red, Green, Blue, prefixed with the hash (#) sign.
public  voidsetColor(String color)
     This parameter sets the solid color that will be used for a stroke.
The color value is RGB-encoded using two hexidecimal digits per primary-color component in the order Red, Green, Blue, prefixed with the hash (#) sign.
public  voidsetDashArray(float[] dashPattern)
     This parameter encodes the dash pattern as a series of floats.
The first number gives the length in pixels of the dash to draw, the second gives the amount of space to leave, and this pattern repeats.
If an odd number of values is given, then the pattern is expanded by repeating it twice to give an even number of values.
public  voidsetDashOffset(Expression dashOffset)
     This param determines where the dash pattern should start from.
public  voidsetFilterFactory(FilterFactory factory)
    
public  voidsetGraphicFill(Graphic fillGraphic)
     This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use.
Parameters:
  fillGraphic - The graphic to use as a stipple fill.
public  voidsetGraphicStroke(Graphic strokeGraphic)
     This parameter indicates that a repeated-linear-graphic graphic stroke type will be used and specifies the graphic to use.
public  voidsetLineCap(Expression lineCap)
     This parameter controls how line strings should be capped.
Parameters:
  lineCap - The cap style.
public  voidsetLineJoin(Expression lineJoin)
     This parameter controls how line strings should be joined together.
Parameters:
  lineJoin - The join style.
public  voidsetOpacity(Expression opacity)
     This specifies the level of translucency to use when rendering the stroke.
The value is encoded as a floating-point value between 0.0 and 1.0 with 0.0 representing totally transparent and 1.0 representing totally opaque.
public  voidsetWidth(Expression width)
     This parameter sets the absolute width (thickness) of a stroke in pixels encoded as a float.
public  StringtoString()
    


Constructor Detail
StrokeImpl
protected StrokeImpl()(Code)
Creates a new instance of Stroke



StrokeImpl
protected StrokeImpl(FilterFactory factory)(Code)




Method Detail
accept
public void accept(StyleVisitor visitor)(Code)



clone
public Object clone()(Code)
Clone the StrokeImpl object.

The clone is a deep copy of the original, except for the expression values which are immutable.


See Also:   org.geotools.styling.Stroke.clone



equals
public boolean equals(Object oth)(Code)
Compares this stroke with another stroke for equality.
Parameters:
  oth - The other StrokeImpl to compare True if this and oth are equal.



getColor
public Expression getColor()(Code)
This parameter gives the solid color that will be used for a stroke.
The color value is RGB-encoded using two hexidecimal digits per primary-color component in the order Red, Green, Blue, prefixed with the hash (#) sign. The hexidecimal digits between A and F may be in either upper or lower case. For example, full red is encoded as "#ff0000" (with no quotation marks). The default color is defined to be black ("#000000"). Note: in CSS this parameter is just called Stroke and not Color. The color of the stroke encoded as a hexidecimal RGB value.



getColor
public java.awt.Color getColor(org.geotools.feature.Feature feature)(Code)



getDashArray
public float[] getDashArray()(Code)
This parameter encodes the dash pattern as a series of floats.
The first number gives the length in pixels of the dash to draw, the second gives the amount of space to leave, and this pattern repeats.
If an odd number of values is given, then the pattern is expanded by repeating it twice to give an even number of values. The default is to draw an unbroken line.
For example, "2 1 3 2" would produce:
-- ---  -- ---  --  ---  -- ---  -- ---  -- The dash pattern as an array of float values in the form"dashlength gaplength ..."



getDashOffset
public Expression getDashOffset()(Code)
This param determines where the dash pattern should start from. where the dash should start from.



getGraphicFill
public Graphic getGraphicFill()(Code)
This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use. The graphic to use as a stipple fill. If null, then no Stipplefill should be used.



getGraphicStroke
public Graphic getGraphicStroke()(Code)
This parameter indicates that a repeated-linear-graphic graphic stroke type will be used and specifies the graphic to use. Proper stroking with a linear graphic requires two "hot-spot" points within the space of the graphic to indicate where the rendering line starts and stops. In the case of raster images with no special mark-up, this line will be assumed to be the middle pixel row of the image, starting from the first pixel column and ending at the last pixel column. The graphic to use as a linear graphic. If null, then no graphicstroke should be used.



getLineCap
public Expression getLineCap()(Code)
This parameter controls how line strings should be capped. The cap style. This will be one of "butt", "round" and "square"There is no defined default.



getLineJoin
public Expression getLineJoin()(Code)
This parameter controls how line strings should be joined together. The join style. This will be one of "mitre", "round" and"bevel". There is no defined default.



getOpacity
public Expression getOpacity()(Code)
This specifies the level of translucency to use when rendering the stroke.
The value is encoded as a floating-point value between 0.0 and 1.0 with 0.0 representing totally transparent and 1.0 representing totally opaque. A linear scale of translucency is used for intermediate values.
For example, "0.65" would represent 65% opacity. The default value is 1.0 (opaque). The opacity of the stroke, where 0.0 is completely transparentand 1.0 is completely opaque.



getWidth
public Expression getWidth()(Code)
This parameter gives the absolute width (thickness) of a stroke in pixels encoded as a float. The default is 1.0. Fractional numbers are allowed but negative numbers are not. The width of the stroke in pixels. This may be fractional butnot negative.



hashCode
public int hashCode()(Code)



setColor
public void setColor(Expression color)(Code)
This parameter sets the solid color that will be used for a stroke.
The color value is RGB-encoded using two hexidecimal digits per primary-color component in the order Red, Green, Blue, prefixed with the hash (#) sign. The hexidecimal digits between A and F may be in either upper or lower case. For example, full red is encoded as "#ff0000" (with no quotation marks). The default color is defined to be black ("#000000"). Note: in CSS this parameter is just called Stroke and not Color.
Parameters:
  color - The color of the stroke encoded as a hexidecimal RGB value.This must not be null.
throws:
  IllegalArgumentException - DOCUMENT ME!



setColor
public void setColor(String color)(Code)
This parameter sets the solid color that will be used for a stroke.
The color value is RGB-encoded using two hexidecimal digits per primary-color component in the order Red, Green, Blue, prefixed with the hash (#) sign. The hexidecimal digits between A and F may be in either upper or lower case. For example, full red is encoded as "#ff0000" (with no quotation marks). The default color is defined to be black ("#000000"). Note: in CSS this parameter is just called Stroke and not Color.
Parameters:
  color - The color of the stroke encoded as a hexidecimal RGB value.



setDashArray
public void setDashArray(float[] dashPattern)(Code)
This parameter encodes the dash pattern as a series of floats.
The first number gives the length in pixels of the dash to draw, the second gives the amount of space to leave, and this pattern repeats.
If an odd number of values is given, then the pattern is expanded by repeating it twice to give an even number of values. The default is to draw an unbroken line.
For example, "2 1 3 2" would produce:
-- ---  -- ---   -- ---  -- ---  --  ---  --
Parameters:
  dashPattern - The dash pattern as an array of float values in theform "dashlength gaplength ..."



setDashOffset
public void setDashOffset(Expression dashOffset)(Code)
This param determines where the dash pattern should start from.
Parameters:
  dashOffset - The distance into the dash pattern that should act asthe start.



setFilterFactory
public void setFilterFactory(FilterFactory factory)(Code)



setGraphicFill
public void setGraphicFill(Graphic fillGraphic)(Code)
This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use.
Parameters:
  fillGraphic - The graphic to use as a stipple fill. If null, thenno Stipple fill should be used.



setGraphicStroke
public void setGraphicStroke(Graphic strokeGraphic)(Code)
This parameter indicates that a repeated-linear-graphic graphic stroke type will be used and specifies the graphic to use. Proper stroking with a linear graphic requires two "hot-spot" points within the space of the graphic to indicate where the rendering line starts and stops. In the case of raster images with no special mark-up, this line will be assumed to be the middle pixel row of the image, starting from the first pixel column and ending at the last pixel column.
Parameters:
  strokeGraphic - The graphic to use as a linear graphic. If null,then no graphic stroke should be used.



setLineCap
public void setLineCap(Expression lineCap)(Code)
This parameter controls how line strings should be capped.
Parameters:
  lineCap - The cap style. This can be one of "butt", "round" and"square" There is no defined default.



setLineJoin
public void setLineJoin(Expression lineJoin)(Code)
This parameter controls how line strings should be joined together.
Parameters:
  lineJoin - The join style. This will be one of "mitre", "round"and "bevel". There is no defined default.



setOpacity
public void setOpacity(Expression opacity)(Code)
This specifies the level of translucency to use when rendering the stroke.
The value is encoded as a floating-point value between 0.0 and 1.0 with 0.0 representing totally transparent and 1.0 representing totally opaque. A linear scale of translucency is used for intermediate values.
For example, "0.65" would represent 65% opacity. The default value is 1.0 (opaque).
Parameters:
  opacity - The opacity of the stroke, where 0.0 is completelytransparent and 1.0 is completely opaque.



setWidth
public void setWidth(Expression width)(Code)
This parameter sets the absolute width (thickness) of a stroke in pixels encoded as a float. The default is 1.0. Fractional numbers are allowed but negative numbers are not.
Parameters:
  width - The width of the stroke in pixels. This may be fractionalbut not negative.



toString
public String toString()(Code)



Fields inherited from org.geotools.event.AbstractGTComponent
protected GTNote notification(Code)(Java Doc)

Methods inherited from org.geotools.event.AbstractGTComponent
public void changed(GTDelta childDelta)(Code)(Java Doc)
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
protected void fireChanged()(Code)(Java Doc)
protected synchronized void fireChildChanged(String name, Object child, Object oldValue)(Code)(Java Doc)
public GTNote getNote()(Code)(Java Doc)
public GTComponent getParent()(Code)(Java Doc)
public void removed(GTDelta childDelta)(Code)(Java Doc)
public void setNote(GTNote container)(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.