Java Doc for StandardTabRuler.java in  » Internationalization-Localization » icu4j » com » ibm » richtext » styledtext » 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 » Internationalization Localization » icu4j » com.ibm.richtext.styledtext 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.richtext.styledtext.MTabRuler
      com.ibm.richtext.styledtext.StandardTabRuler

StandardTabRuler
final public class StandardTabRuler extends MTabRuler implements Externalizable(Code)
This class is a standard implementation of MTabRuler. It can have a finite number of client-specified TabStops. After the client-specified TabStops, all TabStops have type TabStop.kAuto and are at the autospace intervals.
See Also:   TabStop


Field Summary
final static  StringCOPYRIGHT
    

Constructor Summary
public  StandardTabRuler()
     Create a StandardTabRuler with only auto tabs, with spacing of 36.
public  StandardTabRuler(int autoSpacing)
     Create a StandardTabRuler with only auto tabs, with the given autoSpacing.
public  StandardTabRuler(TabStop[] tabs, int autoSpacing)
     Create a StandardTabRuler.
 StandardTabRuler(Vector v, int autoSpacing)
     Tabs as provided, then autoSpacing after the last tab to eternity.
 StandardTabRuler(MTabRuler ruler)
     Construct from another ruler.

Method Summary
static  MTabRuleraddTabToRuler(MTabRuler ruler, TabStop tabToAdd)
     Return a tab ruler identical to the given ruler, except with the given tab added.
Parameters:
  ruler - the original ruler.
public  intautoSpacing()
     Return the interval for autotabs.
public  booleanequals(Object o)
     Compare this to another Object.
public  TabStopfirstTab()
     Return first tab in the ruler.
static  MTabRulermoveTabOnRuler(MTabRuler ruler, int fromPosition, int toPosition)
     Return a tab ruler identical to the given ruler, except with the tab at position fromPosition moved to position toPosition.
Parameters:
  ruler - the original ruler.
public  TabStopnextTab(int position)
     Return the first tab in the ruler with fPosition > position.
public  voidreadExternal(ObjectInput in)
    
static  MTabRulerremoveTabFromRuler(MTabRuler ruler, int position)
     Return a tab ruler identical to the given ruler, except with the given tab removed.
Parameters:
  ruler - the original ruler.
public  StringtoString()
     Return debug information about this tab ruler.
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
COPYRIGHT
final static String COPYRIGHT(Code)




Constructor Detail
StandardTabRuler
public StandardTabRuler()(Code)
Create a StandardTabRuler with only auto tabs, with spacing of 36.



StandardTabRuler
public StandardTabRuler(int autoSpacing)(Code)
Create a StandardTabRuler with only auto tabs, with the given autoSpacing.
Parameters:
  autoSpacing - the autoSpacing for this tab ruler



StandardTabRuler
public StandardTabRuler(TabStop[] tabs, int autoSpacing)(Code)
Create a StandardTabRuler. The first TabStops on the ruler will be the TabStops in the tabs array. After these tabs all tabs are auto tabs.
Parameters:
  tabs - an array of TabStops. The TabStops in the array mustbe in strictly increasing order (of positions), and cannot havetype TabStop.kAuto.
Parameters:
  autoSpacing - the autoSpacing interval to use after the lastclient-specified tab.



StandardTabRuler
StandardTabRuler(Vector v, int autoSpacing)(Code)
Tabs as provided, then autoSpacing after the last tab to eternity. Use this constructor when munging a ruler, it does no validation on the tabs in the vector. Vector may not be null.



StandardTabRuler
StandardTabRuler(MTabRuler ruler)(Code)
Construct from another ruler. No validation. Ruler may not be null.




Method Detail
addTabToRuler
static MTabRuler addTabToRuler(MTabRuler ruler, TabStop tabToAdd)(Code)
Return a tab ruler identical to the given ruler, except with the given tab added.
Parameters:
  ruler - the original ruler. The MTabRuler will be the same asthis except for the additional tab. ruler is not modified.
Parameters:
  tabToAdd - the tab to add to the new tab ruler an MTabRuler resulting from this operation



autoSpacing
public int autoSpacing()(Code)
Return the interval for autotabs.



equals
public boolean equals(Object o)(Code)
Compare this to another Object. Returns true if the object is an MTabRuler with the same autoSpacing and tabs.



firstTab
public TabStop firstTab()(Code)
Return first tab in the ruler. If an autoTab, it is at position zero, and all subsequent tabs will be autotabs at autoSpacing intervals.



moveTabOnRuler
static MTabRuler moveTabOnRuler(MTabRuler ruler, int fromPosition, int toPosition)(Code)
Return a tab ruler identical to the given ruler, except with the tab at position fromPosition moved to position toPosition.
Parameters:
  ruler - the original ruler. The MTabRuler will be the same asthis except for the moved tab. ruler is not modified.
Parameters:
  fromPosition - the position of the tab to move
Parameters:
  toPosition - the new position of the tab an MTabRuler resulting from this operation



nextTab
public TabStop nextTab(int position)(Code)
Return the first tab in the ruler with fPosition > position. If it is an autotab, it is at an increment of autoSpacing, and all subsequent tabs will be autotabs at autoSpacing intervals.
Parameters:
  position - the position of the TabStop returned will be greater than this parameter



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)



removeTabFromRuler
static MTabRuler removeTabFromRuler(MTabRuler ruler, int position)(Code)
Return a tab ruler identical to the given ruler, except with the given tab removed.
Parameters:
  ruler - the original ruler. The MTabRuler will be the same asthis except for the removed tab. ruler is not modified.
Parameters:
  position - the position of the tab to remove from the new tab ruler an MTabRuler resulting from this operation



toString
public String toString()(Code)
Return debug information about this tab ruler.



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)



Fields inherited from com.ibm.richtext.styledtext.MTabRuler
final static String COPYRIGHT(Code)(Java Doc)

Methods inherited from com.ibm.richtext.styledtext.MTabRuler
public MTabRuler addTab(TabStop tabToAdd)(Code)(Java Doc)
abstract public int autoSpacing()(Code)(Java Doc)
public boolean containsTab(TabStop tabToTest)(Code)(Java Doc)
abstract public TabStop firstTab()(Code)(Java Doc)
final public int hashCode()(Code)(Java Doc)
public MTabRuler moveTab(int fromPosition, int toPosition)(Code)(Java Doc)
abstract public TabStop nextTab(int position)(Code)(Java Doc)
public MTabRuler removeTab(int position)(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.