|
|||||||||
Home >> All >> jpicedt >> graphic >> [ view overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
jpicedt.graphic.view
Class DefaultViewFactory.RectangleView

java.lang.Objectjpicedt.graphic.view.AbstractView
jpicedt.graphic.view.DefaultViewFactory.LeafElementView
jpicedt.graphic.view.DefaultViewFactory.RectangleView
- All Implemented Interfaces:
- View
- Enclosing class:
- DefaultViewFactory
- public class DefaultViewFactory.RectangleView
- extends DefaultViewFactory.LeafElementView
a View for rendering rectangles
Field Summary |
Fields inherited from class jpicedt.graphic.view.DefaultViewFactory.LeafElementView |
interiorPaint, lineWidth, outlinePaint, outlineStroke, shape |
Fields inherited from class jpicedt.graphic.view.AbstractView |
bounds, element |
Fields inherited from interface jpicedt.graphic.view.View |
BARBELL_SIZE, CLICK_DISTANCE |
Constructor Summary | |
DefaultViewFactory.RectangleView(jpicedt.graphic.model.PicRectangle rect)
construct a new View for the given PicRectangle |
Method Summary | |
void |
paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D a)
Render the View to the given graphic context. |
protected void |
syncShape()
Synchronize the "shape" variable with the model |
Methods inherited from class jpicedt.graphic.view.DefaultViewFactory.LeafElementView |
changedUpdate, getViewFactory, hitTest, syncAttributes, syncBounds |
Methods inherited from class jpicedt.graphic.view.AbstractView |
getBounds, getContainer, getDrawing, getElement, getGraphics, getParentView, paintHighlighter, repaint, setElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
DefaultViewFactory.RectangleView
public DefaultViewFactory.RectangleView(jpicedt.graphic.model.PicRectangle rect)
- construct a new View for the given PicRectangle
Method Detail |
syncShape
protected void syncShape()
- Synchronize the "shape" variable with the model
- Overrides:
syncShape
in classDefaultViewFactory.LeafElementView
paint
public void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D a)
- Render the View to the given graphic context.
This implementation render the interior first, then the outline.
- Specified by:
paint
in interfaceView
- Overrides:
paint
in classDefaultViewFactory.LeafElementView
- Since:
- jPicEdt 1.3.2
|
|||||||||
Home >> All >> jpicedt >> graphic >> [ view overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |