public class IGridPanel extends IScreenTogglePanel
IPanel.AIScaleDialog
Modifier and Type | Field and Description |
---|---|
IPane[][] |
gridPanes |
double[] |
heightRatio |
double[] |
widthRatio |
int |
xnum |
int |
ynum |
fullPaneOrigHeight, fullPaneOrigWidth, fullPaneOrigX, fullPaneOrigY, fullScreenPane
bounds, currentMousePane, firstDraw, ig, panes, parentContainer, serverStateCount, sizeChanged, skipAutoFocus, startDynamicServer
Constructor and Description |
---|
IGridPanel(int x,
int y,
int width,
int height,
int xnum,
int ynum) |
IGridPanel(int x,
int y,
int width,
int height,
int xnum,
int ynum,
IPane[][] panes) |
Modifier and Type | Method and Description |
---|---|
static int[] |
getPositionArrayFromRatio(double[] ratio,
int totalLen) |
void |
setSize(int w,
int h) |
void |
setupGrid(double[] widthRatio,
double[] heightRatio,
IPane[][] panes) |
void |
setupGrid(int xnum,
int ynum,
IPane[][] panes) |
disableFullScreen, draw, enableFullScreen, enableFullScreen, isFull, keyPressed, mouseClicked, mouseClicked, setVisible
addPane, chooseFile, chooseFile, chooseFile, clearPane, componentHidden, componentMoved, componentResized, componentShown, currentPane, focus, focusGained, focusLost, getBounds, getIG, getPaneAt, getPaneAt, keyPressed, keyReleased, keyReleased, keyTyped, keyTyped, mouseDragged, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseMoved, mousePressed, mousePressed, mouseReleased, mouseReleased, mouseWheelMoved, mouseWheelMoved, pane, paneNum, postdraw, predraw, removePane, saveDialog, server, setBounds, setIG, setParent, skipAutoFocus, startDynamicServer, stopDynamicServer, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
contains, getHeight, getWidth, getX, getY, isVisible, setBounds, setBounds, setLocation
public IPane[][] gridPanes
public int xnum
public int ynum
public double[] widthRatio
public double[] heightRatio
public IGridPanel(int x, int y, int width, int height, int xnum, int ynum)
public IGridPanel(int x, int y, int width, int height, int xnum, int ynum, IPane[][] panes)
public void setupGrid(int xnum, int ynum, IPane[][] panes)
public void setupGrid(double[] widthRatio, double[] heightRatio, IPane[][] panes)
widthRatio
- Array of relative width ratio. Actual width is calculatd by each ratio divided by sum of ratiosheightRatio
- Array of relative height ratio. Actual height is calculatd by each ratio divided by sum of ratiospublic static int[] getPositionArrayFromRatio(double[] ratio, int totalLen)
public void setSize(int w, int h)
setSize
in interface IPanelI
setSize
in class IScreenTogglePanel