ru.biosoft.graphics
Class BoxView

java.lang.Object
  extended byru.biosoft.graphics.View
      extended byru.biosoft.graphics.ShapeView
          extended byru.biosoft.graphics.BoxView

public class BoxView
extends ShapeView


Field Summary
 
Fields inherited from class ru.biosoft.graphics.ShapeView
brush, pen
 
Fields inherited from class ru.biosoft.graphics.View
ACTIVE, at, BASELINE, BOTTOM, CENTER, HIDE, LEFT, model, RIGHT, shape, TOP, type
 
Constructor Summary
BoxView(Pen pen, Brush brush, float x, float y, float width, float height)
           
BoxView(Pen pen, Brush brush, int x, int y, int width, int height)
           
BoxView(Pen pen, Brush brush, java.awt.Rectangle rect)
           
BoxView(Pen pen, Brush brush, java.awt.geom.RectangularShape shape)
           
 
Method Summary
 java.awt.Rectangle getBounds()
          Returns an integer Rectangle that completely encloses the View.
 void move(int sx, int sy)
          Moves View to the new location using specified offsets.
 void resize(int sx, int sy)
           
 
Methods inherited from class ru.biosoft.graphics.ShapeView
getBrush, getPen, paint, setToScale
 
Methods inherited from class ru.biosoft.graphics.View
getModel, getShape, intersects, isActive, isVisible, move, scale, setActive, setLocation, setLocation, setModel, setVisible, updateBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoxView

public BoxView(Pen pen,
               Brush brush,
               java.awt.Rectangle rect)

BoxView

public BoxView(Pen pen,
               Brush brush,
               int x,
               int y,
               int width,
               int height)

BoxView

public BoxView(Pen pen,
               Brush brush,
               float x,
               float y,
               float width,
               float height)

BoxView

public BoxView(Pen pen,
               Brush brush,
               java.awt.geom.RectangularShape shape)
Method Detail

getBounds

public java.awt.Rectangle getBounds()
Description copied from class: View
Returns an integer Rectangle that completely encloses the View.

Overrides:
getBounds in class View
Returns:
an integer Rectangle that completely encloses the View.

move

public void move(int sx,
                 int sy)
Description copied from class: View
Moves View to the new location using specified offsets.

Specified by:
move in class View
Parameters:
sx - offset along the X axis direction.
sy - offset along the Y axis direction.

resize

public void resize(int sx,
                   int sy)


Copyright © 2001-2003 Biosof.Ru. All Rights Reserved.