Package org.eclipse.jface.viewers
Class ColumnPixelData
java.lang.Object
org.eclipse.jface.viewers.ColumnLayoutData
org.eclipse.jface.viewers.ColumnPixelData
Describes the width of a table column in pixels, and
 whether the column is resizable.
 
This class may be instantiated; it is not intended to be subclassed.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionbooleanWhether to allocate extra width to the column to account for trim taken by the column itself.intThe column's width in pixels.Fields inherited from class org.eclipse.jface.viewers.ColumnLayoutDataresizable
- 
Constructor SummaryConstructorsConstructorDescriptionColumnPixelData(int widthInPixels) Creates a resizable column width of the given number of pixels.ColumnPixelData(int widthInPixels, boolean resizable) Creates a column width of the given number of pixels.ColumnPixelData(int widthInPixels, boolean resizable, boolean addTrim) Creates a column width of the given number of pixels.
- 
Method Summary
- 
Field Details- 
widthpublic int widthThe column's width in pixels.
- 
addTrimpublic boolean addTrimWhether to allocate extra width to the column to account for trim taken by the column itself. The default isfalsefor backwards compatibility, but the recommended practice is to specifytrue, and specify the desired width for the content of the column, rather than adding a fudge factor to the specified width.- Since:
- 3.1
 
 
- 
- 
Constructor Details- 
ColumnPixelDatapublic ColumnPixelData(int widthInPixels) Creates a resizable column width of the given number of pixels.- Parameters:
- widthInPixels- the width of column in pixels
 
- 
ColumnPixelDatapublic ColumnPixelData(int widthInPixels, boolean resizable) Creates a column width of the given number of pixels.- Parameters:
- widthInPixels- the width of column in pixels
- resizable-- trueif the column is resizable, and- falseif size of the column is fixed
 
- 
ColumnPixelDatapublic ColumnPixelData(int widthInPixels, boolean resizable, boolean addTrim) Creates a column width of the given number of pixels.- Parameters:
- widthInPixels- the width of column in pixels
- resizable-- trueif the column is resizable, and- falseif size of the column is fixed
- addTrim-- trueto allocate extra width to the column to account for trim taken by the column itself,- falseto use the given width exactly
- Since:
- 3.1
 
 
-