Lines Matching defs:view

46  * brings new things into view at the top of the picture and loses
54 * <ol><li>The view and parent view and checked to see if they are
60 * the viewport, stop and repaint the whole view region.
63 * <li>Message the view to repaint the newly visible region.
130 * operations instead of by accessing the view object to construct the
139 /** The view image used for a backing store. */
152 * the flag is off and the view repaints normally. Another approach
161 * Listener that is notified each time the view changes size.
215 // portion of the view (in other words, it copies garbage). We are
218 // times to different parts of the view. For that reason when a blit
226 // In the mean time, if the view is asked to scroll and waitingForRepaint
262 * Whether or not a valid view has been installed.
267 * When view is changed we have to synchronize scrollbar values
366 * Scrolls the view so that <code>Rectangle</code>
367 * within the view becomes visible.
369 * This attempts to validate the view before scrolling if the
370 * view is currently not valid - <code>isValid</code> returns false.
387 Component view = getView();
389 if (view == null) {
392 if (!view.isValid()) {
393 // If the view is not valid, validate. scrollRectToVisible
394 // may fail if the view is not valid first, contentRect
405 Dimension viewSize = view.getSize();
412 // Only constrain the location if the view is valid. If the
413 // the view isn't valid, it typically indicates the view
416 if (view.isValid()) {
451 // indicating part of the view is invalid. There
550 * The viewport "scrolls" its child (called the "view") by the
551 * normal parent/child clipping (typically the view is moved in
662 Component view = getView();
663 if (view != null) {
664 return view.getLocation();
736 // If the view is smaller than the viewport and we are not opaque
738 // clip. Otherwise, as the bounds of the view vary, we will
804 // Paint the rest of the view; the part that has just been exposed.
926 Component view = getView();
928 (view instanceof JComponent) && view.isOpaque();
945 * (<code>view</code>), which can be <code>null</code>.
947 * @param view the viewport's new lightweight child
951 public void setView(Component view) {
964 if (view != null) {
965 super.addImpl(view, null, -1);
967 view.addComponentListener(viewListener);
971 // Only fire a change if a view has been installed.
974 else if (view != null) {
986 * If the view's size hasn't been explicitly set, return the
987 * preferred size, otherwise return the view's current size.
988 * If there is no view, return 0,0.
990 * @return a <code>Dimension</code> object specifying the size of the view
993 Component view = getView();
995 if (view == null) {
999 return view.getSize();
1002 return view.getPreferredSize();
1008 * Sets the size of the view. A state changed event will be fired.
1011 * size of the view
1014 Component view = getView();
1015 if (view != null) {
1016 Dimension oldSize = view.getSize();
1022 view.setSize(newSize);
1030 * Returns the view coordinates that appear in the upper left
1031 * hand corner of the viewport, or 0,0 if there's no view.
1036 Component view = getView();
1037 if (view != null) {
1038 Point p = view.getLocation();
1050 * Sets the view coordinates that appear in the upper left
1051 * hand corner of the viewport, does nothing if there's no view.
1057 Component view = getView();
1058 if (view == null) {
1068 if (view instanceof JComponent) {
1069 JComponent c = (JComponent)view;
1074 Rectangle r = view.getBounds();
1079 /* The view scrolls in the opposite direction to mouse
1088 // The cast to JComponent will work, if view is not
1090 JComponent jview = (JComponent)view;
1097 view.setLocation(newX, newY);
1114 view.setLocation(newX, newY);
1121 view.setLocation(newX, newY);
1134 * This is the visible part of the view, in view coordinates.
1137 * the view using view coordinates.
1225 * Returns the size of the visible part of the view in view coordinates.
1227 * @return a <code>Dimension</code> object giving the size of the view
1236 * Converts a size in pixel coordinates to view coordinates.
1241 * @return a <code>Dimension</code> object converted to view coordinates
1248 * Converts a point in pixel coordinates to view coordinates.
1253 * @return a <code>Point</code> object converted to view coordinates
1261 * Sets the size of the visible part of the view using view coordinates.
1264 * the size of the view
1275 * A listener for the view.
1295 * Creates a listener for the view.
1317 * notified each time the view's
1490 * If the repaint manager has a dirty region for the view, the view is
1496 JComponent view = (JComponent) getView();
1498 dirty.x += view.getX();
1499 dirty.y += view.getY();
1530 JComponent view = (JComponent) getView();
1553 // Prepare the rest of the view; the part that has just been
1555 Rectangle r = view.getBounds().intersection(blitPaint);
1556 r.x -= view.getX();
1557 r.y -= view.getY();
1559 blitDoubleBuffered(view, g, r.x, r.y, r.width, r.height,
1574 // not setDoubleBuffered(true) was invoked on the view.
1577 private void blitDoubleBuffered(JComponent view, Graphics g,
1602 int x = view.getX();
1603 int y = view.getY();
1606 view.paintForceDoubleBuffered(g);
1611 * Called to paint the view, usually when <code>blitPaint</code>
1618 JComponent view = (JComponent)getView();
1620 if (view.getWidth() >= getWidth()) {
1621 // Graphics is relative to JViewport, need to map to view's
1623 int x = view.getX();
1624 int y = view.getY();
1627 view.paintForceDoubleBuffered(g);
1633 // bigger than the view we start painting from the viewport.
1646 * when the view isn't showing will work,