Package com._1c.g5.v8.dt.moxel.ui.editor
Class HeaderArea
- java.lang.Object
-
- com._1c.g5.v8.dt.moxel.ui.editor.HeaderArea
-
public class HeaderArea extends Object
-
-
Constructor Summary
Constructors Constructor Description HeaderArea(ViewPort viewPort_, ViewParameters viewParameters_, HeaderAreaType type_)
Конструктор.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calcHeight()
Рассчитать высоту.int
calcWidth()
Рассчитать ширину.org.eclipse.swt.graphics.Rectangle
getDevicePosition()
Получить позицию.org.eclipse.swt.graphics.Rectangle
getGroupAreaPixel()
Получить позицию группировок.int
getGroupSizePixel()
Получить, сколько место нужно выделить под каждую группировку.org.eclipse.swt.graphics.Rectangle
getHeaderAreaPixel()
Получить позицию заголовков.int
getNamedColumnsHeightPixelForOneArea()
int
getNamedRowsWidthPixelForOneArea()
Get amount of space required for one grouporg.eclipse.swt.graphics.Rectangle
getNamesAreaPixel()
Получить область именованных строк/колонок.HeaderAreaType
getType()
Тип области.ViewPort
getViewPort()
void
setPositionPixel(org.eclipse.swt.graphics.Point topLeftPointPixel, int sizePixel)
Установить позицию.void
updateSize()
Обновить размеры.
-
-
-
Constructor Detail
-
HeaderArea
public HeaderArea(ViewPort viewPort_, ViewParameters viewParameters_, HeaderAreaType type_)
Конструктор.
-
-
Method Detail
-
getViewPort
public ViewPort getViewPort()
- Returns:
- the viewPort
-
setPositionPixel
public void setPositionPixel(org.eclipse.swt.graphics.Point topLeftPointPixel, int sizePixel)
Установить позицию.- Parameters:
topLeftPoint
- - позиция верхнего левого угла области.size
- - размер по горизонтали или вертикали.
-
getDevicePosition
public org.eclipse.swt.graphics.Rectangle getDevicePosition()
Получить позицию.
-
updateSize
public void updateSize()
Обновить размеры.
-
calcHeight
public int calcHeight()
Рассчитать высоту.
-
calcWidth
public int calcWidth()
Рассчитать ширину.
-
getNamedRowsWidthPixelForOneArea
public int getNamedRowsWidthPixelForOneArea()
Get amount of space required for one group- Returns:
- amount of space required for one group.
-
getGroupSizePixel
public int getGroupSizePixel()
Получить, сколько место нужно выделить под каждую группировку.
-
getNamedColumnsHeightPixelForOneArea
public int getNamedColumnsHeightPixelForOneArea()
-
getType
public HeaderAreaType getType()
Тип области.
-
getHeaderAreaPixel
public org.eclipse.swt.graphics.Rectangle getHeaderAreaPixel()
Получить позицию заголовков.
-
getGroupAreaPixel
public org.eclipse.swt.graphics.Rectangle getGroupAreaPixel()
Получить позицию группировок.
-
getNamesAreaPixel
public org.eclipse.swt.graphics.Rectangle getNamesAreaPixel()
Получить область именованных строк/колонок.
-
-