jp.digitalmuseum.mr.gui.utils
クラス EntityPainter

java.lang.Object
  上位を拡張 jp.digitalmuseum.mr.gui.utils.EntityPainter

public class EntityPainter
extends java.lang.Object

Helper class for drawing an entity to a canvas.

作成者:
Jun KATO

入れ子のクラスの概要
static class EntityPainter.Path
          Path information, points in a list.
 
コンストラクタの概要
EntityPainter()
           
EntityPainter(double flatness)
           
 
メソッドの概要
 CoordProvider getCoordProvider()
          Get a CoordProvider.
 double getFlatness()
           
 LocationProvider getLocationProvider()
          Get a LocationProvider
 EntityPainter.Path getPath(Entity e)
          Get a flattened Path of the shape of the specified entity.
 void paint(java.awt.Graphics g, Entity e)
          Paint an entity in the specified graphic context.
 void setCoordProvider(CoordProvider coordProvider)
          Set a CoordProvider.
 void setFlatness(double flatness)
           
 void setLocationProvider(LocationProvider locationProvider)
          Set a LocationProvider.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

EntityPainter

public EntityPainter()

EntityPainter

public EntityPainter(double flatness)
メソッドの詳細

getFlatness

public double getFlatness()

setFlatness

public void setFlatness(double flatness)

setCoordProvider

public void setCoordProvider(CoordProvider coordProvider)
Set a CoordProvider.

パラメータ:
coordProvider -

getCoordProvider

public CoordProvider getCoordProvider()
Get a CoordProvider.

戻り値:
Assigned CoordProvider.

setLocationProvider

public void setLocationProvider(LocationProvider locationProvider)
Set a LocationProvider.

パラメータ:
locationProvider -

getLocationProvider

public LocationProvider getLocationProvider()
Get a LocationProvider

戻り値:
Assigned LocationProvider

paint

public void paint(java.awt.Graphics g,
                  Entity e)
Paint an entity in the specified graphic context.

パラメータ:
g -
e -

getPath

public EntityPainter.Path getPath(Entity e)
Get a flattened Path of the shape of the specified entity.

パラメータ:
e -
戻り値:


Copyright by Jun KATO (arc@dmz) at http://mr.digitalmuseum.jp/