Class StiPageVisual
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
com.stimulsoft.report.viewer.visual.StiVisual
com.stimulsoft.viewer.controls.visual.StiPageVisual
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible,SwingConstants
- Direct Known Subclasses:
StiThumbPageVisual
Component to display page of document
Copyright Stimulsoft
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JLabel
JLabel.AccessibleJLabelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Colorprotected Integerprotected Booleanprotected Doubleprotected BufferedImageprotected StiPageprotected booleanstatic final ColorSelected border colorstatic final IntegerWidth border when selectedstatic final IntegerShadow sizeprotected StiViewModelstatic final ColorUnselected border colorstatic final IntegerWidth border when unselectedprotected DoubleFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST -
Constructor Summary
ConstructorsConstructorDescriptionStiPageVisual(StiViewEventable eventDispatcher, StiViewModel stiViewModel) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbindEvents(StiViewEventable eventDispatcher) Events bindingvoidprotected voidcomponentPait(Graphics graphics) Paint componentprotected voiddrawBackground(StiGraphics g, StiRectangle rectangle) Draw page backgroundvoidDraw pageprotected intgetHt()getImage(StiRectangle rect) getLine()Return mouse position if GlassFrame existsgetPage()Return pagestatic longgetWd()protected voidpaintBorderShadow(Graphics2D g2, StiRectangle rect) Paint border shadowprotected voidpaintComponent(Graphics graphics) Draw whole pagevoidsetBounds(int x, int y, int width, int height) Set space to draw shadowvoidsetDestHeight(Integer destHeight) voidsetDestLeft(Integer destLeft) voidsetDestTop(Integer destTop) voidsetDestWidth(Integer destWidth) voidsetImage(BufferedImage image) voidvoidvoidsetPageIndex(Integer pageIndex) voidsetSelected(Boolean selected) Set selected/unselected curent pageMethods inherited from class javax.swing.JLabel
checkHorizontalKey, checkVerticalKey, getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, paramString, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setDisplayedMnemonicIndex, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setText, setUI, setVerticalAlignment, setVerticalTextPosition, updateUIMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
SELECTED_BORDER_SIZE
Width border when selected -
UNSELECTED_BORDER_SIZE
Width border when unselected -
SELECTED_BORDER_COLOR
Selected border color -
UNSELECTED_BORDER_COLOR
Unselected border color -
SHADOW_SIZE
Shadow size -
borderColor
-
borderSize
-
page
-
wd
-
ht
-
changeBitmap
-
stiViewModel
-
image
-
selected
protected boolean selected
-
-
Constructor Details
-
StiPageVisual
Constructor- Parameters:
eventDispatcher-stiViewModel-
-
-
Method Details
-
bindEvents
Events binding- Parameters:
eventDispatcher-
-
componentPait
Paint component- Parameters:
graphics-
-
paintComponent
Draw whole page- Overrides:
paintComponentin classJComponent
-
setBounds
public void setBounds(int x, int y, int width, int height) Set space to draw shadow -
paintBorderShadow
Paint border shadow- Parameters:
g2-Graphics2Drect-StiRectangle
-
drawPage
Draw page- Parameters:
g-
-
drawBackground
Draw page background- Parameters:
g-rectangle-StiRectangle
-
getMousePosition
Return mouse position if GlassFrame exists- Overrides:
getMousePositionin classComponent
-
setSelected
Set selected/unselected curent page- Parameters:
selected-
-
getPageIndex
- Returns:
- the pageIndex
-
setPageIndex
- Parameters:
pageIndex- the pageIndex to set
-
getDestLeft
- Returns:
- the destLeft
-
setDestLeft
- Parameters:
destLeft- the destLeft to set
-
getLine
- Returns:
- the line
-
setLine
- Parameters:
line- the line to set
-
getDestTop
- Returns:
- the destTop
-
setDestTop
- Parameters:
destTop- the destTop to set
-
getDestWidth
- Returns:
- the destWidth
-
setDestWidth
- Parameters:
destWidth- the destWidth to set
-
getDestHeight
- Returns:
- the destHeight
-
setDestHeight
- Parameters:
destHeight- the destHeight to set
-
getPage
Description copied from class:StiVisualReturn page -
setPage
- Parameters:
page- the page to set
-
getSerialversionuid
public static long getSerialversionuid()- Returns:
- the serialversionuid
-
changeBitmap
public void changeBitmap()- Parameters:
changeBitmap- the changeBitmap to set
-
getWd
- Returns:
- the wd
-
getHt
- Returns:
- the ht
-
getImage
- Returns:
- the image
-
setImage
- Parameters:
image- the image to set
-
getCurrentPage
protected int getCurrentPage()- Returns:
- current page
-