Class HTMLGraphicsConfiguration
- java.lang.Object
-
- java.awt.GraphicsConfiguration
-
- nl.tudelft.simulation.dsol.web.animation.HTMLGraphicsConfiguration
-
public class HTMLGraphicsConfiguration extends GraphicsConfiguration
TheHTMLGraphicsConfiguration
class describes the characteristics of the HTML canvas in the browser, as a graphics destination to write to. Note that there can be severalGraphicsConfiguration
objects associated with a single graphics device, representing different drawing modes or capabilities.
Copyright (c) 2003-2022 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.- Author:
- Alexander Verbraeck
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Rectangle
bounds
the bounds, TODO: which should be filled in some way by the window size in the browser.(package private) HTMLDevice
htmlDevice
theHTMLDevice
associated with thisHTMLGraphicsConfiguration
.(package private) AffineTransform
identityTransform
the identity AffineTransform.
-
Constructor Summary
Constructors Constructor Description HTMLGraphicsConfiguration()
Create a graphics configuration for the HTML device.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle
getBounds()
ColorModel
getColorModel()
ColorModel
getColorModel(int transparency)
AffineTransform
getDefaultTransform()
GraphicsDevice
getDevice()
AffineTransform
getNormalizingTransform()
void
setDevice(HTMLDevice htmlDevice)
Set theHTMLDevice
associated with thisHTMLGraphicsConfiguration
.
-
-
-
Field Detail
-
htmlDevice
HTMLDevice htmlDevice
theHTMLDevice
associated with thisHTMLGraphicsConfiguration
.
-
identityTransform
AffineTransform identityTransform
the identity AffineTransform.
-
bounds
Rectangle bounds
the bounds, TODO: which should be filled in some way by the window size in the browser.
-
-
Method Detail
-
getDevice
public GraphicsDevice getDevice()
- Specified by:
getDevice
in classGraphicsConfiguration
-
setDevice
public void setDevice(HTMLDevice htmlDevice)
Set theHTMLDevice
associated with thisHTMLGraphicsConfiguration
.- Parameters:
htmlDevice
- HTMLDevice; a <code>GraphicsDevice</code> object that is associated with thisHTMLGraphicsConfiguration
.
-
getColorModel
public ColorModel getColorModel()
- Specified by:
getColorModel
in classGraphicsConfiguration
-
getColorModel
public ColorModel getColorModel(int transparency)
- Specified by:
getColorModel
in classGraphicsConfiguration
-
getDefaultTransform
public AffineTransform getDefaultTransform()
- Specified by:
getDefaultTransform
in classGraphicsConfiguration
-
getNormalizingTransform
public AffineTransform getNormalizingTransform()
- Specified by:
getNormalizingTransform
in classGraphicsConfiguration
-
getBounds
public Rectangle getBounds()
- Specified by:
getBounds
in classGraphicsConfiguration
-
-