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

Classes

class  Corner
 
class  Rule
 

Public Member Functions

 ScrollControl (CtrlTabView tabCtrl, DBase window)
 
 ScrollControl (int w, int h)
 
ScrollableArea getScrollableArea ()
 
void setCanvasSize (int w, int h)
 
float getScale ()
 
void setScale (float scale)
 
void setScale (int scale)
 
Rectangle getVisibleArea ()
 
void mouseClicked (int mouseX, int mouseY, Rectangle visibleArea)
 
void mousePressed (int mouseX, int mouseY, Rectangle visibleArea)
 
void mouseReleased (int mouseX, int mouseY, Rectangle visibleArea)
 
void mouseMoved (int mouseX, int mouseY, Rectangle visibleArea)
 
void mouseDragged (int mouseX, int mouseY, Rectangle visibleArea)
 
void mouseEntered (int mouseX, int mouseY, Rectangle visibleArea)
 
void mouseExited (int mouseX, int mouseY, Rectangle visibleArea)
 
DWindow getWindowComponent ()
 
DBase getSelected ()
 
void setSelected (DBase comp, Rectangle compRect)
 

Static Public Attributes

static final Color BACKGROUND = new Color(128, 0, 0)
 
static final Color FOREGROUND = new Color(255, 220, 220)
 
static final Font FONT = new Font("Dialog", Font.BOLD, 10)
 
static final int DELTA_Y = 11
 
static final int DELTA_X = 10
 
static final int HORIZONTAL = 0
 
static final int VERTICAL = 1
 
static final int THICKNESS = 20
 
static final int TICK_SIZE = 4
 
static int gridSize = 4
 
static boolean showGrid
 
static boolean snapToGrid
 

Package Attributes

int areaH
 
DBase window = null
 
DBase selected = null
 
int startY
 
int deltaY
 

Private Member Functions

void initScrollPane (ScrollableArea area)
 
void isOver (MutableDBase m, int x, int y)
 
int snapValue (int nbr)
 

Private Attributes

Rule columnView
 
Rule rowView
 
ScrollableArea area
 
int areaW
 
int unitValue = 100
 
int unitTickGap = 100
 
int nbrTicksInGap = 4
 
CtrlTabView tabCtrl
 
MutableDBase selInfo = new MutableDBase()
 
int startX
 
int deltaX
 

Additional Inherited Members

- Public Attributes inherited from g4p.tool.TGuiConstants
int HANDLE_SIZE = 6
 
int OVER_NONE = 0x00000000
 
int OVER_COMP = 0x00000200
 
int OVER_HORZ = 0x00000201
 
int OVER_VERT = 0x00000202
 
int OVER_DIAG = 0x00000203
 
int MOVED = 0x00010001
 
int RESIZED = 0x00010002
 
int LEFT = 0x00000000
 
int RIGHT = 0x00000001
 
int CENTER = 0x00000002
 
int TOP = 0x00000000
 
int BOTTOM = 0x00000001
 
int MIDDLE = 0x00000002
 
int NORTH = 0x00000000
 
int SOUTH = 0x00000001
 
int EAST = 0x00000002
 
int WEST = 0x00000003
 
int TEXT_ONLY = 0x00000000
 
int ICON_ONLY = 0x00000001
 
int TEXT_AND_ICON = 0x00000002
 
BasicStroke stdStroke
 
BasicStroke selStroke
 
BasicStroke needleStroke
 
BasicStroke heavyStroke
 
BasicStroke dashed
 
Color DASHED_EDGE_COLOR = new Color(32,32,32,128)
 
Color csdrBack = new Color(0,0,0, 8)
 
Color csdrBorder = new Color(0,0,0, 32)
 
Color csdrSlideBack = new Color(220, 220, 220)
 
Color csdrSlideBorder = new Color(64, 64, 64)
 
Color csdrThumb = new Color(255,255,0)
 
Color winBack = new Color(240,240,240)
 
Color winEdge = new Color(160,160,160)
 

Detailed Description

GUI control encapsulating a ScrollableArea object.

The actual scrollable display must be created from a class that inherits from ScrollableArea.

Author
Peter Lager

Member Function Documentation

void g4p.tool.gui.tabview.ScrollControl.setScale ( float  scale)

Set the scale where scale is a proportion e.g.0.75

Parameters
scale

Implements g4p.tool.gui.tabview.IScrollAreaUser.

void g4p.tool.gui.tabview.ScrollControl.setScale ( int  scale)

Set the scale where scale is a percentage e.g.75%

Parameters
scale

Implements g4p.tool.gui.tabview.IScrollAreaUser.


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