Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- drawSymbol(Graphics, int, int, IStyled)
- drawGhostSymbol(Graphics, int, int, IStyled)
- drawSymbol(Graphics, int, int, SymbolType, int, Color, Color)
- drawRectangle(Graphics, int, int, int, int, Color, Color)
- drawOval(Graphics, int, int, int, int, Color, Color)
- drawUpTriangle(Graphics, int, int, int, Color, Color)
- drawDownTriangle(Graphics, int, int, int, Color, Color)
- drawCross(Graphics, int, int, int, Color)
- drawX(Graphics, int, int, int, Color)
- drawDiamond(Graphics, int, int, int, Color, Color)
Class SymbolDraw
java.lang.Object
cnuphys.splot.style.SymbolDraw
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Draw a simple crossstatic void
drawDiamond
(Graphics g, int x, int y, int s2, Color lc, Color fc) Draw a simple diamondstatic void
drawDownTriangle
(Graphics g, int x, int y, int s2, Color lc, Color fc) Draw a simple down trianglestatic void
drawGhostSymbol
(Graphics g, int x, int y, IStyled style) Draws the appropriate symbol at the provided screen location.static void
Draw a simple ovalstatic void
drawRectangle
(Graphics g, int x, int y, int w2, int h2, Color lc, Color fc) Draw a simple rectanglestatic void
drawSymbol
(Graphics g, int x, int y, IStyled style) Draws the appropriate symbol at the provided screen location.static void
drawSymbol
(Graphics g, int x, int y, SymbolType symbol, int symbolSize, Color lineColor, Color fillColor) Draws the appropriate symbol at the provided screen location.static void
drawUpTriangle
(Graphics g, int x, int y, int s2, Color lc, Color fc) Draw a simple up trianglestatic void
Draw a simple X symbol.
-
Constructor Details
-
Method Details
-
drawSymbol
-
drawGhostSymbol
-
drawSymbol
public static void drawSymbol(Graphics g, int x, int y, SymbolType symbol, int symbolSize, Color lineColor, Color fillColor) Draws the appropriate symbol at the provided screen location.- Parameters:
g
- the graphics contextx
- the x screen coordinate.y
- the y screen coordinate.symbol
- the symbol to use.symbolSize
- the size of the symbol in pixels--typically around 8.lineColor
- the outline color.fillColor
- the fill color, which is not relevant for some symbols.
-
drawRectangle
-
drawOval
-
drawUpTriangle
-
drawDownTriangle
-
drawCross
-
drawX
-
drawDiamond
-