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

Public Member Functions

 ScrollableArea (int w, int h)
 
void setScroller (IScrollAreaUser pane)
 
void centerOn (int x, int y)
 
void setScale (float newScale, int mui)
 
boolean setCanvasSize (int w, int h)
 
Dimension getPreferredSize ()
 
Dimension getPreferredScrollableViewportSize ()
 
int getScrollableUnitIncrement (Rectangle visibleRect, int orientation, int direction)
 
int getScrollableBlockIncrement (Rectangle visibleRect, int orientation, int direction)
 
boolean getScrollableTracksViewportWidth ()
 
boolean getScrollableTracksViewportHeight ()
 
void setMaxUnitIncrement (int pixels)
 
int getCanvasWidth ()
 
Rectangle getVisibleArea ()
 
int getCanvasHeight ()
 
void mouseClicked (MouseEvent e)
 
void mouseEntered (MouseEvent e)
 
void mouseExited (MouseEvent e)
 
void mousePressed (MouseEvent e)
 
void mouseReleased (MouseEvent e)
 
void mouseDragged (MouseEvent e)
 
void mouseMoved (MouseEvent e)
 
boolean isMouseOver ()
 

Protected Member Functions

void paintComponent (Graphics g)
 
void calculateMousePosition (int mx, int my)
 

Protected Attributes

IScrollAreaUser user = null
 
int originalW
 
int canvasW
 
Rectangle visibleArea = new Rectangle()
 
int mouseX
 
float scale = 1.0f
 
int maxUnitIncrement = 1
 
boolean isOver = false
 

Package Attributes

int originalH
 
int canvasH
 
int mouseY
 

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

Author
Peter Lager

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