|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjpicedt.graphic.view.AbstractView
jpicedt.graphic.view.CompositeView
public class CompositeView
a CompositeView is a graphic representation of a BranchElement
Field Summary |
---|
Fields inherited from class jpicedt.graphic.view.AbstractView |
---|
bounds, element, highlighter |
Fields inherited from interface jpicedt.graphic.view.ViewConstants |
---|
BARBELL_SIZE, CLICK_DISTANCE |
Constructor Summary | |
---|---|
CompositeView(BranchElement e)
construct a new View for the given PicGroup |
Method Summary | |
---|---|
void |
changedUpdate(DrawingEvent.EventType eventType)
Give notification from the model that a change occured for an element this view is responsible for rendering. |
HitInfo |
hitTest(PEMouseEvent e)
Returns a HitInfo corresponding to the given mouse-event. |
void |
paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D a)
Render the View for the graphic element to the given graphic context. |
Methods inherited from class jpicedt.graphic.view.AbstractView |
---|
getBounds, getContainer, getDrawing, getElement, getGraphics, getHighlighter, getParentView, getViewFactory, hitTest, paintHighlighter, repaint, setElement, setHighlighter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeView(BranchElement e)
Method Detail |
---|
public void changedUpdate(DrawingEvent.EventType eventType)
public void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D a)
allocation
- the current graphic clippublic HitInfo hitTest(PEMouseEvent e)
AbstractView
hitTest
in class AbstractView
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |