gzz.view
Class VobVanishingClient

gzz.view.View gzz.view.BFRaster gzz.view.PlainVanishing gzz.view.VobVanishingClient gzz.view.VanishingClient ../../../pegboard/1018/PEG_1018.gen.html#vanishingview vanishingview_small
java.lang.Object
  |
  +--gzz.view.VobVanishingClient
All Implemented Interfaces:
java.lang.Cloneable, VanishingClient, View, View.NamedView

public class VobVanishingClient
extends java.lang.Object
implements VanishingClient, View.NamedView, java.lang.Cloneable


Nested Class Summary
 
Nested classes inherited from class gzz.view.View
View.NamedView
 
Field Summary
static boolean dbg
           
 PlainVanishing vanishing
           
 
Fields inherited from interface gzz.view.VanishingClient
CENTER
 
Fields inherited from interface gzz.view.View
rcsid
 
Constructor Summary
VobVanishingClient()
           
VobVanishingClient(boolean enlargeScale)
          Create a new VobVanishingClient.
 
Method Summary
 java.lang.Object clone()
           
 void connect(Cell cell1, Cell cell2, int dx, int dy)
          There should be a connection between the given cells.
 java.lang.String getDefaultName()
           
 java.lang.Object getVobSize(Cell c, float fract, int flags, java.awt.Dimension outDim)
           
protected static void pa(java.lang.String s)
           
 void place(Cell c, java.lang.Object o, float fract, float x0, float y0, float x1, float y1, float depth, float rot)
           
 void render(VobScene vs, int into, ViewContext context)
          Draw a representation of the structure into a VobScene.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbg

public static boolean dbg

vanishing

public PlainVanishing vanishing
Constructor Detail

VobVanishingClient

public VobVanishingClient()

VobVanishingClient

public VobVanishingClient(boolean enlargeScale)
Create a new VobVanishingClient.

Parameters:
enlargeScale - Whether scales above 1 should be allowed for cells.
Method Detail

pa

protected static void pa(java.lang.String s)

getDefaultName

public java.lang.String getDefaultName()
Specified by:
getDefaultName in interface View.NamedView

render

public void render(VobScene vs,
                   int into,
                   ViewContext context)
Description copied from interface: View
Draw a representation of the structure into a VobScene.

Specified by:
render in interface View
Parameters:
vs - The VobScene to render vobs into.
context - Metadata about what to render (e.g. cursor position).

getVobSize

public java.lang.Object getVobSize(Cell c,
                                   float fract,
                                   int flags,
                                   java.awt.Dimension outDim)
Specified by:
getVobSize in interface VanishingClient

place

public void place(Cell c,
                  java.lang.Object o,
                  float fract,
                  float x0,
                  float y0,
                  float x1,
                  float y1,
                  float depth,
                  float rot)
Specified by:
place in interface VanishingClient

connect

public void connect(Cell cell1,
                    Cell cell2,
                    int dx,
                    int dy)
Description copied from interface: VanishingClient
There should be a connection between the given cells. If one of the cells hasn't yet been placed, this means that a stub in that direction should be drawn.

Specified by:
connect in interface VanishingClient

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object