Package org.eclipse.swt.custom
Class LineStyleEvent
java.lang.Object
java.util.EventObject
org.eclipse.swt.events.TypedEvent
org.eclipse.swt.custom.LineStyleEvent
- All Implemented Interfaces:
Serializable
This event is sent when a line is about to be drawn.
-
Field Summary
Modifier and TypeFieldDescriptionint
line alignment (input, output)line bullet (output)int
line bullet index (output)int
line indent (input, output)boolean
line justification (input, output)int
line start offset (input)line text (input)int[]
line ranges (output)line styles (output) Note: Because a StyleRange includes the start and length, the same instance cannot occur multiple times in the array of styles.int[]
line tab stops (output)int
line wrap indent (input, output)Fields inherited from class org.eclipse.swt.events.TypedEvent
data, display, time, widget
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionLineStyleEvent
(org.eclipse.swt.custom.StyledTextEvent e) Constructs a new instance of this class based on the information in the given event. -
Method Summary
Methods inherited from class org.eclipse.swt.events.TypedEvent
toString
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
lineOffset
public int lineOffsetline start offset (input) -
lineText
line text (input) -
ranges
public int[] rangesline ranges (output)- Since:
- 3.2
-
styles
line styles (output) Note: Because a StyleRange includes the start and length, the same instance cannot occur multiple times in the array of styles. If the same style attributes, such as font and color, occur in multiple StyleRanges,ranges
can be used to share styles and reduce memory usage. -
alignment
public int alignmentline alignment (input, output)- Since:
- 3.2
-
indent
public int indentline indent (input, output)- Since:
- 3.2
-
wrapIndent
public int wrapIndentline wrap indent (input, output)- Since:
- 3.6
-
justify
public boolean justifyline justification (input, output)- Since:
- 3.2
-
bullet
line bullet (output)- Since:
- 3.2
-
bulletIndex
public int bulletIndexline bullet index (output)- Since:
- 3.2
-
tabStops
public int[] tabStopsline tab stops (output)- Since:
- 3.6
-
-
Constructor Details
-
LineStyleEvent
public LineStyleEvent(org.eclipse.swt.custom.StyledTextEvent e) Constructs a new instance of this class based on the information in the given event.- Parameters:
e
- the event containing the information
-