G4P GUI Builder  4.4
Visual GUI designer for the G4P v4.3.1 library
 All Classes Namespaces Functions Variables
g4p.tool.gui.tabview.CtrlTabView Class Reference
Inheritance diagram for g4p.tool.gui.tabview.CtrlTabView:

Public Member Functions

void setViewLinks (CtrlSketchView tree, CtrlPropView props)
 
void paintComponent (Graphics g)
 
void addWindow (DBase winComp)
 
boolean deleteWindow (DBase window)
 
Rectangle getVisibleArea ()
 
void setSelectedComponent (DBase comp)
 
void updateCurrentTabName ()
 
void updateCurrentDisplay ()
 
void stateChanged (ChangeEvent e)
 
void componentHasBeenSelected (DBase comp)
 
void componentChangedInGUI (DBase comp, int action)
 
void scaleWindow (int scale)
 
void setGridSize (int gsize)
 
void setShowGrid (boolean show)
 
void setSnapToGrid (boolean snap)
 
void deleteAllWindows ()
 

Static Public Attributes

static int gridSize = 4
 
static boolean showGrid
 
static boolean snapToGrid
 
static Color gridCol = new Color(0,0,0,48)
 

Package Attributes

HashMap< DBase, ScrollControltabMap
 

Private Member Functions

void setSelectedTab (DBase window)
 

Private Attributes

CtrlSketchView tree
 
CtrlPropView props
 

Detailed Description

Author
Peter Lager

Member Function Documentation

void g4p.tool.gui.tabview.CtrlTabView.componentChangedInGUI ( DBase  comp,
int  action 
)

This method is called if the control is moved or resized in the GUI

Parameters
compthe control
actionMOVED or RESIZED
void g4p.tool.gui.tabview.CtrlTabView.setSelectedComponent ( DBase  comp)

Set selected component and make it visible in the scroll control. If necessary change tab and then update component

Parameters
comp
void g4p.tool.gui.tabview.CtrlTabView.stateChanged ( ChangeEvent  e)

Change of state caused by clicking on a tab for another GWindow

void g4p.tool.gui.tabview.CtrlTabView.updateCurrentTabName ( )

Call this if the name of any window has changed


The documentation for this class was generated from the following file: