class ListGraphics extends FunGraphics
Extension of hevs.graphics.FunGraphics that manages a list of hevs.graphics.advanced.Drawable objects that are displayed using the repaint method.
- Alphabetic
- By Inheritance
- ListGraphics
- FunGraphics
- DualLayerGraphics
- Graphics
- AcceleratedDisplay
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
-    new ListGraphics(width: Int, height: Int, title: String)Creates a graphic window to draw onto. Creates a graphic window to draw onto. - width
- Width of the display window 
- height
- Height of the display window 
- title
- Title of the display window 
 
-    new ListGraphics(width: Int, height: Int, title: String, highQuality: Boolean)- width
- Width of the window 
- height
- Height of the window 
- title
- Title of the window 
- highQuality
- Use high quality rendering 
 
Value Members
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##: Int- Definition Classes
- AnyRef → Any
 
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-    var DISPLAY_FPS: Boolean- Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-    var TRANSPARENT: Color- Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-    def addDrawableObject(d: Drawable): UnitAdds a new object that will be drawn Adds a new object that will be drawn - d
- the object to draw 
 
-    def addMouseListener(l: MouseListener): UnitAdds a MouseListener to the window to react on mouse events Adds a MouseListener to the window to react on mouse events - l
- The MouseListener 
 - Definition Classes
- FunGraphics
 
-    def addMouseMotionListener(m: MouseMotionListener): UnitAdds a MouseMotionListener to the window to react on mouse movements Adds a MouseMotionListener to the window to react on mouse movements - m
- The MouseMotionListener 
 - Definition Classes
- FunGraphics
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    var backBuffer: BufferedImage- Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-    var backg2d: Graphics2D- Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-    var bufferStrategy: BufferStrategyBuffer and g2d stuff Buffer and g2d stuff - Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-    var checkBorders: Boolean- Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-    def clear(c: Color): UnitMethod which cleans up the display. Method which cleans up the display. Everything becomes the background again. - Definition Classes
- FunGraphics → Graphics
 
-    def clear(): UnitMethod which cleans up the display. Method which cleans up the display. Everything becomes the background again - Definition Classes
- FunGraphics → Graphics
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
 
-    var current_fps: Double- Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-    def displayFPS(x: Boolean): UnitSelects if the FPS should be printed Selects if the FPS should be printed - x
- FPS will be printed when set to true 
 - Definition Classes
- AcceleratedDisplay
 
-    def drawBackground(): UnitCall this method to modify only the background Call this method to modify only the background - Definition Classes
- FunGraphics → DualLayerGraphics
 
-    def drawCircle(posX: Int, posY: Int, f: Int): UnitDraws a circle starting from (Top left X, Top left Y)Draws a circle starting from (Top left X, Top left Y)- posX
- X top-left position of the circle 
- posY
- Y top-left position of the circle 
- f
- Diameter of the drawn circle 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawFancyString(posX: Int, posY: Int, str: String, fontFamily: String = "Georgia", fontStyle: Int = Font.BOLD, fontSize: Int = 20, color: Color = Color.BLACK, halign: Int = SwingConstants.LEFT, valign: Int = SwingConstants.BOTTOM, shadowX: Int = 0, shadowY: Int = 0, shadowColor: Color = Color.GRAY, shadowThickness: Int = 0, outlineColor: Color = Color.WHITE, outlineThickness: Int = 0): UnitDraws a text with a shadow and/or outline Draws a text with a shadow and/or outline - posX
- X position of the string 
- posY
- Y position of the string 
- str
- the string to draw 
- fontFamily
- the font family 
- fontStyle
- the font style (Font.PLAIN, Font.BOLD, Font.ITALIC, ...) 
- fontSize
- the font size 
- color
- the text color 
- halign
- the horizontal alignment (see javax.swing.SwingConstants) Valid values: LEFT, CENTER and RIGHT 
- valign
- the vertical alignment (see javax.swing.SwingConstants) Valid values: TOP, CENTER and BOTTOM 
- shadowX
- the shadow's X offset 
- shadowY
- the shadow's Y offset 
- shadowColor
- the shadow color 
- shadowThickness
- the shadow thickness 
- outlineColor
- the outline color 
- outlineThickness
- the outline thickness 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawFancyString(posX: Int, posY: Int, str: String, color: Color, size: Int): UnitDraws a text with a shadow Draws a text with a shadow - posX
- X position of the string 
- posY
- Y position of the string 
- str
- the string to draw 
- color
- the text color 
- size
- the font size 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawFillRect(rect: Rectangle): UnitDraw a filled rectangle in the color selected with setColor. Draw a filled rectangle in the color selected with setColor. - rect
- rectangle to draw 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawFillRect(posX: Int, posY: Int, width: Int, height: Int): UnitDraw a filled rectangle in the color selected with setColor. Draw a filled rectangle in the color selected with setColor. - posX
- X coordinate of the top left corner of the rectangle 
- posY
- Y coordinate of the top left corner of the rectangle 
- width
- Width of the rectangle 
- height
- Height of the rectangle 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawFilledCircle(posX: Int, posY: Int, diameter: Int): UnitDraws a circle starting from (Top left X, Top left Y)Draws a circle starting from (Top left X, Top left Y)- posX
- X top-left position of the circle 
- posY
- Y top-left position of the circle 
- diameter
- Diameter of the drawn circle 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawFilledOval(posX: Int, posY: Int, width: Int, height: Int): UnitDraws an oval starting from (Top left X, Top left Y)Draws an oval starting from (Top left X, Top left Y)- posX
- X top-left position of the circle 
- posY
- Y top-left position of the circle 
- width
- Width of the drawn oval 
- height
- Height of the drawn oval 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawFilledPolygon(p: Polygon, c: Color): UnitDraw a filled polygon Draw a filled polygon - p
- the polygon to draw 
- c
- the color of the polygon 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawForeground(): UnitCall this method to modify only the foreground Call this method to modify only the foreground - Definition Classes
- FunGraphics → DualLayerGraphics
 
-    def drawLine(p1x: Int, p1y: Int, p2x: Int, p2y: Int): UnitDraw a line from P1toP2in the color selected with setColor.Draw a line from P1toP2in the color selected with setColor.- p1x
- X coordinate of P1 
- p1y
- Y coordinate of P1 
- p2x
- X coordinate of P2 
- p2y
- Y coordinate of P2 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawMirroredPicture(posX: Int, posY: Int, angle: Double, bitmap: GraphicsBitmap): UnitDraw a mirrored centered picture from a file (gif, jpg, png) to (posX, posY)Draw a mirrored centered picture from a file (gif, jpg, png) to (posX, posY)- posX
- X position of the image 
- posY
- Y position of the image 
- angle
- The rotation angle of the image to be drawn 
- bitmap
- A bitmap 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawPicture(posX: Int, posY: Int, bitmap: GraphicsBitmap): UnitDraw a centered picture from a file (gif, jpg, png) to (posX, posY)Draw a centered picture from a file (gif, jpg, png) to (posX, posY)- posX
- X position of the image 
- posY
- Y position of the image 
- bitmap
- A bitmap 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawRect(rect: Rectangle): UnitDraw an empty rectangle in the color selected with setColor Draw an empty rectangle in the color selected with setColor - rect
- rectangle to draw 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawRect(posX: Int, posY: Int, width: Int, height: Int): UnitDraw an empty rectangle in the color selected with setColor. Draw an empty rectangle in the color selected with setColor. - posX
- X coordinate of the top left corner of the rectangle 
- posY
- Y coordinate of the top left corner of the rectangle 
- width
- Width of the rectangle 
- height
- Height of the rectangle 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawString(posX: Int, posY: Int, str: String, color: Color, size: Int): UnitWrite the given string at (posX, posY)Write the given string at (posX, posY)- posX
- Position x of the string 
- posY
- Position y of the string 
- str
- The string to be drawn 
- color
- The color of the string 
- size
- The size of the font 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawString(posX: Int, posY: Int, str: String, fontFamily: String = "SansSerif", fontStyle: Int = Font.PLAIN, fontSize: Int = 20, color: Color = Color.BLACK, halign: Int = SwingConstants.LEFT, valign: Int = SwingConstants.BOTTOM): UnitDraws a string at a given location. Draws a string at a given location. Note that the boundaries are not checked and text may be painted outside the window - posX
- X position of string 
- posY
- Y position of string 
- str
- the string to write 
- fontFamily
- the font family 
- fontStyle
- the font style (Font.PLAIN, Font.BOLD, Font.ITALIC, ...) 
- fontSize
- the font size 
- color
- the text color 
- halign
- the horizontal alignment (see javax.swing.SwingConstants) Valid values: LEFT, CENTER and RIGHT 
- valign
- the vertical alignment (see javax.swing.SwingConstants) Valid values: TOP, CENTER and BOTTOM 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawString(posX: Int, posY: Int, str: String, font: Font, color: Color, halign: Int, valign: Int): UnitDraws a string at a given location with the given font, color and alignments. Draws a string at a given location with the given font, color and alignments. Note that the boundaries are not checked and text may be painted outside the window - posX
- X position of string 
- posY
- Y position of string 
- str
- the string to write 
- font
- the font 
- color
- the text color 
- halign
- the horizontal alignment (see javax.swing.SwingConstants) Valid values: LEFT, CENTER and RIGHT 
- valign
- the vertical alignment (see javax.swing.SwingConstants) Valid values: TOP, CENTER and BOTTOM 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawString(posX: Int, posY: Int, str: String, font: Font, color: Color): UnitDraws a string at a given location with the given font and color. Draws a string at a given location with the given font and color. Note that the boundaries are not checked and text may be painted outside the window - posX
- X position of string 
- posY
- Y position of string 
- str
- the string to write 
- font
- the font 
- color
- the text color 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawTransformedPicture(posX: Int, posY: Int, angle: Double, scale: Double, bitmap: GraphicsBitmap): UnitDraw a centered picture from a file (gif, jpg, png) to (posX, posY)Draw a centered picture from a file (gif, jpg, png) to (posX, posY)- posX
- X position of the image 
- posY
- Y position of the image 
- angle
- The rotation angle of the image to be drawn 
- scale
- The scale factor of the image to be drawn 
- bitmap
- A bitmap 
 - Definition Classes
- FunGraphics → Graphics
 
-    def drawTransformedPicture(posX: Int, posY: Int, angle: Double, scale: Double, imageName: String): UnitDraw a centered picture from a file (gif, jpg, png) to (posX, posY).Draw a centered picture from a file (gif, jpg, png) to (posX, posY). Warning, very slow because the image has to be reloaded- posX
- X position of the image 
- posY
- Y position of the image 
- angle
- The rotation angle of the image to be drawn 
- scale
- The scale factor of the image to be drawn 
- imageName
- path of the image file 
 - Definition Classes
- FunGraphics → Graphics
 
-    var enableRenderingHints: Boolean- Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-    var fHeight: Int- Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-    var fWidth: Int- Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-    var frontBuffer: BufferedImage- Definition Classes
- AcceleratedDisplay
 
-    var frontg2d: Graphics2D- Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-    var g2d: Graphics2D- Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-    def getAvailableFonts(): Array[String]Returns a list of available font names on the device Returns a list of available font names on the device - returns
- the list of available font names 
 - Definition Classes
- FunGraphics → Graphics
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
 
-    def getDisplayFrame: JFrameGets the main JFrame Gets the main JFrame - returns
- the JFrame of the window 
 
-    def getFrameHeight(): IntGet the frame height 
-    def getFrameWidth(): IntGet the frame width 
-    def getStringSize(str: String): Rectangle2DComputes the size necessary to render a string with the current font Computes the size necessary to render a string with the current font - str
- the string 
- returns
- the bounding box of the rendered string 
 - Definition Classes
- FunGraphics → Graphics
 
-    def getStringSize(str: String, font: Font): Rectangle2DComputes the size necessary to render a string with the given font Computes the size necessary to render a string with the given font - str
- the string 
- font
- the font 
- returns
- the bounding box of the rendered string 
 - Definition Classes
- FunGraphics → Graphics
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
 
-    val height: Int- Definition Classes
- ListGraphics → FunGraphics
 
-  val highQuality: Boolean
-    val high_quality: Boolean- Definition Classes
- FunGraphics
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-    var mainFrame: JFrameThe subclass which create the windows frame The subclass which create the windows frame - Definition Classes
- AcceleratedDisplay
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
 
-    def registerKeyListener(listener: KeyListener): UnitRegister a new keyboard listener to main window Register a new keyboard listener to main window - listener
- the KeyListener 
 
-    def removeAllDrawableObjets(): UnitErases all drawable objects in the list 
-    def removeDrawableObjects(d: Drawable): UnitRemoves an object from the list Removes an object from the list - d
- the object to remove 
 
-    def repaint(): UnitClears the screen and repaints everything 
-    def setBackgroundColor(c: Color): UnitSets the background color used when clearing the window Sets the background color used when clearing the window - c
- the new background color 
 
-    def setColor(c: Color): UnitSet the color of the future drawings Set the color of the future drawings - c
- Selected color for drawing 
 - Definition Classes
- FunGraphics → Graphics
 
-    def setKeyManager(k: KeyListener): UnitSets a keyboard listener 
-    def setMouseListener(mouseListener: MouseListener): UnitSets the MouseListener to the window to react on mouse events Sets the MouseListener to the window to react on mouse events - mouseListener
- The MouseListener 
 
-    def setPenWidth(width: Float): UnitSets the width of the pen 
-    def setPixel(x: Int, y: Int, c: Int): UnitDraws a pixel with a given color. Draws a pixel with a given color. Does not change the current color - x
- X coordinate 
- y
- Y coordinate 
- c
- Color to use (RGB coded) 
 - Definition Classes
- FunGraphics → Graphics
 
-    def setPixel(x: Int, y: Int, c: Color): UnitDraws a pixel with a given color. Draws a pixel with a given color. Does not change the current color. - x
- X coordinate 
- y
- Y coordinate 
- c
- Color to use for this pixel (this pixel only, see setColor(Color) 
 - Definition Classes
- FunGraphics → Graphics
 
-    def setPixel(x: Int, y: Int): UnitDraw the selected pixel with the color selected with setColor. Draw the selected pixel with the color selected with setColor. - x
- X coordinate of the pixel 
- y
- Y coordinate of the pixel 
 - Definition Classes
- FunGraphics → Graphics
 
-    def syncGameLogic(FPS: Int): UnitCall this method periodically to have a constant frame rate Call this method periodically to have a constant frame rate - FPS
- the target frame rate 
 - Definition Classes
- AcceleratedDisplay
 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    var target_fps: Int- Attributes
- protected
- Definition Classes
- AcceleratedDisplay
 
-    val title: String- Definition Classes
- ListGraphics → FunGraphics
 
-    def toString(): String- Definition Classes
- AnyRef → Any
 
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-    val width: Int- Definition Classes
- ListGraphics → FunGraphics
 
-    val xoffset: Int- Definition Classes
- FunGraphics
 
-    val yoffset: Int- Definition Classes
- FunGraphics
 
Deprecated Value Members
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated