diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSMutableParagraphStyle.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSMutableParagraphStyle.java | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSMutableParagraphStyle.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSMutableParagraphStyle.java new file mode 100644 index 0000000000..8cd4eec71e --- /dev/null +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSMutableParagraphStyle.java @@ -0,0 +1,55 @@ +/******************************************************************************* + * Copyright (c) 2000, 2009 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.swt.internal.cocoa; + +public class NSMutableParagraphStyle extends NSParagraphStyle { + +public NSMutableParagraphStyle() { + super(); +} + +public NSMutableParagraphStyle(int /*long*/ id) { + super(id); +} + +public NSMutableParagraphStyle(id id) { + super(id); +} + +public void addTabStop(NSTextTab anObject) { + OS.objc_msgSend(this.id, OS.sel_addTabStop_, anObject != null ? anObject.id : 0); +} + +public void setAlignment(int /*long*/ alignment) { + OS.objc_msgSend(this.id, OS.sel_setAlignment_, alignment); +} + +public void setDefaultTabInterval(float /*double*/ aFloat) { + OS.objc_msgSend(this.id, OS.sel_setDefaultTabInterval_, aFloat); +} + +public void setFirstLineHeadIndent(float /*double*/ aFloat) { + OS.objc_msgSend(this.id, OS.sel_setFirstLineHeadIndent_, aFloat); +} + +public void setLineBreakMode(int /*long*/ mode) { + OS.objc_msgSend(this.id, OS.sel_setLineBreakMode_, mode); +} + +public void setLineSpacing(float /*double*/ aFloat) { + OS.objc_msgSend(this.id, OS.sel_setLineSpacing_, aFloat); +} + +public void setTabStops(NSArray array) { + OS.objc_msgSend(this.id, OS.sel_setTabStops_, array != null ? array.id : 0); +} + +} |