|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectru.biosoft.graphics.View
ru.biosoft.graphics.ShapeView
General shape view.
| Field Summary | |
protected Brush |
brush
|
protected Pen |
pen
|
| Fields inherited from class ru.biosoft.graphics.View |
ACTIVE, at, BASELINE, BOTTOM, CENTER, HIDE, LEFT, model, RIGHT, shape, TOP, type |
| Constructor Summary | |
ShapeView(java.awt.Shape shape,
Pen pen,
Brush brush)
|
|
| Method Summary | |
Brush |
getBrush()
|
Pen |
getPen()
|
void |
paint(java.awt.Graphics2D g2)
Paints this view on specified Graphics2D. |
void |
setToScale(double sx,
double sy)
Scales view absolutely. |
| Methods inherited from class ru.biosoft.graphics.View |
getBounds, getModel, getShape, intersects, isActive, isVisible, move, 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 |
| Field Detail |
protected Pen pen
protected Brush brush
| Constructor Detail |
public ShapeView(java.awt.Shape shape,
Pen pen,
Brush brush)
| Method Detail |
public Pen getPen()
public Brush getBrush()
public void setToScale(double sx,
double sy)
View
setToScale in class Viewsx - sets factor along the X axis directionsy - sets factor along the Y axis directionpublic void paint(java.awt.Graphics2D g2)
View
paint in class Viewg2 - specified Graphics2D.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||