|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.digitalmuseum.mr.service.ServiceAbstractImpl jp.digitalmuseum.mr.hakoniwa.Hakoniwa
public class Hakoniwa
入れ子のクラスの概要 |
---|
インタフェース jp.digitalmuseum.mr.service.ImageProvider から継承された入れ子のクラス/インタフェース |
---|
ImageProvider.ImageListener |
フィールドの概要 |
---|
クラス jp.digitalmuseum.mr.service.ServiceAbstractImpl から継承されたフィールド |
---|
DEFAULT_INTERVAL |
コンストラクタの概要 | |
---|---|
Hakoniwa()
|
|
Hakoniwa(int width,
int height)
|
メソッドの概要 | |
---|---|
void |
addImageListener(ImageProvider.ImageListener listener)
|
boolean |
contains(Entity entity)
|
boolean |
contains(Entity e,
Position position)
|
java.awt.Graphics2D |
createBackgroundGraphics()
Do not dispose this graphics context. |
void |
destroyMouseJoint()
|
void |
drawImage(java.awt.Graphics g)
Draw the current image in the specified graphics context. |
void |
drawImage(java.awt.Graphics g,
int x,
int y)
Draw the current image in the specified graphics context and position. |
float |
getAngularDamping()
|
javax.swing.JComponent |
getConfigurationComponent()
|
CoordProvider |
getCoordProvider()
|
java.util.Set<Entity> |
getEntities()
|
static Hakoniwa |
getHakoniwaFor(HakoniwaEntity e)
|
int |
getHeight()
Get height of the captured image. |
java.awt.image.BufferedImage |
getImage()
Get an image data as a BufferedImage object. |
byte[] |
getImageData()
Get an image data as a BGR byte array. |
float |
getLinearDamping()
|
Location |
getLocation(Entity e)
|
void |
getLocationOut(Entity e,
Location location)
|
HakoniwaEntity |
getMouseJointedEntity()
|
java.lang.String |
getName()
|
Position |
getPosition(Entity e)
|
void |
getPositionOut(Entity e,
Position position)
|
double |
getRealHeight()
Get height of the real world coordinate area. |
double |
getRealWidth()
Get width of the real world coordinate area. |
double |
getRotation(Entity e)
Returns 0 if not able to specify the rotation. |
ScreenLocation |
getScreenLocation(Entity e)
|
void |
getScreenLocationOut(Entity e,
ScreenLocation screenLocation)
|
ScreenPosition |
getScreenPosition(Entity e)
|
void |
getScreenPositionOut(Entity e,
ScreenPosition screenPosition)
|
double |
getScreenRotation(Entity e)
|
int |
getScreenX(Entity e)
|
int |
getScreenY(Entity e)
|
int |
getWidth()
Get width of the captured image. |
org.jbox2d.dynamics.World |
getWorld()
|
double |
getX(Entity e)
Returns 0 if not able to specify the position. |
double |
getY(Entity e)
Returns 0 if not able to specify the position. |
boolean |
hasMouseJoint()
|
boolean |
isAntialiased()
|
boolean |
isBackgroundTransparent()
|
ScreenLocation |
realToScreen(Location realLocation)
|
ScreenPosition |
realToScreen(Position realPosition)
|
void |
realToScreenOut(Location realLocation,
ScreenLocation screenLocation)
Convert real location to screen location. |
void |
realToScreenOut(Position realPosition,
ScreenPosition screenPosition)
Convert real position to screen position. |
boolean |
removeImageListener(ImageProvider.ImageListener listener)
|
void |
run()
|
Location |
screenToReal(ScreenLocation screenLocation)
|
Position |
screenToReal(ScreenPosition screenPosition)
|
void |
screenToRealOut(ScreenLocation screenLocation,
Location location)
Convert screen location to real location. |
void |
screenToRealOut(ScreenPosition screenPosition,
Position realPosition)
Convert screen position to real position. |
void |
setAngularDamping(float angularDamping)
|
void |
setAntialiased(boolean isAntialiased)
|
void |
setBackgroundTransparent(boolean backgroundTransparent)
|
void |
setLinearDamping(float linearDamping)
|
void |
setViewportScale(float scale)
Set scale of the viewport. |
void |
setViewportSize(int screenWidth,
int screenHeight)
Set size of the viewport. |
void |
updateMouseJoint(Position p,
HakoniwaEntity e)
|
クラス jp.digitalmuseum.mr.service.ServiceAbstractImpl から継承されたメソッド |
---|
addEventListener, dispose, distributeEvent, getAliveTime, getInterval, getServiceGroup, initialize, isDisposed, isPaused, isStarted, onPause, onResume, onStart, onStop, pause, removeEventListener, resume, setInterval, setServiceGroup, start, start, stop, toString |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
インタフェース jp.digitalmuseum.mr.service.Service から継承されたメソッド |
---|
dispose, getAliveTime, getInterval, getServiceGroup, isDisposed, isPaused, isStarted, pause, resume, setInterval, setServiceGroup, start, start, stop |
インタフェース jp.digitalmuseum.mr.message.EventProvider から継承されたメソッド |
---|
addEventListener, removeEventListener |
コンストラクタの詳細 |
---|
public Hakoniwa()
public Hakoniwa(int width, int height)
メソッドの詳細 |
---|
public void run()
java.lang.Runnable
内の run
public static Hakoniwa getHakoniwaFor(HakoniwaEntity e)
public float getLinearDamping()
public void setLinearDamping(float linearDamping)
public float getAngularDamping()
public void setAngularDamping(float angularDamping)
public void updateMouseJoint(Position p, HakoniwaEntity e)
public void destroyMouseJoint()
public boolean hasMouseJoint()
public HakoniwaEntity getMouseJointedEntity()
public boolean isBackgroundTransparent()
public void setBackgroundTransparent(boolean backgroundTransparent)
public boolean isAntialiased()
public void setAntialiased(boolean isAntialiased)
public org.jbox2d.dynamics.World getWorld()
public java.awt.Graphics2D createBackgroundGraphics()
public java.lang.String getName()
Service
内の getName
ServiceAbstractImpl
内の getName
public void setViewportSize(int screenWidth, int screenHeight)
screenWidth
- Width of the viewport in [px].screenHeight
- Height of the viewport in [px].public void setViewportScale(float scale)
scale
- [pixels/cm]public int getWidth()
ImageProvider
の記述:ImageProvider
内の getWidth
public int getHeight()
ImageProvider
の記述:ImageProvider
内の getHeight
public double getRealWidth()
CoordProvider
の記述:CoordProvider
内の getRealWidth
public double getRealHeight()
CoordProvider
の記述:CoordProvider
内の getRealHeight
public ScreenLocation realToScreen(Location realLocation)
CoordProvider
内の realToScreen
CoordProvider.realToScreenOut(Location, ScreenLocation)
public ScreenPosition realToScreen(Position realPosition)
CoordProvider
内の realToScreen
CoordProvider.realToScreenOut(Position, ScreenPosition)
public void realToScreenOut(Location realLocation, ScreenLocation screenLocation)
CoordProvider
の記述:CoordProvider
内の realToScreenOut
public void realToScreenOut(Position realPosition, ScreenPosition screenPosition)
CoordProvider
の記述:CoordProvider
内の realToScreenOut
public Location screenToReal(ScreenLocation screenLocation) throws java.lang.IllegalArgumentException
CoordProvider
内の screenToReal
java.lang.IllegalArgumentException
CoordProvider.screenToRealOut(ScreenLocation, Location)
public Position screenToReal(ScreenPosition screenPosition) throws java.lang.IllegalArgumentException
CoordProvider
内の screenToReal
java.lang.IllegalArgumentException
CoordProvider.screenToRealOut(ScreenPosition, Position)
public void screenToRealOut(ScreenLocation screenLocation, Location location) throws java.lang.IllegalArgumentException
CoordProvider
の記述:CoordProvider
内の screenToRealOut
java.lang.IllegalArgumentException
public void screenToRealOut(ScreenPosition screenPosition, Position realPosition) throws java.lang.IllegalArgumentException
CoordProvider
の記述:CoordProvider
内の screenToRealOut
java.lang.IllegalArgumentException
public void drawImage(java.awt.Graphics g)
ImageProvider
の記述:ImageProvider
内の drawImage
public void drawImage(java.awt.Graphics g, int x, int y)
ImageProvider
の記述:ImageProvider
内の drawImage
public java.awt.image.BufferedImage getImage()
ImageProvider
の記述:ImageProvider
内の getImage
public byte[] getImageData()
ImageProvider
の記述:ImageProvider
内の getImageData
public void addImageListener(ImageProvider.ImageListener listener)
ImageProvider
内の addImageListener
public boolean removeImageListener(ImageProvider.ImageListener listener)
ImageProvider
内の removeImageListener
public java.util.Set<Entity> getEntities()
EntityInformationProvider
内の getEntities
public boolean contains(Entity entity)
EntityInformationProvider
内の contains
public CoordProvider getCoordProvider()
LocationProvider
内の getCoordProvider
public Location getLocation(Entity e)
LocationProvider
内の getLocation
public void getLocationOut(Entity e, Location location)
LocationProvider
内の getLocationOut
public Position getPosition(Entity e)
LocationProvider
内の getPosition
public void getPositionOut(Entity e, Position position)
LocationProvider
内の getPositionOut
public double getX(Entity e)
LocationProvider
の記述:LocationProvider
内の getX
public double getY(Entity e)
LocationProvider
の記述:LocationProvider
内の getY
public double getRotation(Entity e)
LocationProvider
の記述:LocationProvider
内の getRotation
public boolean contains(Entity e, Position position)
LocationProvider
内の contains
public ScreenLocation getScreenLocation(Entity e)
ScreenLocationProvider
内の getScreenLocation
public void getScreenLocationOut(Entity e, ScreenLocation screenLocation)
ScreenLocationProvider
内の getScreenLocationOut
public ScreenPosition getScreenPosition(Entity e)
ScreenLocationProvider
内の getScreenPosition
public void getScreenPositionOut(Entity e, ScreenPosition screenPosition)
ScreenLocationProvider
内の getScreenPositionOut
public int getScreenX(Entity e)
ScreenLocationProvider
内の getScreenX
public int getScreenY(Entity e)
ScreenLocationProvider
内の getScreenY
public double getScreenRotation(Entity e)
ScreenLocationProvider
内の getScreenRotation
public javax.swing.JComponent getConfigurationComponent()
Service
内の getConfigurationComponent
ServiceAbstractImpl
内の getConfigurationComponent
JComponent
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |