Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Draw2d
3.3

org.eclipse.draw2d.text
Class ParagraphTextLayout

java.lang.Object
  extended by

org.eclipse.draw2d.text.FlowFigureLayout
      extended by

org.eclipse.draw2d.text.TextLayout
          extended by
org.eclipse.draw2d.text.ParagraphTextLayout
All Implemented Interfaces:
LayoutManager

public class ParagraphTextLayout
extends TextLayout

The layout for TextFlow.

Since:
2.1

Field Summary
static int WORD_WRAP_HARD
          Wrapping will ONLY occur at valid line breaks
static int WORD_WRAP_SOFT
          Wrapping will always occur at the end of the available space, breaking in the middle of a word.
static int WORD_WRAP_TRUNCATE
          Wrapping will always occur at the end of available space, truncating a word if it doesn't fit.
 
Constructor Summary
ParagraphTextLayout ( TextFlow flow)
          Constructs a new ParagraphTextLayout on the specified TextFlow.
ParagraphTextLayout ( TextFlow flow, int style)
          Constructs the layout with the specified TextFlow and wrapping style.
 
Method Summary
protected  void layout ()
          Called during FlowFigureLayout.layout(IFigure).
 
Methods inherited from class org.eclipse.draw2d.text. TextLayout
getFragment
 
Methods inherited from class org.eclipse.draw2d.text. FlowFigureLayout
getConstraint, getContext, getFlowFigure, getMinimumSize, getPreferredSize, invalidate, layout, remove, setConstraint, setFlowContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORD_WRAP_HARD

public static final int WORD_WRAP_HARD
Wrapping will ONLY occur at valid line breaks

See Also:
Constant Field Values

WORD_WRAP_SOFT

public static final int WORD_WRAP_SOFT
Wrapping will always occur at the end of the available space, breaking in the middle of a word.

See Also:
Constant Field Values

WORD_WRAP_TRUNCATE

public static final int WORD_WRAP_TRUNCATE
Wrapping will always occur at the end of available space, truncating a word if it doesn't fit. Note that truncation is not supported across multiple figures and with BiDi. Undesired effects may result if that is the case.

See Also:
Constant Field Values
Constructor Detail

ParagraphTextLayout

public ParagraphTextLayout(
TextFlow flow)
Constructs a new ParagraphTextLayout on the specified TextFlow.

Parameters:
flow - the TextFlow

ParagraphTextLayout

public ParagraphTextLayout(
TextFlow flow,
                           int style)
Constructs the layout with the specified TextFlow and wrapping style. The wrapping style must be one of:

Parameters:
flow - the textflow
style - the style of wrapping
Method Detail

layout

protected void layout()
Description copied from class: FlowFigureLayout
Called during FlowFigureLayout.layout(IFigure).

Specified by:
layout in class FlowFigureLayout
See Also:
FlowFigureLayout.layout()

Eclipse Draw2d
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire