org.micropainter.core.painter.metrics
Class AbstractPathManager

java.lang.Object
  extended by org.micropainter.core.painter.metrics.AbstractPathManager
All Implemented Interfaces:
MetricsPathManager
Direct Known Subclasses:
GeneralMetricsManager

public abstract class AbstractPathManager
extends java.lang.Object
implements MetricsPathManager

Abstract definition of the metrics path

Author:
Sebastien Janaud

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.micropainter.core.painter.metrics.MetricsPathManager
MetricsPathManager.ScaleNature
 
Field Summary
private  GeometryPath geometryPath
          the geometry path
private  MetricsPathManager.ScaleNature nature
          default nature is the user space
private  java.awt.Shape s
          shape of the geometryc path
private  Window2D window2d
          the window 2D
 
Constructor Summary
AbstractPathManager()
           
 
Method Summary
 GeometryPath getGeometry()
          get the geometry of this path manager
 MetricsPathManager.ScaleNature getNature()
          get the nature of path manager
 Window2D getWindow2d()
          get the window2D
 void setNature(MetricsPathManager.ScaleNature nature)
          set the nature of the path manager
 void setPath(java.awt.Shape shape)
          set the result path for this path manager
 void setWindow2d(Window2D window2d)
          set the window2D
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.micropainter.core.painter.metrics.MetricsPathManager
getDeviceMetrics, getFontRenderContext, setFontRenderContext, validGeometry
 

Field Detail

nature

private MetricsPathManager.ScaleNature nature
default nature is the user space


window2d

private Window2D window2d
the window 2D


geometryPath

private GeometryPath geometryPath
the geometry path


s

private java.awt.Shape s
shape of the geometryc path

Constructor Detail

AbstractPathManager

public AbstractPathManager()
Method Detail

getNature

public MetricsPathManager.ScaleNature getNature()
get the nature of path manager

Specified by:
getNature in interface MetricsPathManager
Returns:

setNature

public void setNature(MetricsPathManager.ScaleNature nature)
set the nature of the path manager

Specified by:
setNature in interface MetricsPathManager

getWindow2d

public Window2D getWindow2d()
get the window2D

Specified by:
getWindow2d in interface MetricsPathManager
Returns:
the window2D to be used for this path manager if the path is an User type

setWindow2d

public void setWindow2d(Window2D window2d)
set the window2D

Specified by:
setWindow2d in interface MetricsPathManager

setPath

public void setPath(java.awt.Shape shape)
set the result path for this path manager

Specified by:
setPath in interface MetricsPathManager

getGeometry

public GeometryPath getGeometry()
get the geometry of this path manager

Specified by:
getGeometry in interface MetricsPathManager
Returns: