Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.graphic.view
Class DefaultViewFactory.RectangleView  view DefaultViewFactory.RectangleView download DefaultViewFactory.RectangleView.java

java.lang.Object
  extended byjpicedt.graphic.view.AbstractView
      extended byjpicedt.graphic.view.DefaultViewFactory.LeafElementView
          extended byjpicedt.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 class DefaultViewFactory.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 interface View
Overrides:
paint in class DefaultViewFactory.LeafElementView
Since:
jPicEdt 1.3.2