java.lang.Object
jpicedt.graphic.view.AbstractView
jpicedt.graphic.view.DefaultViewFactory.CompositeView
- All Implemented Interfaces:
- View
- Enclosing class:
- DefaultViewFactory
- public class DefaultViewFactory.CompositeView
- extends AbstractView
a CompositeView is a graphic representation of a BranchElement
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ptUL
private jpicedt.graphic.PicPoint ptUL
ptLR
private jpicedt.graphic.PicPoint ptLR
producer
protected DefaultViewFactory producer
DefaultViewFactory.CompositeView
public DefaultViewFactory.CompositeView(jpicedt.graphic.model.BranchElement e)
- construct a new View for the given PicGroup
changedUpdate
public void changedUpdate(jpicedt.graphic.event.DrawingEvent.EventType eventType)
- Give notification from the model that a change occured for an element this view is responsible
for rendering. This implementation update the view's bounds from the element's bounding box.
paint
public void paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D a)
- Render the View for the graphic element to the given graphic context. This called "paint"
on each child's view if its bounds rectangle intersects the clip.
- Specified by:
paint
in interface View
- Overrides:
paint
in class AbstractView
- Since:
- jPicEdt 1.3.2
hitTest
public HitInfo hitTest(jpicedt.graphic.event.PEMouseEvent e,
boolean isHighlightVisible)
- Description copied from class:
AbstractView
- Current implementation returns a HitInfo.Point if highlighter is visible and a click
occured on an end-point ; return null otherwise.
- Specified by:
hitTest
in interface View
- Overrides:
hitTest
in class AbstractView
- Since:
- jPicEdt 1.3.2