public class ScrollControl extends JPanel implements IScrollAreaUser, TGuiConstants
Modifier and Type | Class and Description |
---|---|
class |
ScrollControl.Corner |
class |
ScrollControl.Rule |
JComponent.AccessibleJComponent
Component.BaselineResizeBehavior
Modifier and Type | Field and Description |
---|---|
static Color |
BACKGROUND |
static int |
DELTA_X |
static int |
DELTA_Y |
static Font |
FONT |
static Color |
FOREGROUND |
static int |
gridSize |
static int |
HORIZONTAL |
static boolean |
showGrid |
static boolean |
snapToGrid |
static int |
THICKNESS |
static int |
TICK_SIZE |
static int |
VERTICAL |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
BOTTOM, CENTER, csdrBack, csdrBorder, csdrSlideBack, csdrSlideBorder, csdrThumb, dashed, DASHED_EDGE_COLOR, displayFont, HANDLE_SIZE, heavyStroke, ICON_ONLY, LEFT, MIDDLE, needleStroke, OVER_COMP, OVER_DIAG, OVER_HORZ, OVER_NONE, OVER_VERT, RIGHT, selStroke, stdStroke, TEXT_AND_ICON, TEXT_ONLY, TOP, winBack, winEdge
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
ScrollControl(CtrlTabView tabCtrl,
DBase window) |
ScrollControl(int w,
int h) |
Modifier and Type | Method and Description |
---|---|
float |
getScale() |
ScrollableArea |
getScrollableArea() |
DBase |
getSelected() |
Rectangle |
getVisibleArea() |
DWindow |
getWindowComponent() |
void |
mouseClicked(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) |
void |
mouseMoved(int mouseX,
int mouseY,
Rectangle visibleArea) |
void |
mousePressed(int mouseX,
int mouseY,
Rectangle visibleArea) |
void |
mouseReleased(int mouseX,
int mouseY,
Rectangle visibleArea) |
void |
setCanvasSize(int w,
int h) |
void |
setScale(float scale)
Set the scale where scale is a proportion e.g.0.75
|
void |
setScale(int scale)
Set the scale where scale is a percentage e.g.75%
|
void |
setSelected(DBase comp,
Rectangle compRect) |
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final Color BACKGROUND
public static final Color FOREGROUND
public static final Font FONT
public static final int DELTA_Y
public static final int DELTA_X
public static final int HORIZONTAL
public static final int VERTICAL
public static final int THICKNESS
public static final int TICK_SIZE
public static int gridSize
public static boolean showGrid
public static boolean snapToGrid
public ScrollControl(CtrlTabView tabCtrl, DBase window)
public ScrollControl(int w, int h)
public ScrollableArea getScrollableArea()
public void setCanvasSize(int w, int h)
public float getScale()
getScale
in interface IScrollAreaUser
public void setScale(float scale)
setScale
in interface IScrollAreaUser
scale
- public void setScale(int scale)
setScale
in interface IScrollAreaUser
scale
- public Rectangle getVisibleArea()
getVisibleArea
in interface IScrollAreaUser
public void mouseClicked(int mouseX, int mouseY, Rectangle visibleArea)
mouseClicked
in interface IScrollAreaUser
public void mousePressed(int mouseX, int mouseY, Rectangle visibleArea)
mousePressed
in interface IScrollAreaUser
public void mouseReleased(int mouseX, int mouseY, Rectangle visibleArea)
mouseReleased
in interface IScrollAreaUser
public void mouseMoved(int mouseX, int mouseY, Rectangle visibleArea)
mouseMoved
in interface IScrollAreaUser
public void mouseDragged(int mouseX, int mouseY, Rectangle visibleArea)
mouseDragged
in interface IScrollAreaUser
public void mouseEntered(int mouseX, int mouseY, Rectangle visibleArea)
mouseEntered
in interface IScrollAreaUser
public void mouseExited(int mouseX, int mouseY, Rectangle visibleArea)
mouseExited
in interface IScrollAreaUser
public DWindow getWindowComponent()
getWindowComponent
in interface IScrollAreaUser
public DBase getSelected()
getSelected
in interface IScrollAreaUser
public void setSelected(DBase comp, Rectangle compRect)
setSelected
in interface IScrollAreaUser
Processing tool G4PTool by Peter Lager. (C) 2015