Java Doc for CssBorder.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » css2 » 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 » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.css2 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.css2.CssBorder

CssBorder
public class CssBorder (Code)
A border which paints according to CSS2 specifications. In particular, the border brush may have different thickness for the top, bottom, left and right edges, and each edge may have a different style, such as solid, dashed, dotted, or inset.
author:
   Tor Norbye


Field Summary
final public static  intFRAME_BOTTOM
    
final public static  intFRAME_BOX
    
final public static  intFRAME_LEFT
    
final public static  intFRAME_RIGHT
    
final public static  intFRAME_TOP
    
final public static  intFRAME_UNSET
     Same as all sides, but used for the case where we haven't specifically set the frame/rules property, so I can tell "all" from "not set".
final public static  intFRAME_VOID
    
final static  intSTYLE_DASHED
    
final static  intSTYLE_DOTTED
    
final static  intSTYLE_DOUBLE
    
final static  intSTYLE_GROOVE
    
final static  intSTYLE_INSET
    
final static  intSTYLE_NONE
    
final static  intSTYLE_OUTSET
    
final static  intSTYLE_RIDGE
    
final static  intSTYLE_SOLID
    
final static  intSTYLE_UNKNOWN
    
final public static  intWIDTH_MEDIUM
    
final public static  intWIDTH_THIN
    
 int[]pointsX
    
 int[]pointsY
    


Method Summary
public static  CssBordergetBorder(Element element)
     Return a border capable of painting the given element's border preferences.
public static  CssBordergetBorder(Element element, int defaultWidth, int defaultStyle, int mask)
     Same as getBorder(Document, Element) but allows you to specify a default width and style which will be used for any border edge that does not have an explicit CSS property setting.
static  CssBordergetBorder(int style, int width, Color color)
     Return a border of the given style, width and color.
public  InsetsgetBorderInsets(Component c)
     Returns the insets of the border.
public  intgetBottomBorderWidth()
    
public static  CssBordergetDesignerBorder()
     Return a "designer" border - a border suitable for showing a selection around a box, distinguishable from a typical document box.
public static  CssBordergetEmptyBorder()
    
public  intgetLeftBorderWidth()
    
public  intgetRightBorderWidth()
    
public  intgetTopBorderWidth()
    
public  booleanisBorderOpaque()
     Returns whether or not the border is opaque.
public  voidpaintBorder(Graphics g, int x, int y, int width, int height)
     Paints the border for the specified component with the specified position and size.
public  StringtoString()
    

Field Detail
FRAME_BOTTOM
final public static int FRAME_BOTTOM(Code)
Side below box



FRAME_BOX
final public static int FRAME_BOX(Code)
All sides



FRAME_LEFT
final public static int FRAME_LEFT(Code)
Left-hand-side of box



FRAME_RIGHT
final public static int FRAME_RIGHT(Code)
Right-hand-side of box



FRAME_TOP
final public static int FRAME_TOP(Code)
Side above box



FRAME_UNSET
final public static int FRAME_UNSET(Code)
Same as all sides, but used for the case where we haven't specifically set the frame/rules property, so I can tell "all" from "not set".



FRAME_VOID
final public static int FRAME_VOID(Code)
No sides



STYLE_DASHED
final static int STYLE_DASHED(Code)



STYLE_DOTTED
final static int STYLE_DOTTED(Code)



STYLE_DOUBLE
final static int STYLE_DOUBLE(Code)



STYLE_GROOVE
final static int STYLE_GROOVE(Code)



STYLE_INSET
final static int STYLE_INSET(Code)



STYLE_NONE
final static int STYLE_NONE(Code)



STYLE_OUTSET
final static int STYLE_OUTSET(Code)



STYLE_RIDGE
final static int STYLE_RIDGE(Code)



STYLE_SOLID
final static int STYLE_SOLID(Code)



STYLE_UNKNOWN
final static int STYLE_UNKNOWN(Code)



WIDTH_MEDIUM
final public static int WIDTH_MEDIUM(Code)



WIDTH_THIN
final public static int WIDTH_THIN(Code)



pointsX
int[] pointsX(Code)



pointsY
int[] pointsY(Code)





Method Detail
getBorder
public static CssBorder getBorder(Element element)(Code)
Return a border capable of painting the given element's border preferences. The top, bottom, right and left parameters list the border thickness to use for each edge. (These are looked up by the box (the client of this class) rather than here in the border since the border dimensions are part of the geometry of the box.) May return null if no border should be painted.



getBorder
public static CssBorder getBorder(Element element, int defaultWidth, int defaultStyle, int mask)(Code)
Same as getBorder(Document, Element) but allows you to specify a default width and style which will be used for any border edge that does not have an explicit CSS property setting. This is used to force table cells to take on the table element's border attribute width, for example.
Parameters:
  defaultWidth - The default width to use, or -1 if adefault border width should not be set.
Parameters:
  defaultStyle - The default style to use for edges thatdo not specify a border, or STYLE_NONE.



getBorder
static CssBorder getBorder(int style, int width, Color color)(Code)
Return a border of the given style, width and color. Style should be one of STYLE_INSET, etc.



getBorderInsets
public Insets getBorderInsets(Component c)(Code)
Returns the insets of the border.
Parameters:
  c - the component for which this border insets value applies



getBottomBorderWidth
public int getBottomBorderWidth()(Code)



getDesignerBorder
public static CssBorder getDesignerBorder()(Code)
Return a "designer" border - a border suitable for showing a selection around a box, distinguishable from a typical document box. The border will therefore probably be in some light color, with a dashed pattern.



getEmptyBorder
public static CssBorder getEmptyBorder()(Code)



getLeftBorderWidth
public int getLeftBorderWidth()(Code)



getRightBorderWidth
public int getRightBorderWidth()(Code)



getTopBorderWidth
public int getTopBorderWidth()(Code)



isBorderOpaque
public boolean isBorderOpaque()(Code)
Returns whether or not the border is opaque. If the border is opaque, it is responsible for filling in it's own background when painting.



paintBorder
public void paintBorder(Graphics g, int x, int y, int width, int height)(Code)
Paints the border for the specified component with the specified position and size.
Parameters:
  c - the component for which this border is being painted
Parameters:
  g - the paint graphics
Parameters:
  x - the x position of the painted border
Parameters:
  y - the y position of the painted border
Parameters:
  width - the width of the painted border
Parameters:
  height - the height of the painted border



toString
public String toString()(Code)



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.