org.micropainter.core.layout
Class AbstractMetricsLayout

java.lang.Object
  extended by org.micropainter.core.layout.AbstractLayout
      extended by org.micropainter.core.layout.AbstractMetricsLayout
All Implemented Interfaces:
java.lang.Comparable<java.lang.Object>
Direct Known Subclasses:
MetricsLayout

public abstract class AbstractMetricsLayout
extends AbstractLayout

The abstract definition of a delegate that takes the responsibility of painting a window2D Metrics Layout.

Author:
Sebastien Janaud

Constructor Summary
AbstractMetricsLayout()
           
 
Method Summary
 void doPaintLayout(View2D v2d, java.awt.Graphics2D g2d)
          paint the layout
abstract  void doPaintMetrics(View2D v2d, java.awt.Graphics2D g2d)
          Paints the window metrics.
 
Methods inherited from class org.micropainter.core.layout.AbstractLayout
compareTo, getAntialiasing, getFractional, getInterpolation, getLayoutAlpha, getPriority, getTextAnliasing, getWindow2D, getWindowZone, isLock, lockLayout, paint, setAntialiasing, setFractional, setInterpolation, setLayoutAlpha, setPriority, setTextAnliasing, setWindow2D, setWindowZone, unlockLayout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMetricsLayout

public AbstractMetricsLayout()
Method Detail

doPaintMetrics

public abstract void doPaintMetrics(View2D v2d,
                                    java.awt.Graphics2D g2d)
Paints the window metrics.

Parameters:
g2d - the Graphics context in which to paint
See Also:
MetricsLayout, AbstractLayout

doPaintLayout

public void doPaintLayout(View2D v2d,
                          java.awt.Graphics2D g2d)
paint the layout

Specified by:
doPaintLayout in class AbstractLayout
Parameters:
v2d - the View2D to lay out.
g2d - the Graphics context in which to paint
See Also:
doPaintMetrics(org.micropainter.core.views.View2D, java.awt.Graphics2D)