org.jmol.shape
Class FontLineShapeRenderer

java.lang.Object
  extended by org.jmol.shape.ShapeRenderer
      extended by org.jmol.shape.FontLineShapeRenderer
Direct Known Subclasses:
AxesRenderer, CageRenderer, MeasuresRenderer

abstract class FontLineShapeRenderer
extends ShapeRenderer


Field Summary
protected  Point3fi atomA
           
protected  Point3fi atomB
           
protected  Point3fi atomC
           
protected  Point3fi atomD
           
(package private)  Rectangle box
           
protected  boolean draw000
           
protected  byte endcap
           
protected  Font3D font3d
           
protected  float imageFontScaling
           
protected  Point3f pointT
           
protected  Point3f pointT2
           
protected  Point3f pointT3
           
protected  Point3i pt0
           
protected  Point3i pt1
           
protected  Point3i pt2
           
protected  TickInfo tickInfo
           
protected  Vector3f vectorT
           
protected  Vector3f vectorT2
           
protected  Vector3f vectorT3
           
 
Fields inherited from class org.jmol.shape.ShapeRenderer
colix, exportType, g3d, mad, madBeg, madEnd, madMid, modelSet, myVisibilityFlag, shape, shapeID, viewer
 
Constructor Summary
FontLineShapeRenderer()
           
 
Method Summary
protected  void clearBox()
           
protected  int drawLine(int x1, int y1, int z1, int x2, int y2, int z2, int diameter)
           
protected  void drawString(int x, int y, int z, int radius, boolean rightJustify, boolean centerX, boolean centerY, int yRef, String sVal)
           
private  void drawTicks(Point3fi ptA, Point3fi ptB, float dx, int length, int diameter, String[] formats)
           
protected  void drawTicks(Point3fi pt1, Point3fi pt2, int diameter, boolean withLabels)
           
protected  int getDiameter(int z, int madOrPixels)
           
protected  void renderLine(Point3f p0, Point3f p1, int diameter, Point3i pt0, Point3i pt1, boolean drawTicks)
           
 
Methods inherited from class org.jmol.shape.ShapeRenderer
initRenderer, render, render, setViewerG3dShapeID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageFontScaling

protected float imageFontScaling

atomA

protected Point3fi atomA

atomB

protected Point3fi atomB

atomC

protected Point3fi atomC

atomD

protected Point3fi atomD

font3d

protected Font3D font3d

pt0

protected final Point3i pt0

pt1

protected final Point3i pt1

pt2

protected final Point3i pt2

pointT

protected final Point3f pointT

pointT2

protected final Point3f pointT2

pointT3

protected final Point3f pointT3

vectorT

protected final Vector3f vectorT

vectorT2

protected final Vector3f vectorT2

vectorT3

protected final Vector3f vectorT3

box

final Rectangle box

tickInfo

protected TickInfo tickInfo

draw000

protected boolean draw000

endcap

protected byte endcap
Constructor Detail

FontLineShapeRenderer

FontLineShapeRenderer()
Method Detail

clearBox

protected void clearBox()

getDiameter

protected int getDiameter(int z,
                          int madOrPixels)

renderLine

protected void renderLine(Point3f p0,
                          Point3f p1,
                          int diameter,
                          Point3i pt0,
                          Point3i pt1,
                          boolean drawTicks)

drawTicks

protected void drawTicks(Point3fi pt1,
                         Point3fi pt2,
                         int diameter,
                         boolean withLabels)

drawTicks

private void drawTicks(Point3fi ptA,
                       Point3fi ptB,
                       float dx,
                       int length,
                       int diameter,
                       String[] formats)

drawLine

protected int drawLine(int x1,
                       int y1,
                       int z1,
                       int x2,
                       int y2,
                       int z2,
                       int diameter)

drawString

protected void drawString(int x,
                          int y,
                          int z,
                          int radius,
                          boolean rightJustify,
                          boolean centerX,
                          boolean centerY,
                          int yRef,
                          String sVal)