|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent org.geotools.gui.swing.ZoomPane
Base class for widget with a zoomable content. User can perform zooms using keyboard, menu or mouse. is an abstract class. Subclass must override at least two methods:
getArea()
, which must return a bounding box for the content to paint. This
area can be expressed in arbitrary units. For example, an object wanting to display a
geographic map with a content ranging from 10? to 15?E and 40? to 45?N should override
this method as follows:
public Rectangle2D getArea() { return new Rectangle2D.Double(10, 40, 5, 5); }
paintComponent(Graphics2D)
, which must paint the widget
content. Implementation must invoke
graphics.transform({link #zoom})
somewhere in its code in order to perform the zoom. Note that, by default, the
zoom is initialized in such a way that the y axis points upwards,
like the convention in geometry. This is as opposed to the default Java2D axis orientation,
where the y axis points downwards. If the implementation wants to paint text,
it should do this with the default transform. Example:
protected void paintComponent(final Graphics2D graphics) {
graphics.clip({link #getZoomableBounds getZoomableBounds}(null));
final AffineTransform textTr = graphics.getTransform();
graphics.transform({link #zoom});
// Paint the widget here, using logical coordinates. The
// coordinate system is the same as getArea()
's one.
graphics.setTransform(textTr);
// Paint any text here, in pixel coordinates.
}
Subclass can also override reset()
, which sets up the initial zoom. The
default implementation sets up the initial zoom in such a way that the following relations are
approximately held:
Logical coordinates provided bygetPreferredArea()
, after an affine transform described byzoom
, match pixel coordinates provided bygetZoomableBounds(Rectangle)
.
The "preferred area" is initially the same as getArea()
. The user can specify a
different preferred area with setPreferredArea(java.awt.geom.Rectangle2D)
. The user can also reduce zoomable
bounds by inserting an empty border around the widget, e.g.:
setBorder(BorderFactory.createEmptyBorder(top, left, bottom, right));
transform(java.awt.geom.AffineTransform)
. Derived classes can redefine this method if they want to take particular
actions during zooms, for example, modifying the minimum and maximum of a graph's axes.
The table below shows the keyboard presses assigned to each zoom:
Key | Purpose | Action name |
---|---|---|
Scroll up | "Up" | |
Scroll down | "Down" | |
Scroll left | "Left" | |
Scroll right | "Right" | |
Zoom in | "ZoomIn" | |
Zoom out | "ZoomOut" | |
Zoom | "Zoom" | |
Default zoom | "Reset" | |
Ctrl+ | Anti-clockwise rotation | "RotateLeft" |
Ctrl+ | Clockwise rotation | "RotateRight" |
getActionMap()
.get("ZoomIn")
.
Note: JScrollPane
objects are not suitable for adding scrollbars to a
object. Instead, use createScrollPane()
. Once again, all
movements performed by the user through the scrollbars will be translated by calls to
transform(java.awt.geom.AffineTransform)
.
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
static int |
DEFAULT_ZOOM
Constant indicating default zoom close to the maximum permitted zoom. |
static int |
RESET
Constant indicating the resetting of scale, rotation and translation to a default value which makes the whole graphic appear in a window. |
static int |
ROTATE
Constant indicating a rotation. |
static int |
SCALE_X
Constant indicating the scale changes on the x axis. |
static int |
SCALE_Y
Constant indicating the scale changes on the y axis. |
static int |
TRANSLATE_X
Constant indicating the translations on the x axis. |
static int |
TRANSLATE_Y
Constant indicating the translations on the y axis. |
static int |
UNIFORM_SCALE
Constant indicating the scale changes on the x and y axes, with the added condition that these changes must be uniform. |
protected java.awt.geom.AffineTransform |
zoom
Affine transform containing zoom factors, translations and rotations. |
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(int type)
Construct a . |
Method Summary | |
void |
addMouseListener(java.awt.event.MouseListener listener)
Adds an object to the list of objects interested in being notified about mouse events. |
void |
addZoomChangeListener(ZoomChangeListener listener)
Adds an object to the list of objects interested in being notified about zoom changes. |
void |
buildNavigationMenu(javax.swing.JMenu menu)
Adds navigation options to the specified menu. |
void |
correctApparentPixelPosition(java.awt.geom.Point2D point)
Corrects a pixel's coordinates for removing the effect of the magnifying glass. |
javax.swing.JComponent |
createScrollPane()
Returns an object which displays this with the scrollbars. |
protected void |
fireZoomChanged(java.awt.geom.AffineTransform change)
Signals that a zoom change has taken place. |
abstract java.awt.geom.Rectangle2D |
getArea()
Returns a bounding box that contains the logical coordinates of all data that may be displayed in this . |
protected java.awt.Dimension |
getDefaultSize()
Returns the default size for this component. |
java.awt.Insets |
getInsets()
Returns the Insets of this component. |
java.awt.Insets |
getInsets(java.awt.Insets insets)
Returns the Insets of this component. |
java.awt.Paint |
getMagnifierBorder()
Returns the color of the magnifying glass's border. |
java.awt.Paint |
getMagnifierGlass()
Returns the color with which to tint magnifying glass. |
protected javax.swing.JPopupMenu |
getMagnifierMenu(java.awt.event.MouseEvent event)
Method called automatically when the user clicks on the right mouse button inside the magnifying glass. |
protected java.awt.Shape |
getMouseSelectionShape(java.awt.geom.Point2D point)
Returns the geometric shape to be used to delimitate an area. |
protected javax.swing.JPopupMenu |
getPopupMenu(java.awt.event.MouseEvent event)
Method called automatically when the user clicks on the right mouse button. |
java.awt.geom.Rectangle2D |
getPreferredArea()
Returns the logical coordinates of the region that we want to see displayed the first time that appears on the screen. |
protected java.awt.geom.Dimension2D |
getPreferredPixelSize()
Returns the preferred pixel size for a close zoom. |
double |
getScaleFactor()
Returns the current zoom scale factor. |
java.awt.geom.Rectangle2D |
getVisibleArea()
Returns the logical coordinates of the region visible on the screen. |
protected java.awt.Rectangle |
getZoomableBounds(java.awt.Rectangle bounds)
Returns the bounding box (in pixel coordinates) of the zoomable area. |
boolean |
hasPreferredArea()
Indicates whether the logical coordinates of a region have been defined. |
boolean |
isMagnifierEnabled()
Indicates whether or not the magnifying glass is allowed to be displayed on this component. |
boolean |
isMagnifierVisible()
Indicates whether or not the magnifying glass is visible. |
boolean |
isPaintingWhileAdjusting()
Indicates whether or not this object should be repainted when the user moves the scrollbar slider. |
protected void |
mouseSelectionPerformed(java.awt.Shape area)
Method called automatically after the user selects an area with the mouse. |
protected void |
paintComponent(java.awt.Graphics graphics)
Paints this component. |
protected abstract void |
paintComponent(java.awt.Graphics2D graphics)
Paints this component. |
protected void |
paintMagnifier(java.awt.Graphics2D graphics)
Paints the magnifying glass. |
protected void |
printComponent(java.awt.Graphics graphics)
Prints this component. |
protected void |
printComponent(java.awt.Graphics2D graphics)
Prints this component. |
void |
removeZoomChangeListener(ZoomChangeListener listener)
Removes an object from the list of objects interested in being notified about zoom changes. |
void |
repaint(long tm,
int x,
int y,
int width,
int height)
Declares that a part of this pane needs to be repainted. |
void |
reset()
Reinitializes the affine transform zoom in order to cancel any zoom, rotation or
translation. |
protected void |
reset(java.awt.Rectangle zoomableBounds,
boolean yAxisUpward)
Reinitializes the affine transform zoom in order to cancel any zoom, rotation or
translation. |
void |
scrollRectToVisible(java.awt.Rectangle rect)
Modifies the position in pixels of the visible part of . |
void |
setMagnifierBorder(java.awt.Paint color)
Set the color of the magnifying glass's border. |
void |
setMagnifierEnabled(boolean enabled)
Specifies whether or not the magnifying glass is allowed to be displayed on this component. |
void |
setMagnifierGlass(java.awt.Paint color)
Set the color with which to tint magnifying glass. |
void |
setMagnifierVisible(boolean visible)
Displays or hides the magnifying glass. |
void |
setPaintingWhileAdjusting(boolean flag)
Defines whether or not this object should repaint the map when the user moves the scrollbar slider. |
void |
setPreferredArea(java.awt.geom.Rectangle2D area)
Specifies the logical coordinates of the region that we want to see displayed the first time that appears on the screen. |
protected void |
setResetPolicy(boolean fill)
Set the policy for the zoom when the content is initially drawn or when the user resets the zoom. |
void |
setVisibleArea(java.awt.geom.Rectangle2D logicalBounds)
Defines the limits of the visible part, in logical coordinates. |
void |
tieModels(javax.swing.BoundedRangeModel x,
javax.swing.BoundedRangeModel y)
Synchronises the position and the range of the models x and y with the position of the zoom. |
void |
transform(java.awt.geom.AffineTransform change)
Changes the zoom by applying an affine transform. |
void |
transformPixels(java.awt.geom.AffineTransform change)
Changes the zoom by applying an affine transform. |
void |
untieModels(javax.swing.BoundedRangeModel x,
javax.swing.BoundedRangeModel y)
Cancels the synchronisation between the specified x and y models and the zoom of this object. |
void |
updateUI()
Informs that the GUI has changed. |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SCALE_X
public static final int SCALE_Y
public static final int UNIFORM_SCALE
SCALE_X
and SCALE_Y
. The inverse, however, (SCALE_X
|SCALE_Y
)
doesn't imply .
public static final int TRANSLATE_X
public static final int TRANSLATE_Y
public static final int ROTATE
public static final int RESET
reset()
.
public static final int DEFAULT_ZOOM
SCALE_X
and SCALE_Y
flags is not also specified.
protected final java.awt.geom.AffineTransform zoom
Graphics2D.transform
(zoom)
.
Constructor Detail |
public ZoomPane(int type) throws java.lang.IllegalArgumentException
type
- Allowed zoom type. It can be a bitwise combination of the following constants:
SCALE_X
, SCALE_Y
, UNIFORM_SCALE
, TRANSLATE_X
,
TRANSLATE_Y
, ROTATE
, RESET
and DEFAULT_ZOOM
.
java.lang.IllegalArgumentException
- If is invalid.Method Detail |
public void reset()
zoom
in order to cancel any zoom, rotation or
translation. The default implementation initializes the affine transform zoom
in
order to make the y axis point upwards and make the whole of the region covered
by the getPreferredArea()
logical coordinates appear in the panel.
Note: for the derived classes: is the only method of
which doesn't have to pass through transform(AffineTransform)
to modify the zoom.
This exception is necessary to avoid falling into an infinite loop.
protected final void reset(java.awt.Rectangle zoomableBounds, boolean yAxisUpward)
zoom
in order to cancel any zoom, rotation or
translation. The argument indicates whether the y axis should
point upwards. The value lets it point downwards. This method is offered
for convenience sake for derived classes which want to redefine reset()
.
zoomableBounds
- Coordinates, in pixels, of the screen space in which to draw.
This argument will usually be
getZoomableBounds
(null)
.yAxisUpward
- if the y axis should point upwards rather than
downwards.protected void setResetPolicy(boolean fill)
public abstract java.awt.geom.Rectangle2D getArea()
public final boolean hasPreferredArea()
setPreferredArea(java.awt.geom.Rectangle2D)
has been called with a non null argument.
public final java.awt.geom.Rectangle2D getPreferredArea()
setPreferredArea(java.awt.geom.Rectangle2D)
, this region will be returned.getArea()
will be returned.
public final void setPreferredArea(java.awt.geom.Rectangle2D area)
public final java.awt.geom.Rectangle2D getVisibleArea()
public void setVisibleArea(java.awt.geom.Rectangle2D logicalBounds) throws java.lang.IllegalArgumentException
zoom
contains
a rotation, this rotation will not be modified.
logicalBounds
- Logical coordinates of the region to be displayed.
java.lang.IllegalArgumentException
- if is empty.protected java.awt.Rectangle getZoomableBounds(java.awt.Rectangle bounds)
JComponent.getBounds(Rectangle)
, except that the zoomable area may be smaller than the whole
widget area. For example, a chart needs to keep some space for axes around the zoomable area.
Another difference is that pixel coordinates are relative to the widget, i.e. the (0,0)
coordinate lies on the upper left corner, no matter what its location on
screen.
invokes when it needs to set up an initial
zoom
value. Subclasses should also set the clip area to this bounding box in their
paintComponent(Graphics2D)
method before setting the graphics transform.
For example:
graphics.clip(getZoomableBounds(null)); graphics.transform(zoom
);
bounds
- An optional pre-allocated rectangle, or to create a new one. This
argument is useful if the caller wants to avoid allocating a new object on the heap.
protected java.awt.Dimension getDefaultSize()
JComponent.getPreferredSize()
if no preferred size has been explicitly set with
JComponent.setPreferredSize(java.awt.Dimension)
.
protected java.awt.geom.Dimension2D getPreferredPixelSize()
getArea()
.
public double getScaleFactor()
getArea()
are
expressed in metres). Scale factors for X and Y axes can be computed separately using the
following equations:
UNIFORM_SCALE
type.
public void transform(java.awt.geom.AffineTransform change)
zoom
.concatenate
(change);fireZoomChanged
(change);repaint
(getZoomableBounds
(null));
change
- The zoom change, as an affine transform in logical coordinates. If
is the identity transform, then this method does nothing and
listeners are not notified.public void transformPixels(java.awt.geom.AffineTransform change)
zoom
.preConcatenate
(change);fireZoomChanged
(change translated in logical units);repaint
(getZoomableBounds
(null));
change
- The zoom change, as an affine transform in pixel coordinates. If
is the identity transform, then this method does nothing
and listeners are not notified.public void addZoomChangeListener(ZoomChangeListener listener)
public void removeZoomChangeListener(ZoomChangeListener listener)
public void addMouseListener(java.awt.event.MouseListener listener)
protected void fireZoomChanged(java.awt.geom.AffineTransform change)
addZoomChangeListener(org.geotools.gui.swing.event.ZoomChangeListener)
method will be notified of the change as soon as possible.
change
- Affine transform which represents the change in the zoom. That is
and are the affine transforms of the old and new zoom
respectively. Therefore, the relation
newZoom=oldZoom.concatenate
(change)
must be respected (to within rounding errors). Note: This method can modify
to combine several consecutive calls of
in a single transformation.protected void mouseSelectionPerformed(java.awt.Shape area)
area
- Area selected by the user, in logical coordinates.protected java.awt.Shape getMouseSelectionShape(java.awt.geom.Point2D point)
Ellipse2D
vs Rectangle2D
) and any of its
parameters not related to its position (e.g. corner rounding in a rectangle
RoundRectangle2D
).
The returned shape will generally be from a class derived from RectangularShape
,
but can also be from the class Line2D
. Any other class risks firing a
ClassCastException
at execution.
The default implementation always returns a Rectangle2D
object.
point
- Logical coordinates of the mouse at the moment the button is pressed. This
information can be used by derived classes that wish to consider the mouse position
before choosing a geometric shape.
public boolean isMagnifierEnabled()
public void setMagnifierEnabled(boolean enabled)
setMagnifierVisible
(true)
being ignored.
public boolean isMagnifierVisible()
setMagnifierVisible(boolean)
to make it appear.
public void setMagnifierVisible(boolean visible)
public java.awt.Paint getMagnifierGlass()
public void setMagnifierGlass(java.awt.Paint color)
public java.awt.Paint getMagnifierBorder()
public void setMagnifierBorder(java.awt.Paint color)
public final void correctApparentPixelPosition(java.awt.geom.Point2D point)
correctApparentPixelPosition
in interface DeformableViewer
point
- In input, a pixel's coordinate as it appears on the screen. In output, the
coordinate that the same pixel would have if the magnifier wasn't presents.public void buildNavigationMenu(javax.swing.JMenu menu)
protected javax.swing.JPopupMenu getPopupMenu(java.awt.event.MouseEvent event)
event
- Mouse event. This object contains the mouse coordinates
in geographic coordinates (as well as pixel coordinates).
protected javax.swing.JPopupMenu getMagnifierMenu(java.awt.event.MouseEvent event)
event
- Mouse event containing amongst others, the mouse position.
public javax.swing.JComponent createScrollPane()
public void tieModels(javax.swing.BoundedRangeModel x, javax.swing.BoundedRangeModel y)
x
- Model of the horizontal scrollbar or if there isn't one.y
- Model of the vertical scrollbar or if there isn't one.public void untieModels(javax.swing.BoundedRangeModel x, javax.swing.BoundedRangeModel y)
ChangeListener
and
ZoomChangeListener
objects that were created are deleted.
x
- Model of the horizontal scrollbar or if there isn't one.y
- Model of the vertical scrollbar or if there isn't one.public void scrollRectToVisible(java.awt.Rectangle rect)
getArea()
region with the current zoom (Note: can be obtained
by JComponent.getPreferredSize()
if JComponent.setPreferredSize(java.awt.Dimension)
hasn't been called with a non-null
value). Therefore, by definition, the region getArea()
converted into pixel space
would give the rectangle
bounds=Rectangle(0, 0, ,viewSize.width, ,viewSize.height)
.
This method allows us to define the sub-region of which must appear in the window.
public boolean isPaintingWhileAdjusting()
tieModels(javax.swing.BoundedRangeModel, javax.swing.BoundedRangeModel)
method.
The default value is , which means that will wait until the
user releases the slider before repainting.
public void setPaintingWhileAdjusting(boolean flag)
public void repaint(long tm, int x, int y, int width, int height)
protected void paintMagnifier(java.awt.Graphics2D graphics)
paintComponent(Graphics2D)
if a magnifying glass is visible.
protected abstract void paintComponent(java.awt.Graphics2D graphics)
graphics.transform(zoom
)
.
protected void printComponent(java.awt.Graphics2D graphics)
paintComponent(Graphics2D)
.
protected final void paintComponent(java.awt.Graphics graphics)
paintComponent(Graphics2D)
instead.
protected final void printComponent(java.awt.Graphics graphics)
printComponent(Graphics2D)
instead.
public java.awt.Insets getInsets(java.awt.Insets insets)
public final java.awt.Insets getInsets()
getInsets(Insets)
.
public void updateUI()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |