Java Doc for PaintServer.java in  » Graphic-Library » batik » org » apache » batik » bridge » 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 » Graphic Library » batik » org.apache.batik.bridge 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.batik.bridge.PaintServer

PaintServer
abstract public class PaintServer implements SVGConstants,CSSConstants,ErrorConstants(Code)
A collection of utility methods to deliver java.awt.Paint, java.awt.Stroke objects that could be used to paint a shape. This class also provides additional methods the deliver SVG Paint using the ShapePainter interface.
author:
   Thierry Kormann
version:
   $Id: PaintServer.java 498740 2007-01-22 18:35:57Z dvholten $



Constructor Summary
protected  PaintServer()
     No instance of this class is required.

Method Summary
public static  ColorconvertColor(Value c, float opacity)
     Converts the given Value and opacity to a Color object.
public static  ShapePainterconvertFillAndStroke(Element e, ShapeNode node, BridgeContext ctx)
     Returns a ShapePainter defined on the specified element and for the specified shape node, and using the specified bridge context.
public static  PaintconvertFillPaint(Element filledElement, GraphicsNode filledNode, BridgeContext ctx)
     Converts for the specified element, its fill paint properties to a Paint object.
public static  ColorconvertICCColor(Element e, ICCColor c, float opacity, BridgeContext ctx)
     Returns a Color object that corresponds to the input Paint's ICC color value or null if the related color profile could not be used or loaded for any reason.
public static  MarkerconvertMarker(Element e, Value v, BridgeContext ctx)
     Returns a Marker defined on the specified element by the specified value, and for the specified shape node.
public static  ShapePainterconvertMarkers(Element e, ShapeNode node, BridgeContext ctx)
     Returns a ShapePainter defined on the specified element and for the specified shape node.
public static  floatconvertOpacity(Value v)
     Returns the opacity represented by the specified CSSValue.
public static  PaintconvertPaint(Element paintedElement, GraphicsNode paintedNode, Value paintDef, float opacity, BridgeContext ctx)
     Converts a Paint definition to a concrete java.awt.Paint instance according to the specified parameters.
public static  ColorconvertRGBICCColor(Element paintedElement, Value colorDef, ICCColor iccColor, float opacity, BridgeContext ctx)
     Returns a Color object that corresponds to the input Paint's ICC color value or an RGB color if the related color profile could not be used or loaded for any reason.
public static  StrokeconvertStroke(Element e)
     Converts a Stroke object defined on the specified element.
public static  float[]convertStrokeDasharray(Value v)
     Converts the 'stroke-dasharray' property to a list of float number in user units.
public static  intconvertStrokeLinecap(Value v)
     Converts the 'linecap' property to the appropriate BasicStroke constant.
public static  intconvertStrokeLinejoin(Value v)
     Converts the 'linejoin' property to the appropriate BasicStroke constant.
public static  floatconvertStrokeMiterlimit(Value v)
     Converts the 'miterlimit' property to the appropriate float number.
public static  PaintconvertStrokePaint(Element strokedElement, GraphicsNode strokedNode, BridgeContext ctx)
     Converts for the specified element, its stroke paint properties to a Paint object.
public static  ShapePainterconvertStrokePainter(Element e, ShapeNode node, BridgeContext ctx)
    
public static  PaintconvertURIPaint(Element paintedElement, GraphicsNode paintedNode, Value paintDef, float opacity, BridgeContext ctx)
     Converts a Paint specified as a URI.
public static  intresolveColorComponent(Value v)
     Returns the value of one color component (0 <= result <= 255).
public static  PaintsilentConvertURIPaint(Element paintedElement, GraphicsNode paintedNode, Value paintDef, float opacity, BridgeContext ctx)
     Converts a Paint specified by URI without sending any error.


Constructor Detail
PaintServer
protected PaintServer()(Code)
No instance of this class is required.




Method Detail
convertColor
public static Color convertColor(Value c, float opacity)(Code)
Converts the given Value and opacity to a Color object.
Parameters:
  c - The CSS color to convert.
Parameters:
  opacity - The opacity value (0 <= o <= 1).



convertFillAndStroke
public static ShapePainter convertFillAndStroke(Element e, ShapeNode node, BridgeContext ctx)(Code)
Returns a ShapePainter defined on the specified element and for the specified shape node, and using the specified bridge context.
Parameters:
  e - the element interested in a shape painter
Parameters:
  node - the shape node
Parameters:
  ctx - the bridge context



convertFillPaint
public static Paint convertFillPaint(Element filledElement, GraphicsNode filledNode, BridgeContext ctx)(Code)
Converts for the specified element, its fill paint properties to a Paint object.
Parameters:
  filledElement - the element interested in a Paint
Parameters:
  filledNode - the graphics node to fill
Parameters:
  ctx - the bridge context



convertICCColor
public static Color convertICCColor(Element e, ICCColor c, float opacity, BridgeContext ctx)(Code)
Returns a Color object that corresponds to the input Paint's ICC color value or null if the related color profile could not be used or loaded for any reason.
Parameters:
  e - the element using the color
Parameters:
  c - the ICC color definition
Parameters:
  opacity - the opacity
Parameters:
  ctx - the bridge context to use



convertMarker
public static Marker convertMarker(Element e, Value v, BridgeContext ctx)(Code)
Returns a Marker defined on the specified element by the specified value, and for the specified shape node.
Parameters:
  e - the painted element
Parameters:
  v - the CSS value describing the marker to construct
Parameters:
  ctx - the bridge context



convertMarkers
public static ShapePainter convertMarkers(Element e, ShapeNode node, BridgeContext ctx)(Code)
Returns a ShapePainter defined on the specified element and for the specified shape node.
Parameters:
  e - the element with the marker CSS properties
Parameters:
  node - the shape node
Parameters:
  ctx - the bridge context



convertOpacity
public static float convertOpacity(Value v)(Code)
Returns the opacity represented by the specified CSSValue.
Parameters:
  v - the value that represents the opacity the opacity between 0 and 1



convertPaint
public static Paint convertPaint(Element paintedElement, GraphicsNode paintedNode, Value paintDef, float opacity, BridgeContext ctx)(Code)
Converts a Paint definition to a concrete java.awt.Paint instance according to the specified parameters.
Parameters:
  paintedElement - the element interested in a Paint
Parameters:
  paintedNode - the graphics node to paint (objectBoundingBox)
Parameters:
  paintDef - the paint definition
Parameters:
  opacity - the opacity to consider for the Paint
Parameters:
  ctx - the bridge context



convertRGBICCColor
public static Color convertRGBICCColor(Element paintedElement, Value colorDef, ICCColor iccColor, float opacity, BridgeContext ctx)(Code)
Returns a Color object that corresponds to the input Paint's ICC color value or an RGB color if the related color profile could not be used or loaded for any reason.
Parameters:
  paintedElement - the element using the color
Parameters:
  colorDef - the color definition
Parameters:
  iccColor - the ICC color definition
Parameters:
  opacity - the opacity
Parameters:
  ctx - the bridge context to use



convertStroke
public static Stroke convertStroke(Element e)(Code)
Converts a Stroke object defined on the specified element.
Parameters:
  e - the element on which the stroke is specified



convertStrokeDasharray
public static float[] convertStrokeDasharray(Value v)(Code)
Converts the 'stroke-dasharray' property to a list of float number in user units.
Parameters:
  v - the CSS value describing the dasharray property



convertStrokeLinecap
public static int convertStrokeLinecap(Value v)(Code)
Converts the 'linecap' property to the appropriate BasicStroke constant.
Parameters:
  v - the CSS value describing the linecap property



convertStrokeLinejoin
public static int convertStrokeLinejoin(Value v)(Code)
Converts the 'linejoin' property to the appropriate BasicStroke constant.
Parameters:
  v - the CSS value describing the linejoin property



convertStrokeMiterlimit
public static float convertStrokeMiterlimit(Value v)(Code)
Converts the 'miterlimit' property to the appropriate float number.
Parameters:
  v - the CSS value describing the miterlimit property



convertStrokePaint
public static Paint convertStrokePaint(Element strokedElement, GraphicsNode strokedNode, BridgeContext ctx)(Code)
Converts for the specified element, its stroke paint properties to a Paint object.
Parameters:
  strokedElement - the element interested in a Paint
Parameters:
  strokedNode - the graphics node to stroke
Parameters:
  ctx - the bridge context



convertStrokePainter
public static ShapePainter convertStrokePainter(Element e, ShapeNode node, BridgeContext ctx)(Code)



convertURIPaint
public static Paint convertURIPaint(Element paintedElement, GraphicsNode paintedNode, Value paintDef, float opacity, BridgeContext ctx)(Code)
Converts a Paint specified as a URI.
Parameters:
  paintedElement - the element interested in a Paint
Parameters:
  paintedNode - the graphics node to paint (objectBoundingBox)
Parameters:
  paintDef - the paint definition
Parameters:
  opacity - the opacity to consider for the Paint
Parameters:
  ctx - the bridge context



resolveColorComponent
public static int resolveColorComponent(Value v)(Code)
Returns the value of one color component (0 <= result <= 255).
Parameters:
  v - the value that defines the color component



silentConvertURIPaint
public static Paint silentConvertURIPaint(Element paintedElement, GraphicsNode paintedNode, Value paintDef, float opacity, BridgeContext ctx)(Code)
Converts a Paint specified by URI without sending any error. if a problem occured while processing the URI, it just returns null (same effect as 'none')
Parameters:
  paintedElement - the element interested in a Paint
Parameters:
  paintedNode - the graphics node to paint (objectBoundingBox)
Parameters:
  paintDef - the paint definition
Parameters:
  opacity - the opacity to consider for the Paint
Parameters:
  ctx - the bridge context the paint object or null when impossible



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.