|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.win.swing.component.LyAbstractCanvasSplitterManager
public abstract class LyAbstractCanvasSplitterManager
Handles the splitting of an area in multiple coordinated areas.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static short |
LEFT_HEADER_BOTTOM_PART
The left header bottom part. |
static short |
LEFT_HEADER_TOP_PART
The left header top part. |
static short |
MAIN_BOTTOM_LEFT_PART
The main bottom left part. |
static short |
MAIN_BOTTOM_RIGHT_PART
The main bottom right part. |
static short |
MAIN_TOP_LEFT_PART
The main top left part. |
static short |
MAIN_TOP_RIGHT_PART
The main top right part. |
static short |
NO_PART
None of possible parts. |
static int |
SCROLLBAR_THICKNESS
Thickness of the scrollbars. |
static int |
SPLITTER_THICKNESS
Thickness of the splitters. |
static short |
TOP_HEADER_LEFT_PART
The top header left part. |
static short |
TOP_HEADER_RIGHT_PART
The top header right part. |
Constructor Summary | |
---|---|
LyAbstractCanvasSplitterManager(java.awt.Container comp)
Class constructor of a canvas splitter manager. |
Method Summary | |
---|---|
abstract java.awt.Component |
buildSplitter(boolean horizontal)
Creates a new splitter in the specified orientation. |
void |
centerCurrentPart()
Centers the current part on the element currently at the center of the whole canvas. |
LySplittableCanvas |
getActivatedCanvas()
Indicates which canvas is activated. |
java.awt.Container |
getComponent()
Gets the component linked to this manager. |
java.awt.Point |
getCurrentPartPosition(boolean mouseOverPart)
Returns the position of current part. |
java.awt.Dimension |
getCurrentPartSize(boolean mouseOverPart)
Returns the size of current part. |
short |
getDrawnPart()
Indicates which part is being drawn. |
int |
getLeftHeaderWidth()
Returns the width of left header part. |
java.awt.Dimension |
getMainViewSize()
Returns the size of the main canvas (the total size of the canvas minus the size of its header). |
java.awt.Dimension |
getPreferredSize()
Computes the size of the component, depending on the size of the main canvas. |
java.awt.Dimension |
getSize()
Gets the size of the associated component. |
int |
getTopHeaderHeight()
Returns the height of top header part. |
int |
getVerticalOffset(boolean mouseOverPart)
Returns vertical offset for current part. |
void |
paintCommon(java.awt.Graphics g)
Draws the canvas splitter in this graphics. |
void |
redraw()
Redraws the component. |
void |
scrollX(int scrollX)
Performs an horizontal scrolling on the left or right splitter (depending on the canvas under the mouse). |
void |
scrollY(int scrollY)
Performs a vertical scrolling on the top or bottom splitter (depending on the canvas under the mouse). |
void |
setActivated(LySplittableCanvas canvas)
Activates a canvas. |
void |
setLeftHeaderCanvas(LySplittableCanvas canvas)
Sets the left header canvas of this splitter. |
void |
setMainCanvas(LySplittableCanvas canvas)
Sets the main canvas of this splitter. |
void |
setTopHeaderCanvas(LySplittableCanvas canvas)
Sets the top header canvas of this splitter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final short NO_PART
public static final short MAIN_TOP_LEFT_PART
public static final short MAIN_TOP_RIGHT_PART
public static final short MAIN_BOTTOM_LEFT_PART
public static final short MAIN_BOTTOM_RIGHT_PART
public static final short TOP_HEADER_LEFT_PART
public static final short TOP_HEADER_RIGHT_PART
public static final short LEFT_HEADER_TOP_PART
public static final short LEFT_HEADER_BOTTOM_PART
public static final int SPLITTER_THICKNESS
public static final int SCROLLBAR_THICKNESS
Constructor Detail |
---|
public LyAbstractCanvasSplitterManager(java.awt.Container comp)
comp
- the splitted componentMethod Detail |
---|
public abstract java.awt.Component buildSplitter(boolean horizontal)
horizontal
- Indicates if the splitter is oriented horizontally (true
) or
vertically (false
).
public void setMainCanvas(LySplittableCanvas canvas)
canvas
- the main canvas of this splitterpublic void setTopHeaderCanvas(LySplittableCanvas canvas)
canvas
- the top header canvas of this splitterpublic void setLeftHeaderCanvas(LySplittableCanvas canvas)
canvas
- the left header canvas of this splitterpublic java.awt.Container getComponent()
public void redraw()
public java.awt.Dimension getMainViewSize()
public int getVerticalOffset(boolean mouseOverPart)
mouseOverPart
- true if mouse over part must be considered, false if draw part must be
considered
public java.awt.Dimension getCurrentPartSize(boolean mouseOverPart)
mouseOverPart
- true if mouse over part must be considered, false if draw part must be
considered
public java.awt.Point getCurrentPartPosition(boolean mouseOverPart)
mouseOverPart
- true if mouse over part must be considered, false if draw part must be
considered
public int getLeftHeaderWidth()
public int getTopHeaderHeight()
public java.awt.Dimension getPreferredSize()
public short getDrawnPart()
public void setActivated(LySplittableCanvas canvas)
canvas
- the canvas that must be activatedpublic LySplittableCanvas getActivatedCanvas()
public void scrollX(int scrollX)
scrollX
- the new scroll positionpublic void centerCurrentPart()
public void scrollY(int scrollY)
scrollY
- the new scroll positionpublic java.awt.Dimension getSize()
Component.getSize()
public void paintCommon(java.awt.Graphics g)
g
- the graphics context to paint the images on
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |