1 package ch
.cyberduck
.binding
.application
;
4 * Copyright (c) 2002-2009 David Kocher. All rights reserved.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * Bug fixes, suggestions and comments should be sent to:
19 * dkocher@cyberduck.ch
22 import ch
.cyberduck
.binding
.foundation
.NSCopying
;
23 import ch
.cyberduck
.binding
.foundation
.NSObject
;
25 import org
.rococoa
.ObjCClass
;
26 import org
.rococoa
.cocoa
.CGFloat
;
29 /// <i>native declaration : :74</i>
30 public abstract class NSParagraphStyle
extends NSObject
implements NSCopying
{
31 private static final _Class CLASS
= org
.rococoa
.Rococoa
.createClass("NSParagraphStyle", _Class
.class);
33 /// <i>native declaration : :12</i>
34 public static final int NSLeftTabStopType
= 0;
35 /// <i>native declaration : :13</i>
36 public static final int NSRightTabStopType
= 1;
37 /// <i>native declaration : :14</i>
38 public static final int NSCenterTabStopType
= 2;
39 /// <i>native declaration : :15</i>
40 public static final int NSDecimalTabStopType
= 3;
42 * Wrap at word boundaries, default<br>
43 * <i>native declaration : :20</i>
45 public static final int NSLineBreakByWordWrapping
= 0;
47 * Wrap at character boundaries<br>
48 * <i>native declaration : :21</i>
50 public static final int NSLineBreakByCharWrapping
= 1;
53 * <i>native declaration : :22</i>
55 public static final int NSLineBreakByClipping
= 2;
57 * Truncate at head of line: "...wxyz"<br>
58 * <i>native declaration : :23</i>
60 public static final int NSLineBreakByTruncatingHead
= 3;
62 * Truncate at tail of line: "abcd..."<br>
63 * <i>native declaration : :24</i>
65 public static final int NSLineBreakByTruncatingTail
= 4;
67 * Truncate middle of line: "ab...yz"<br>
68 * <i>native declaration : :25</i>
70 public static final int NSLineBreakByTruncatingMiddle
= 5;
72 public static NSParagraphStyle
defaultParagraphStyle() {
73 return CLASS
.defaultParagraphStyle();
76 public interface _Class
extends ObjCClass
{
78 * Original signature : <code>NSParagraphStyle* defaultParagraphStyle()</code><br>
79 * <i>native declaration : :100</i>
81 NSParagraphStyle
defaultParagraphStyle();
84 * Original signature : <code>defaultWritingDirectionForLanguage(NSString*)</code><br>
85 * languageName is in ISO lang region format<br>
86 * <i>native declaration : :103</i>
88 com
.sun
.jna
.Pointer
defaultWritingDirectionForLanguage(com
.sun
.jna
.Pointer languageName
);
92 * Original signature : <code>CGFloat lineSpacing()</code><br>
93 * "Leading": distance between the bottom of one line fragment and top of next (applied between lines in the same container). Can't be negative. This value is included in the line fragment heights in layout manager.<br>
94 * <i>native declaration : :106</i>
96 public abstract CGFloat
lineSpacing();
99 * Original signature : <code>CGpublic abstract float paragraphSpacing()</code><br>
100 * Distance between the bottom of this paragraph and top of next (or the beginning of its paragraphSpacingBefore, if any).<br>
101 * <i>native declaration : :107</i>
103 public abstract float paragraphSpacing();
106 * Original signature : <code>alignment()</code><br>
107 * <i>native declaration : :108</i>
109 public abstract com
.sun
.jna
.Pointer
alignment();
112 * Original signature : <code>CGpublic abstract float headIndent()</code><br>
113 * Distance from margin to front edge of paragraph<br>
114 * <i>native declaration : :112</i>
116 public abstract float headIndent();
119 * Original signature : <code>CGpublic abstract float tailIndent()</code><br>
120 * Distance from margin to back edge of paragraph; if negative or 0, from other margin<br>
121 * <i>native declaration : :113</i>
123 public abstract float tailIndent();
126 * Original signature : <code>CGpublic abstract float firstLineHeadIndent()</code><br>
127 * Distance from margin to edge appropriate for text direction<br>
128 * <i>native declaration : :114</i>
130 public abstract float firstLineHeadIndent();
133 * Original signature : <code>NSArray* tabStops()</code><br>
134 * Distance from margin to tab stops<br>
135 * <i>native declaration : :115</i>
137 public abstract com
.sun
.jna
.Pointer
tabStops();
140 * Original signature : <code>CGpublic abstract float minimumLineHeight()</code><br>
141 * Line height is the distance from bottom of descenders to top of ascenders; basically the line fragment height. Does not include lineSpacing (which is added after this computation).<br>
142 * <i>native declaration : :117</i>
144 public abstract float minimumLineHeight();
147 * Original signature : <code>CGpublic abstract float maximumLineHeight()</code><br>
148 * 0 implies no maximum.<br>
149 * <i>native declaration : :118</i>
151 public abstract float maximumLineHeight();
154 * Original signature : <code>NSLineBreakMode lineBreakMode()</code><br>
155 * <i>native declaration : :120</i>
157 public abstract int lineBreakMode();
160 * Original signature : <code>baseWritingDirection()</code><br>
161 * <i>native declaration : :123</i>
163 public abstract com
.sun
.jna
.Pointer
baseWritingDirection();
166 * Original signature : <code>CGpublic abstract float lineHeightMultiple()</code><br>
167 * Natural line height is multiplied by this factor (if positive) before being constrained by minimum and maximum line height.<br>
168 * <i>native declaration : :127</i>
170 public abstract float lineHeightMultiple();
173 * Original signature : <code>CGpublic abstract float paragraphSpacingBefore()</code><br>
174 * Distance between the bottom of the previous paragraph (or the end of its paragraphSpacing, if any) and the top of this paragraph.<br>
175 * <i>native declaration : :128</i>
177 public abstract float paragraphSpacingBefore();
180 * Original signature : <code>CGpublic abstract float defaultTabInterval()</code><br>
181 * Tabs after the last specified in tabStops are placed at integral multiples of this distance (if positive).<br>
182 * <i>native declaration : :129</i>
184 public abstract float defaultTabInterval();
187 * Original signature : <code>NSArray* textBlocks()</code><br>
188 * Array to specify the text blocks containing the paragraph, nested from outermost to innermost.<br>
189 * <i>native declaration : :133</i>
191 public abstract com
.sun
.jna
.Pointer
textBlocks();
194 * Original signature : <code>NSArray* textLists()</code><br>
195 * Array to specify the text lists containing the paragraph, nested from outermost to innermost.<br>
196 * <i>native declaration : :134</i>
198 public abstract com
.sun
.jna
.Pointer
textLists();
201 * Specifies the threshold for hyphenation. Valid values lie between 0.0 and 1.0 inclusive. Hyphenation will be attempted when the ratio of the text width as broken without hyphenation to the width of the line fragment is less than the hyphenation factor. When this takes on its default value of 0.0, the layout manager's hyphenation factor is used instead. When both are 0.0, hyphenation is disabled.<br>
202 * Original signature : <code>public abstract float hyphenationFactor()</code><br>
203 * <i>native declaration : :138</i>
205 public abstract float hyphenationFactor();
208 * Specifies the threshold for using tightening as an alternative to truncation. When the line break mode specifies truncation, the text system will attempt to tighten inter-character spacing as an alternative to truncation, provided that the ratio of the text width to the line fragment width does not exceed 1.0 + tighteningFactorForTruncation. Otherwise the text will be truncated at a location determined by the line break mode. The default value is 0.05.<br>
209 * Original signature : <code>public abstract float tighteningFactorForTruncation()</code><br>
210 * <i>native declaration : :142</i>
212 public abstract float tighteningFactorForTruncation();
215 * Specifies whether the paragraph is to be treated as a header for purposes of HTML generation. Should be set to 0 (the default value) if the paragraph is not a header, or from 1 through 6 if the paragraph is to be treated as a header.<br>
216 * Original signature : <code>NSInteger headerLevel()</code><br>
217 * <i>native declaration : :145</i>
219 public abstract int headerLevel();