Java Doc for ScrollingImagePanel.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » media » jai » widget » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » javax.media.jai.widget 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.awt.Container
   java.awt.ScrollPane
      javax.media.jai.widget.ScrollingImagePanel

ScrollingImagePanel
public class ScrollingImagePanel extends ScrollPane implements AdjustmentListener,ComponentListener,MouseListener,MouseMotionListener(Code)
An extension of java.awt.Panel that contains an ImageCanvas and vertical and horizontal scrollbars. The origin of the ImageCanvas is set according to the value of the scrollbars. Additionally, the origin may be changed by dragging the mouse. The window cursor will be changed to Cursor.MOVE_CURSOR for the duration of the drag.

Due to the limitations of BufferedImage, only TYPE_BYTE of band 1, 2, 3, 4, and TYPE_USHORT of band 1, 2, 3 images can be displayed using this widget.

This class has been deprecated. The source code has been moved to the samples/widget directory. These widgets are no longer supported.



Field Summary
protected  booleanbeingDragged
     True if we are in the middle of a mouse drag.
protected  CursordefaultCursor
     A place to save the cursor.
protected  ImageCanvasic
     The ImageCanvas we are controlling.
protected  RenderedImageim
     The RenderedImage displayed by the ImageCanvas.
protected  PointmoveSource
     The initial Point of a mouse drag.
protected  intpanelHeight
     The height of the panel.
protected  intpanelWidth
     The width of the panel.
protected  VectorviewportListeners
     Vector of ViewportListeners.

Constructor Summary
public  ScrollingImagePanel(RenderedImage im, int width, int height)
     Constructs a ScrollingImagePanel of a given size for a given RenderedImage.

Method Summary
public  voidaddViewportListener(ViewportListener l)
    
public  voidadjustmentValueChanged(AdjustmentEvent e)
     Called by the AWT when either scrollbar changes.
public  voidcomponentHidden(ComponentEvent e)
    
public  voidcomponentMoved(ComponentEvent e)
    
public  voidcomponentResized(ComponentEvent e)
    
public  voidcomponentShown(ComponentEvent e)
    
public  ImageCanvasgetImageCanvas()
     Returns the image canvas.
public  DimensiongetPreferredSize()
     Called by the AWT when instantiating the component.
public  intgetXCenter()
     Returns the X co-ordinate of the image center.
public  intgetXOrigin()
    
public  intgetYCenter()
     Returns the Y co-ordinate of the image center.
public  intgetYOrigin()
    
public  voidmouseClicked(MouseEvent me)
     Ignored.
public  voidmouseDragged(MouseEvent me)
     Called by the AWT as the mouse is dragged.
public  voidmouseEntered(MouseEvent me)
     Ignored.
public  voidmouseExited(MouseEvent me)
     Called by the AWT when the mouse leaves the component.
public  voidmouseMoved(MouseEvent me)
     Ignored.
public  voidmousePressed(MouseEvent me)
     Called by the AWT when the mouse button is pressed.
public  voidmouseReleased(MouseEvent me)
     Called by the AWT when the mouse button is released.
public  voidremoveViewportListener(ViewportListener l)
    
public  voidset(RenderedImage im)
    
public  voidsetBounds(int x, int y, int width, int height)
     Called by the AWT during instantiation and when events such as resize occur.
public synchronized  voidsetCenter(int x, int y)
     Set the center of the image to the given coordinates of the scroll window.
public  voidsetOrigin(int x, int y)
     Sets the image origin to a given (x, y) position.
protected synchronized  voidupdateDrag(Point moveTarget)
     Called for each point of a mouse drag.

Field Detail
beingDragged
protected boolean beingDragged(Code)
True if we are in the middle of a mouse drag.



defaultCursor
protected Cursor defaultCursor(Code)
A place to save the cursor.



ic
protected ImageCanvas ic(Code)
The ImageCanvas we are controlling.



im
protected RenderedImage im(Code)
The RenderedImage displayed by the ImageCanvas.



moveSource
protected Point moveSource(Code)
The initial Point of a mouse drag.



panelHeight
protected int panelHeight(Code)
The height of the panel.



panelWidth
protected int panelWidth(Code)
The width of the panel.



viewportListeners
protected Vector viewportListeners(Code)
Vector of ViewportListeners.




Constructor Detail
ScrollingImagePanel
public ScrollingImagePanel(RenderedImage im, int width, int height)(Code)
Constructs a ScrollingImagePanel of a given size for a given RenderedImage.




Method Detail
addViewportListener
public void addViewportListener(ViewportListener l)(Code)
Adds the specified ViewportListener to the panel



adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)(Code)
Called by the AWT when either scrollbar changes.



componentHidden
public void componentHidden(ComponentEvent e)(Code)
Ignored



componentMoved
public void componentMoved(ComponentEvent e)(Code)
Ignored



componentResized
public void componentResized(ComponentEvent e)(Code)
Called when the ImagePanel is resized



componentShown
public void componentShown(ComponentEvent e)(Code)
Ignored



getImageCanvas
public ImageCanvas getImageCanvas()(Code)
Returns the image canvas. Allows mouse listeners to be used on the image canvas.
since:
   JAI 1.1



getPreferredSize
public Dimension getPreferredSize()(Code)
Called by the AWT when instantiating the component.



getXCenter
public int getXCenter()(Code)
Returns the X co-ordinate of the image center.



getXOrigin
public int getXOrigin()(Code)
Returns the XOrigin of the image



getYCenter
public int getYCenter()(Code)
Returns the Y co-ordinate of the image center.



getYOrigin
public int getYOrigin()(Code)
Returns the YOrigin of the image



mouseClicked
public void mouseClicked(MouseEvent me)(Code)
Ignored.



mouseDragged
public void mouseDragged(MouseEvent me)(Code)
Called by the AWT as the mouse is dragged.



mouseEntered
public void mouseEntered(MouseEvent me)(Code)
Ignored.



mouseExited
public void mouseExited(MouseEvent me)(Code)
Called by the AWT when the mouse leaves the component.



mouseMoved
public void mouseMoved(MouseEvent me)(Code)
Ignored.



mousePressed
public void mousePressed(MouseEvent me)(Code)
Called by the AWT when the mouse button is pressed.



mouseReleased
public void mouseReleased(MouseEvent me)(Code)
Called by the AWT when the mouse button is released.



removeViewportListener
public void removeViewportListener(ViewportListener l)(Code)
Removes the specified ViewportListener



set
public void set(RenderedImage im)(Code)
Sets the panel to display the specified image



setBounds
public void setBounds(int x, int y, int width, int height)(Code)
Called by the AWT during instantiation and when events such as resize occur.



setCenter
public synchronized void setCenter(int x, int y)(Code)
Set the center of the image to the given coordinates of the scroll window.



setOrigin
public void setOrigin(int x, int y)(Code)
Sets the image origin to a given (x, y) position. The scrollbars are updated appropriately.



updateDrag
protected synchronized void updateDrag(Point moveTarget)(Code)
Called for each point of a mouse drag.



Fields inherited from java.awt.ScrollPane
final public static int SCROLLBARS_ALWAYS(Code)(Java Doc)
final public static int SCROLLBARS_AS_NEEDED(Code)(Java Doc)
final public static int SCROLLBARS_NEVER(Code)(Java Doc)

Methods inherited from java.awt.ScrollPane
final protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public void doLayout()(Code)(Java Doc)
protected boolean eventTypeEnabled(int type)(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public Adjustable getHAdjustable()(Code)(Java Doc)
public int getHScrollbarHeight()(Code)(Java Doc)
public Point getScrollPosition()(Code)(Java Doc)
public int getScrollbarDisplayPolicy()(Code)(Java Doc)
public Adjustable getVAdjustable()(Code)(Java Doc)
public int getVScrollbarWidth()(Code)(Java Doc)
public Dimension getViewportSize()(Code)(Java Doc)
public boolean isWheelScrollingEnabled()(Code)(Java Doc)
public void layout()(Code)(Java Doc)
public String paramString()(Code)(Java Doc)
public void printComponents(Graphics g)(Code)(Java Doc)
protected void processMouseWheelEvent(MouseWheelEvent e)(Code)(Java Doc)
final public void setLayout(LayoutManager mgr)(Code)(Java Doc)
public void setScrollPosition(int x, int y)(Code)(Java Doc)
public void setScrollPosition(Point p)(Code)(Java Doc)
public void setWheelScrollingEnabled(boolean handleWheel)(Code)(Java Doc)

Methods inherited from java.awt.Container
public Component add(Component comp)(Code)(Java Doc)
public Component add(String name, Component comp)(Code)(Java Doc)
public Component add(Component comp, int index)(Code)(Java Doc)
public void add(Component comp, Object constraints)(Code)(Java Doc)
public void add(Component comp, Object constraints, int index)(Code)(Java Doc)
public synchronized void addContainerListener(ContainerListener l)(Code)(Java Doc)
protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public void applyComponentOrientation(ComponentOrientation o)(Code)(Java Doc)
public boolean areFocusTraversalKeysSet(int id)(Code)(Java Doc)
public int countComponents()(Code)(Java Doc)
public void deliverEvent(Event e)(Code)(Java Doc)
public void doLayout()(Code)(Java Doc)
public Component findComponentAt(int x, int y)(Code)(Java Doc)
public Component findComponentAt(Point p)(Code)(Java Doc)
public float getAlignmentX()(Code)(Java Doc)
public float getAlignmentY()(Code)(Java Doc)
public Component getComponent(int n)(Code)(Java Doc)
public Component getComponentAt(int x, int y)(Code)(Java Doc)
public Component getComponentAt(Point p)(Code)(Java Doc)
public int getComponentCount()(Code)(Java Doc)
public int getComponentZOrder(Component comp)(Code)(Java Doc)
public Component[] getComponents()(Code)(Java Doc)
public synchronized ContainerListener[] getContainerListeners()(Code)(Java Doc)
public Set<AWTKeyStroke> getFocusTraversalKeys(int id)(Code)(Java Doc)
public FocusTraversalPolicy getFocusTraversalPolicy()(Code)(Java Doc)
public Insets getInsets()(Code)(Java Doc)
public LayoutManager getLayout()(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public Dimension getMaximumSize()(Code)(Java Doc)
public Dimension getMinimumSize()(Code)(Java Doc)
public Point getMousePosition(boolean allowChildren) throws HeadlessException(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public Insets insets()(Code)(Java Doc)
public void invalidate()(Code)(Java Doc)
public boolean isAncestorOf(Component c)(Code)(Java Doc)
public boolean isFocusCycleRoot(Container container)(Code)(Java Doc)
public boolean isFocusCycleRoot()(Code)(Java Doc)
final public boolean isFocusTraversalPolicyProvider()(Code)(Java Doc)
public boolean isFocusTraversalPolicySet()(Code)(Java Doc)
public void layout()(Code)(Java Doc)
public void list(PrintStream out, int indent)(Code)(Java Doc)
public void list(PrintWriter out, int indent)(Code)(Java Doc)
public Component locate(int x, int y)(Code)(Java Doc)
public Dimension minimumSize()(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
public void paintComponents(Graphics g)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public Dimension preferredSize()(Code)(Java Doc)
public void print(Graphics g)(Code)(Java Doc)
public void printComponents(Graphics g)(Code)(Java Doc)
protected void processContainerEvent(ContainerEvent e)(Code)(Java Doc)
protected void processEvent(AWTEvent e)(Code)(Java Doc)
public void remove(int index)(Code)(Java Doc)
public void remove(Component comp)(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
public synchronized void removeContainerListener(ContainerListener l)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public void setComponentZOrder(Component comp, int index)(Code)(Java Doc)
public void setFocusCycleRoot(boolean focusCycleRoot)(Code)(Java Doc)
public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc)
public void setFocusTraversalPolicy(FocusTraversalPolicy policy)(Code)(Java Doc)
final public void setFocusTraversalPolicyProvider(boolean provider)(Code)(Java Doc)
public void setFont(Font f)(Code)(Java Doc)
public void setLayout(LayoutManager mgr)(Code)(Java Doc)
public void transferFocusDownCycle()(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)
public void validate()(Code)(Java Doc)
protected void validateTree()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.