org.fenfire.loom
Class SundewWheelView

java.lang.Object
  |
  +--org.fenfire.loom.WheelView
        |
        +--org.fenfire.loom.SundewWheelView
All Implemented Interfaces:
View

public class SundewWheelView
extends WheelView

A sundew like simple wheel view.


Field Summary
static boolean dbg
           
 
Fields inherited from class org.fenfire.loom.WheelView
gapx, gapy, maxDepth, maxrota, negConn, negStub, nodeView, posConn, posStub, radius, sizex, sizey
 
Constructor Summary
SundewWheelView(NodeView nodeView)
          SundewWheelView
 
Method Summary
protected  void renderDepth(VobScene sc, int into, int focusCs, Cursor c, Pair focus, Pair oldFocus, int dir, double cura, double rota, float r, int midx, int midy, int depth)
          Determines how the next depth should be drawn and finally calls renderSomewardConnections.
 
Methods inherited from class org.fenfire.loom.WheelView
getNodes, getNodes, getRotationAngle, getSubNodeCount, render, renderSomewardConnections, x, y
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbg

public static boolean dbg
Constructor Detail

SundewWheelView

public SundewWheelView(NodeView nodeView)
SundewWheelView

Parameters:
nodeView - The view used to show the individual nodes.
Method Detail

renderDepth

protected void renderDepth(VobScene sc,
                           int into,
                           int focusCs,
                           Cursor c,
                           Pair focus,
                           Pair oldFocus,
                           int dir,
                           double cura,
                           double rota,
                           float r,
                           int midx,
                           int midy,
                           int depth)
Determines how the next depth should be drawn and finally calls renderSomewardConnections. This is the most usual function to be overwritten in other WheelViews.

Overrides:
renderDepth in class WheelView
Parameters:
sc - VobScene to draw the view into.
into - The parent coordinate system transformation to use.
focusCs - The CS transformation used to place the focuced node of the previous drawing depth.
c - The main cursor, set to the globally focused node of the view.
focus - Pair containing the focused cell of current drawing depth and property, which connects its to the previously locally focused node.
oldFocus - Pair containing the focused node of the previous drawing depth and property, which connects its to the currently locally focused node.
dir - Is the current collection of nodes located to either positive or negative direction from the focused node.
rota - The rotation angle between drawn nodes in curren collection.
r - The radius of drawn nodes from the coordinate (midx, midy).
midx - The x coordinate of the center of the wheel.
midy - The y coordinate of the center of the wheel.
depth - The Current drawing depth. Depth is increased by one, when proceeding deeper.
cura - The angle between focused node and the selected node of curren nodes collection.