com.daylight
Interface Depictor


public interface Depictor

Abstract base class for depiction classes which implement the drawing library interface


Method Summary
 void drawBox(java.awt.geom.Rectangle2D.Float rect)
          dl_drawbox.
 void drawLabel(DepictorText label)
          dl_drawlabel.
 void drawOval(java.awt.geom.Rectangle2D.Float rect)
          dl_drawoval.
 void drawTo(java.awt.geom.Point2D.Float point)
          dl_drawto.
 void fitLabel(DepictorText label, java.awt.geom.Rectangle2D.Float rect)
          dl_fitlabel.
 void flush()
          dl_flush.
 float getAspectRatio()
          dl_paspect.
 java.awt.geom.Rectangle2D.Float getBounds()
          dl_bounds.
 java.awt.geom.Rectangle2D.Float getLabelBounds(DepictorText label)
          dl_labelbounds.
 void moveTo(java.awt.geom.Point2D.Float point)
          dl_moveto.
 void setBounds(java.awt.geom.Rectangle2D.Float rect)
          dl_fitbounds.
 void setCurrentGraphicsAttribute(int graphicsAttribute)
          dl_setga.
 

Method Detail

setBounds

void setBounds(java.awt.geom.Rectangle2D.Float rect)
dl_fitbounds. sets drawing bounds to fit limits at 1:1 aspect.


getBounds

java.awt.geom.Rectangle2D.Float getBounds()
dl_bounds. returns current drawing bounds.


moveTo

void moveTo(java.awt.geom.Point2D.Float point)
dl_moveto. (re)sets current drawing point.


drawTo

void drawTo(java.awt.geom.Point2D.Float point)
dl_drawto. draws from current point to given point.


drawBox

void drawBox(java.awt.geom.Rectangle2D.Float rect)
dl_drawbox.


drawOval

void drawOval(java.awt.geom.Rectangle2D.Float rect)
dl_drawoval.


flush

void flush()
dl_flush. called when output buffer should be flushed.


setCurrentGraphicsAttribute

void setCurrentGraphicsAttribute(int graphicsAttribute)
dl_setga. sets current ga (e.g. DL_GA_DEFAULT).


drawLabel

void drawLabel(DepictorText label)
dl_drawlabel.


fitLabel

void fitLabel(DepictorText label,
              java.awt.geom.Rectangle2D.Float rect)
dl_fitlabel. draws text label in rectangle of given size.


getLabelBounds

java.awt.geom.Rectangle2D.Float getLabelBounds(DepictorText label)
dl_labelbounds. returns bounds of text label of given size.


getAspectRatio

float getAspectRatio()
dl_paspect. returns physical aspect ratio.