|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.sf.sdedit.ui.components.ZoomPane
public class ZoomPane
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ZoomPane()
|
|
ZoomPane(boolean enableScrolling)
|
|
| Method Summary | |
|---|---|
void |
addMouseListener(MouseListener mouseListener)
|
void |
addMouseMotionListener(MouseMotionListener mouseMotionListener)
|
Observable |
asObservable()
|
void |
fitHeight()
|
void |
fitSize()
|
void |
fitWidth()
|
JPanel |
getPanel()
|
double |
getScale()
|
JScrollPane |
getScrollPane()
|
void |
home()
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
redraw()
|
void |
scrollToBottom()
|
void |
scrollToPosition(float xratio,
float yratio)
|
void |
setRoot(JComponent root)
Sets the JComponent whose cursor is changed when the setCursor method is called on the internal JPanel containing the zoomable content. |
void |
setScale(double scale)
|
void |
setViewportView(Zoomable viewPort)
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ZoomPane()
public ZoomPane(boolean enableScrolling)
| Method Detail |
|---|
public void setRoot(JComponent root)
root - the JComponent whose cursor is changed when the
setCursor method is called on the internal
JPanel containing the zoomable contentpublic void addMouseListener(MouseListener mouseListener)
addMouseListener in interface ScalableaddMouseListener in class Componentpublic void addMouseMotionListener(MouseMotionListener mouseMotionListener)
addMouseMotionListener in interface ScalableaddMouseMotionListener in class Componentpublic JPanel getPanel()
public void scrollToBottom()
public void scrollToPosition(float xratio,
float yratio)
public void home()
public void fitWidth()
fitWidth in interface Scalablepublic void fitHeight()
fitHeight in interface Scalablepublic void fitSize()
fitSize in interface Scalablepublic void setScale(double scale)
setScale in interface Scalablepublic void redraw()
public JScrollPane getScrollPane()
public void setViewportView(Zoomable viewPort)
public double getScale()
getScale in interface Scalablepublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic Observable asObservable()
asObservable in interface Scalable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||