Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abs(int) - Static method in class com.dkt.graphics.utils.MathUtils
-
Computes the absolute value of a number without branching
The original code can be found in: ... - AbstractCalculable - Class in com.dkt.graphics.extras.formula
- AbstractCalculable() - Constructor for class com.dkt.graphics.extras.formula.AbstractCalculable
- AbstractTimer<T extends AbstractCalculable> - Class in com.dkt.graphics.extras.formula
-
This class implements an abstract timer mainly used to draw functions on the canvas.
Please note that there are several ways to improve the speed of this class, for instance using aGraphic
object for each thread, usingGPointArray
instead of an array ofGPoint
s, etc. - AbstractTimer(T) - Constructor for class com.dkt.graphics.extras.formula.AbstractTimer
- AbstractTimer.Action - Interface in com.dkt.graphics.extras.formula
-
This interface contains all the methods that will be executed after starting, pausing, resuming and stopping a timer.
- action() - Method in class com.dkt.graphics.utils.TPS
-
This method is the one that tells the
TPS
instance that an action has been performed. - actionPerformed(ActionEvent) - Method in class com.dkt.graphics.canvas.Canvas
- add(GFillableE) - Method in class com.dkt.graphics.extras.GClip
-
Adds the given element to the clipping area
- add(GraphicE) - Method in class com.dkt.graphics.canvas.Canvas
-
Adds a
GraphicE
to the canvas.
This method doesn't check if the element is already contained on the canvas, this mean, that you can add elements twice (With no particular gain). - add(GraphicE) - Method in class com.dkt.graphics.elements.Graphic
-
Adds a new
GraphicE
to this Graphic
Note: all the elements that are added will be automatically traslated the same amount as the sum of the traslations up to this moment Note 2:This method doesn't check if the element is already contained on theGraphic
, this mean, that you can add elements twice, the downside (or amazing feature, according to a couple of comments) is that the elements that are added twice will be traslated twice as much as the other elements. - add(GVector...) - Method in class com.dkt.graphics.elements.GVector
-
Adds a finite number of vectors with no overflow check
- addAll(Graphic...) - Method in class com.dkt.graphics.elements.Graphic
-
This method adds all of the elements of a given set of
Graphic
components into the current element. - addCopyOfAll(Graphic...) - Method in class com.dkt.graphics.elements.Graphic
-
This method adds all of the elements of a given set of
Graphic
components into the current element. - addFixed(GraphicE) - Method in class com.dkt.graphics.canvas.Canvas
-
Adds a new fixed
GraphicE
to the canvas - addListener(ConfigListener) - Method in class com.dkt.graphics.utils.config.Config
-
Adds a new
ConfigListener
to thisconfig
, this listeners will be notified of all the changes that happen to thenon-volatile
field of this config. - AlreadyRunningException - Exception Class in com.dkt.graphics.exceptions
- AlreadyRunningException(String) - Constructor for exception class com.dkt.graphics.exceptions.AlreadyRunningException
- angleBetween(GVector) - Method in class com.dkt.graphics.elements.GVector
-
Retrieves the angle between this vector and the one passed as an argument
- append(int, int) - Method in class com.dkt.graphics.elements.GMultiPoint
-
Appends a new point to the path.
- append(GPoint) - Method in class com.dkt.graphics.elements.GMultiPoint
-
Appends a new point to the path
- append(GPointArray) - Method in class com.dkt.graphics.elements.GPointArray
-
Appends all the point to this array, regardless if they are already contained
- append(GVector...) - Method in class com.dkt.graphics.extras.GVectorPolygon
-
Appends a finite number of vectors to the Polygon, let it be noted that the order in which the vectors are appended is the same order in which they will be shown
- append(GPixMap) - Method in class com.dkt.graphics.extras.GSprite
-
Append a new
GPixMap
to thisGSprite
, this method will skip allGPixMap
that are already in theGSprite
- appendNR(int, int) - Method in class com.dkt.graphics.elements.GMultiPoint
-
Appends a new point to the path if and only if this point doesn't exist within the array.
- arc(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- arcc(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- area() - Method in class com.dkt.graphics.elements.GCircle
-
Calculates the area of this circle
- area() - Method in class com.dkt.graphics.elements.GRectangle
-
Calculates the area of this rectangle
- area() - Method in class com.dkt.graphics.elements.GRegPoly
-
Calculates the area of this polygon
- argument() - Method in class com.dkt.graphics.elements.GVector
-
Retrieves the argument of the vector (in degrees)
- authors() - Static method in class com.dkt.graphics.utils.LibUtils
-
Retrieves the list of authors
- autoRepaint() - Method in class com.dkt.graphics.canvas.Canvas
-
Tells if the canvas is repainting itself automatically
- avgMicros() - Method in class com.dkt.graphics.utils.TPS
-
Retrieves the average time in µs between calls to
TPS.action()
- avgMilis() - Method in class com.dkt.graphics.utils.TPS
-
Retrieves the average time in ms between calls to
TPS.action()
- avgNanos() - Method in class com.dkt.graphics.utils.TPS
-
Retrieves the average time in ns between calls to
TPS.action()
B
- boxcar(double, double, double) - Static method in class com.dkt.graphics.utils.MathUtils
-
Boxcar function
C
- Calculable - Class in com.dkt.graphics.extras.formula
-
This class is used within
GFormula
representingℝ → ℝ
functions - Calculable() - Constructor for class com.dkt.graphics.extras.formula.Calculable
- CalculableTimer - Class in com.dkt.graphics.extras.formula
- CalculableTimer(Calculable) - Constructor for class com.dkt.graphics.extras.formula.CalculableTimer
- calculate(double, double, double) - Method in class com.dkt.graphics.extras.GFormula
-
Calculates the formula, this method must be called before the method is printed in the canvas, otherwise it will print nothing.
- calculate(double, double, double, GraphicE) - Method in class com.dkt.graphics.extras.GFormula
-
Calculates the formula, this method must be called before the method is printed in the canvas, otherwise it will print nothing.
Note: The element must be in the position(0, 0)
otherwise it the graphics will be in the incorrect position. - calculateArea(double, double, double) - Method in class com.dkt.graphics.extras.GFormula
-
Calculates the formula, this method must be called before the method is printed in the canvas, otherwise it will print nothing.
- calculatePath(double, double, double) - Method in class com.dkt.graphics.extras.GFormula
-
Calculates the formula, this method must be called before the method is printed in the canvas, otherwise it will print nothing.
- Canvas - Class in com.dkt.graphics.canvas
-
This class represents a basic canvas, it has some features that may seem useless...
- Canvas() - Constructor for class com.dkt.graphics.canvas.Canvas
- CanvasFrame - Class in com.dkt.graphics.canvas
- CanvasFrame() - Constructor for class com.dkt.graphics.canvas.CanvasFrame
- CanvasFrame(String) - Constructor for class com.dkt.graphics.canvas.CanvasFrame
- cAvgMicros() - Method in class com.dkt.graphics.utils.TPS
-
Retrieves the average time in µs between calls to
TPS.action()
, considering only the last 50 calls - cAvgMilis() - Method in class com.dkt.graphics.utils.TPS
-
Retrieves the average time in ms between calls to
TPS.action()
, considering only the last 50 calls - cAvgNanos() - Method in class com.dkt.graphics.utils.TPS
-
Retrieves the average time in ns between calls to
TPS.action()
, considering only the last 50 calls - ccw(GPoint, GPoint, GPoint) - Static method in class com.dkt.graphics.elements.GPoint
-
Is
a->b->c
a counterclockwise (levorotary) turn? - centerBounds() - Method in class com.dkt.graphics.canvas.Canvas
-
Tells if the canvas is being centered.
Note: the default value isfalse
- centerDialog(JDialog, JFrame) - Static method in class com.dkt.graphics.utils.GuiUtils
-
Centers a dialog in a frame
- centerFrame(JFrame) - Static method in class com.dkt.graphics.utils.GuiUtils
-
Centers a frame on the screen
- centerOrigin() - Method in class com.dkt.graphics.canvas.Canvas
-
Tells if the canvas is centering automatically the origin of coordinates.
- checkPause() - Method in class com.dkt.graphics.utils.PThread
-
This method should be called within the main run loop.
- circle(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- clear() - Method in class com.dkt.graphics.elements.GMultiPoint
-
Clears the object
- clear() - Method in class com.dkt.graphics.extras.GraphicCreator
- clipadd(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- clipoff(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- clipsub(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- clone() - Method in class com.dkt.graphics.elements.GArc
- clone() - Method in class com.dkt.graphics.elements.GCircle
- clone() - Method in class com.dkt.graphics.elements.GFillableE
- clone() - Method in class com.dkt.graphics.elements.GImage
- clone() - Method in class com.dkt.graphics.elements.GLine
- clone() - Method in class com.dkt.graphics.elements.GOval
- clone() - Method in class com.dkt.graphics.elements.GPath
- clone() - Method in class com.dkt.graphics.elements.GPoint
- clone() - Method in class com.dkt.graphics.elements.GPointArray
- clone() - Method in class com.dkt.graphics.elements.GPoly
- clone() - Method in class com.dkt.graphics.elements.Graphic
- clone() - Method in class com.dkt.graphics.elements.GraphicE
- clone() - Method in class com.dkt.graphics.elements.GRectangle
- clone() - Method in class com.dkt.graphics.elements.GRegPoly
- clone() - Method in class com.dkt.graphics.elements.GString
- clone() - Method in class com.dkt.graphics.elements.GVector
- clone() - Method in class com.dkt.graphics.extras.formula.CalculableTimer
- clone() - Method in class com.dkt.graphics.extras.formula.ParametricCalculableTimer
- clone() - Method in class com.dkt.graphics.extras.GAxis
- clone() - Method in class com.dkt.graphics.extras.GClip
- clone() - Method in class com.dkt.graphics.extras.GGrid
- clone() - Method in class com.dkt.graphics.extras.GPixMap
- clone() - Method in class com.dkt.graphics.extras.GPVector
- clone() - Method in class com.dkt.graphics.extras.GSprite
- clone() - Method in class com.dkt.graphics.extras.GTransform
- clone() - Method in class com.dkt.graphics.extras.GVectorPolygon
- closestPoint(int, int) - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a new
GPoint
representing the coordinates of the closest point in this array - closestPoint(GPoint) - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a new
GPoint
representing the coordinates of the closest point in this array - collaborators() - Static method in class com.dkt.graphics.utils.LibUtils
-
Retrieves the list of collaborators
- color(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
-
Set's the global color.
- colorAt(int, int) - Method in class com.dkt.graphics.extras.GPixMap
-
Retrieves the
Color
on a given position of theGPixMap
Note: The value ofj
is affected by the direction of theY axis
- colorf(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
-
Set's the global fill color.
- com.dkt.graphics - package com.dkt.graphics
- com.dkt.graphics.canvas - package com.dkt.graphics.canvas
- com.dkt.graphics.elements - package com.dkt.graphics.elements
- com.dkt.graphics.exceptions - package com.dkt.graphics.exceptions
- com.dkt.graphics.extras - package com.dkt.graphics.extras
- com.dkt.graphics.extras.examples - package com.dkt.graphics.extras.examples
- com.dkt.graphics.extras.formula - package com.dkt.graphics.extras.formula
- com.dkt.graphics.utils - package com.dkt.graphics.utils
- com.dkt.graphics.utils.config - package com.dkt.graphics.utils.config
- Config - Class in com.dkt.graphics.utils.config
-
This class represents a generic Configuration class, with change listeners.
- ConfigEvent - Interface in com.dkt.graphics.utils.config
-
These events are triggered from the
Config
class each time something is added, updated or removed. - ConfigListener - Interface in com.dkt.graphics.utils.config
-
This interface must be implemented on all objects that should be notified of changes on the
Config
class.
Since configs are individual objects for each name, this objects must be registered against every configuration that should be controlled - configSet() - Static method in class com.dkt.graphics.utils.config.Config
- construct(String) - Static method in class com.dkt.graphics.Main
- contains(int, int) - Method in class com.dkt.graphics.elements.GCircle
-
Tells if a given point is contained in the circle
- contains(int, int) - Method in class com.dkt.graphics.elements.GLine
-
Tells if a point is contained in this line segment
- contains(int, int) - Method in class com.dkt.graphics.elements.GRectangle
-
Tells whether a point is contained on this rectangle
- contains(int, int) - Method in class com.dkt.graphics.elements.GRegPoly
-
Tells if a point is contained in the polygon
- contains(int, int) - Method in class com.dkt.graphics.extras.GPixMap
-
Tells if a given set of coordinates is contained in the bounds of this
GPixMap
Note: invisibleGPixMap
s don't intersect with anything - contains(GCircle) - Method in class com.dkt.graphics.elements.GCircle
-
Tells if a given circle is contained on this circle, that means that every point in the circle is contained in this one.
- contains(GLine) - Method in class com.dkt.graphics.elements.GCircle
-
Tells if a given line segment is contained in the circle, that means that both ends are contained in the circle
- contains(GLine) - Method in class com.dkt.graphics.elements.GRectangle
-
Tells whether a line is contained on this rectangle
- contains(GLine) - Method in class com.dkt.graphics.extras.GPixMap
-
Tells if a
GLine
is contained in the bounds of thisGPixMap
Note: invisibleGPixMap
s don't intersect with anything - contains(GPoint) - Method in class com.dkt.graphics.elements.GCircle
-
Tells if a given point is contained in the circle
- contains(GPoint) - Method in class com.dkt.graphics.elements.GLine
-
Tells if a point is contained in this line segment
- contains(GPoint) - Method in class com.dkt.graphics.elements.GRectangle
-
Tells whether a point is contained on this rectangle
- contains(GPoint) - Method in class com.dkt.graphics.elements.GRegPoly
-
Tells if a
GPoint
is contained in the polygon - contains(GPoint) - Method in class com.dkt.graphics.extras.GPixMap
-
Tells if a
GPoint
is contained in the bounds of thisGPixMap
Note: invisibleGPixMap
s don't intersect with anything - contains(GraphicE) - Method in class com.dkt.graphics.canvas.Canvas
-
Tells if a
GraphicE
is already being painted on the canvas. - contains(GraphicE) - Method in class com.dkt.graphics.elements.Graphic
- contains(GRectangle) - Method in class com.dkt.graphics.elements.GRectangle
-
Tells whether a rectangle is contained on this rectangle
- contains(GRectangle) - Method in class com.dkt.graphics.extras.GPixMap
-
Tells if a
GRectangle
is contained in the bounds of thisGPixMap
Note: invisibleGPixMap
s don't intersect with anything - createContext(ColorModel, Rectangle, Rectangle2D, AffineTransform, RenderingHints) - Method in class com.dkt.graphics.elements.GImage
- cross(GVector) - Method in class com.dkt.graphics.elements.GVector
-
Calculates the module of the orthogonal vector resulting of the cross product between this vector and the one passed as an argument, considering the
z
coordinate of both vectors equal to zero - ctps() - Method in class com.dkt.graphics.utils.TPS
-
Retrieves the number of times per second that the action method has been called, considering ONLY the last 50 times
- cx - Variable in class com.dkt.graphics.elements.GRectangle
- cy - Variable in class com.dkt.graphics.elements.GRectangle
D
- distance(int, int) - Method in class com.dkt.graphics.elements.GPoint
-
Calculates the distance between this point and the one passed as an argument
- distance(GPoint) - Method in class com.dkt.graphics.elements.GPoint
-
Calculates the distance between this point and the one passed as an argument
- distance(GVector) - Method in class com.dkt.graphics.elements.GVector
- DomainException - Exception Class in com.dkt.graphics.exceptions
-
This exception is usually thrown when one attempts to calculate
f(x)
andx
is not a part of the domain off
- DomainException(String, double) - Constructor for exception class com.dkt.graphics.exceptions.DomainException
-
This constructor takes the value and a string representation of the formula
- dot(GVector) - Method in class com.dkt.graphics.elements.GVector
-
Calculates the dot product between this vector and the one passed as an argument
- draw(GraphicE, int, int) - Static method in class com.dkt.graphics.utils.Utils
-
Draws a
GraphicE
into aBufferedImage
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GArc
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GCircle
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GImage
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GLine
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GOval
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GPath
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GPoint
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GPointArray
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GPoly
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.Graphic
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GraphicE
-
Draws the component on the given graphics
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GRectangle
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GString
- draw(Graphics2D) - Method in class com.dkt.graphics.elements.GVector
- draw(Graphics2D) - Method in class com.dkt.graphics.extras.formula.CalculableTimer
- draw(Graphics2D) - Method in class com.dkt.graphics.extras.formula.ParametricCalculableTimer
- draw(Graphics2D) - Method in class com.dkt.graphics.extras.GAxis
- draw(Graphics2D) - Method in class com.dkt.graphics.extras.GClip
- draw(Graphics2D) - Method in class com.dkt.graphics.extras.GGrid
- draw(Graphics2D) - Method in class com.dkt.graphics.extras.GPixMap
- draw(Graphics2D) - Method in class com.dkt.graphics.extras.GPVector
- draw(Graphics2D) - Method in class com.dkt.graphics.extras.GSprite
- draw(Graphics2D) - Method in class com.dkt.graphics.extras.GTransform
- draw(Graphics2D) - Method in class com.dkt.graphics.extras.GVectorPolygon
- drawAsPath() - Method in class com.dkt.graphics.extras.formula.AbstractTimer
-
Tells if the equation will be drawn as a path
- drawGrid() - Method in class com.dkt.graphics.extras.GSprite
-
Tells if the
GSprite
will draw the inner lines or not - drawLines() - Method in class com.dkt.graphics.extras.GPixMap
-
Tells if the
GPixMap
will draw the inner lines or not - drawLinesH(boolean) - Method in class com.dkt.graphics.extras.GAxis
-
Tells the Axis to draw the horizontal lines for the grid
- drawLinesV(boolean) - Method in class com.dkt.graphics.extras.GAxis
-
Tells the Axis to draw the vertical lines for the grid
E
- endPoint() - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
Retrieves the end point of the interval
- endPoint(double) - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
The end point of the interval used to calculate this formula
Note: this method doesn't control the values of the interval, nor the value used for the step, it's merely a container. - ensureCapacity(int) - Method in class com.dkt.graphics.elements.GMultiPoint
-
Allocates enough space for the specified number of elements
- equals(Object) - Method in class com.dkt.graphics.elements.GArc
- equals(Object) - Method in class com.dkt.graphics.elements.GCircle
- equals(Object) - Method in class com.dkt.graphics.elements.GFillableE
- equals(Object) - Method in class com.dkt.graphics.elements.GImage
- equals(Object) - Method in class com.dkt.graphics.elements.GLine
- equals(Object) - Method in class com.dkt.graphics.elements.GMultiPoint
- equals(Object) - Method in class com.dkt.graphics.elements.GOval
- equals(Object) - Method in class com.dkt.graphics.elements.GPoint
- equals(Object) - Method in class com.dkt.graphics.elements.GPointArray
- equals(Object) - Method in class com.dkt.graphics.elements.Graphic
- equals(Object) - Method in class com.dkt.graphics.elements.GraphicE
- equals(Object) - Method in class com.dkt.graphics.elements.GRectangle
- equals(Object) - Method in class com.dkt.graphics.elements.GRegPoly
- equals(Object) - Method in class com.dkt.graphics.elements.GString
- equals(Object) - Method in class com.dkt.graphics.elements.GVector
- equals(Object) - Method in class com.dkt.graphics.extras.GAxis
- equals(Object) - Method in class com.dkt.graphics.extras.GPixMap
- equals(Object) - Method in class com.dkt.graphics.extras.GTransform
- Example01 - Class in com.dkt.graphics.extras.examples
- Example01() - Constructor for class com.dkt.graphics.extras.examples.Example01
- Example02 - Class in com.dkt.graphics.extras.examples
- Example02() - Constructor for class com.dkt.graphics.extras.examples.Example02
- Example03 - Class in com.dkt.graphics.extras.examples
- Example03() - Constructor for class com.dkt.graphics.extras.examples.Example03
- Example04 - Class in com.dkt.graphics.extras.examples
- Example04() - Constructor for class com.dkt.graphics.extras.examples.Example04
- Example05 - Class in com.dkt.graphics.extras.examples
- Example05() - Constructor for class com.dkt.graphics.extras.examples.Example05
- Example06 - Class in com.dkt.graphics.extras.examples
- Example06() - Constructor for class com.dkt.graphics.extras.examples.Example06
- Example07 - Class in com.dkt.graphics.extras.examples
- Example07() - Constructor for class com.dkt.graphics.extras.examples.Example07
- Example08 - Class in com.dkt.graphics.extras.examples
- Example08() - Constructor for class com.dkt.graphics.extras.examples.Example08
- Example09 - Class in com.dkt.graphics.extras.examples
- Example09() - Constructor for class com.dkt.graphics.extras.examples.Example09
- Example10 - Class in com.dkt.graphics.extras.examples
- Example10() - Constructor for class com.dkt.graphics.extras.examples.Example10
- Example11 - Class in com.dkt.graphics.extras.examples
- Example11() - Constructor for class com.dkt.graphics.extras.examples.Example11
- Example12 - Class in com.dkt.graphics.extras.examples
- Example12() - Constructor for class com.dkt.graphics.extras.examples.Example12
- Example13 - Class in com.dkt.graphics.extras.examples
- Example13() - Constructor for class com.dkt.graphics.extras.examples.Example13
- Example14 - Class in com.dkt.graphics.extras.examples
- Example14() - Constructor for class com.dkt.graphics.extras.examples.Example14
- Example15 - Class in com.dkt.graphics.extras.examples
- Example15() - Constructor for class com.dkt.graphics.extras.examples.Example15
- Example16 - Class in com.dkt.graphics.extras.examples
- Example16() - Constructor for class com.dkt.graphics.extras.examples.Example16
- Example17 - Class in com.dkt.graphics.extras.examples
- Example17() - Constructor for class com.dkt.graphics.extras.examples.Example17
- exportMap(GPixMap, File) - Static method in class com.dkt.graphics.extras.GPixMap
-
Saves a text representation of this
GPixMap
to a file
F
- f(double) - Method in class com.dkt.graphics.extras.formula.Calculable
-
This method should f the function's value.
It's not strictly necessary, but the idea is for these functions to be deterministic since they are usually plotted as fixed elements on the canvas - fill() - Method in class com.dkt.graphics.elements.GFillableE
-
Tells if the component must be filled
- first() - Method in class com.dkt.graphics.extras.GSprite
-
Sets the first
GPixMap
as the current one. - flatten() - Method in class com.dkt.graphics.elements.Graphic
-
Flattens the structure of a Graphic, this method is very slow, but it will increase the performance of draw().
- font(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
-
Sets a global font, if the argument is
no
then it will reset the global font - for1(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- for2(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- for3(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- for4(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- from(String) - Static method in class com.dkt.graphics.utils.config.Config
-
A wrapper for
Config.on(String)
G
- GArc - Class in com.dkt.graphics.elements
- GArc(int, int, int, int, int) - Constructor for class com.dkt.graphics.elements.GArc
-
Generates an arc of a circle
- GArc(int, int, int, int, int, int) - Constructor for class com.dkt.graphics.elements.GArc
-
Generates an arc of an oval
- GArc(GArc) - Constructor for class com.dkt.graphics.elements.GArc
-
Copy constructor
- GAxis - Class in com.dkt.graphics.extras
-
This class represents a pair of Cartesian axis.
- GAxis(int, int, int, int) - Constructor for class com.dkt.graphics.extras.GAxis
-
Main constructor of the Axis.
This constructor asks for the dimensions of the axis, but if you want it centered in the drawable area of the canvas, you'll need to set the origin of the canvas in the correct position. - GAxis(GAxis) - Constructor for class com.dkt.graphics.extras.GAxis
-
Copy constructor
- GCircle - Class in com.dkt.graphics.elements
- GCircle(int, int, int) - Constructor for class com.dkt.graphics.elements.GCircle
- GCircle(GCircle) - Constructor for class com.dkt.graphics.elements.GCircle
-
Copy constructor
- GClip - Class in com.dkt.graphics.extras
- GClip() - Constructor for class com.dkt.graphics.extras.GClip
-
Basic
GClip
constructor - GClip(GClip) - Constructor for class com.dkt.graphics.extras.GClip
-
Copy constructor
- GClip(Area) - Constructor for class com.dkt.graphics.extras.GClip
-
Constructs a
GClip
from a given area. - get(int) - Method in class com.dkt.graphics.utils.Gif
-
Retrieves one of the snapshots
- get(String) - Method in class com.dkt.graphics.utils.config.Config
-
Retrieves a raw
value
for a givenkey
- getAngle() - Method in class com.dkt.graphics.elements.GString
-
Retrieves the angle in degrees of the
String
- getArgument() - Method in class com.dkt.graphics.elements.GLine
-
Retrieves the argument of the line segment (in degrees)
- getBool(String) - Method in class com.dkt.graphics.utils.config.Config
-
Retrieves the
value
for a givenkey
as aboolean
- getBounds() - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves
GRectangle
that contains all the points in this array - getBounds() - Method in class com.dkt.graphics.extras.GPixMap
-
Retrieves the bounds of this
GPixMap
at this particular moment, if you plan on using this to check for collisions, it's better to use thecontains(...)
methods of this class - getBounds() - Method in class com.dkt.graphics.extras.GSprite
-
Retrieves the current bounds of this
GSprite
- getCalculable() - Method in class com.dkt.graphics.extras.formula.AbstractTimer
-
Retrieves the calculable object used for the calculations.
- getCanvas() - Method in class com.dkt.graphics.canvas.CanvasFrame
- getChangedKey() - Method in interface com.dkt.graphics.utils.config.ConfigEvent
-
Retrieves the
key
that triggered the event - getChangeType() - Method in interface com.dkt.graphics.utils.config.ConfigEvent
-
Retrieves the type of change that has happened
- getColor(String) - Method in class com.dkt.graphics.utils.config.Config
- getColorData() - Method in class com.dkt.graphics.extras.GPixMap
-
Retrieves a copy of the color data expressed as a
Color
matrix - getColorWithAlpha(Color, int) - Static method in class com.dkt.graphics.utils.Utils
-
Generates a new
Color
based on the color but with the given alpha - getCount() - Method in class com.dkt.graphics.elements.Graphic
-
Retrieves the number of
GraphicE
components that compose thisGraphic
. - getCursor() - Method in class com.dkt.graphics.extras.GSprite
-
Retrieves the current cursor position
- getCX() - Method in class com.dkt.graphics.elements.GRectangle
-
Retrieves the X coordinate of the center of this rectangle
- getCY() - Method in class com.dkt.graphics.elements.GRectangle
-
Retrieves the Y coordinate of the center of this rectangle
- getData() - Method in class com.dkt.graphics.extras.GPixMap
-
Retrieves a copy of the color data expressed as an
int
matrix - getDelay() - Method in class com.dkt.graphics.utils.Gif
-
Retrieves the delay between images in ms.
The default value is 100ms. - getDouble(String) - Method in class com.dkt.graphics.utils.config.Config
-
Retrieves the
value
for a givenkey
as adouble
- getDrawableAreaPaint() - Method in class com.dkt.graphics.canvas.Canvas
-
Retrieves the
Paint
used as background on the drawable area of the canvas - getDrawableBorderPaint() - Method in class com.dkt.graphics.canvas.Canvas
-
Retrieves the
Paint
of the border of the drawable area - getEndPoint() - Method in class com.dkt.graphics.elements.GLine
-
Retrieves a copy of the end point of this line segment
- getErrorCount() - Method in class com.dkt.graphics.extras.GraphicCreator
-
Retrieves the number of errors encountered during the parsing of a given text.
- getFillPaint() - Method in class com.dkt.graphics.elements.GFillableE
-
Retrieves the
Paint
used to render this component - getFont() - Method in class com.dkt.graphics.elements.GString
-
Retrieves the font used to print this
String
- getFontMetrics(Graphics2D) - Method in class com.dkt.graphics.elements.GString
- getHeight() - Method in class com.dkt.graphics.elements.GImage
-
Retrieves the current height of the
GImage
in pixels - getHeight() - Method in class com.dkt.graphics.elements.GRectangle
-
Retrieves the height of this rectangle
- getIcon(String) - Method in class com.dkt.graphics.utils.config.Config
-
Retrieves the
value
for a givenkey
as anImageIcon
- getImage(Canvas, boolean) - Static method in class com.dkt.graphics.utils.Utils
-
Retrieves a 1:1 image of the canvas
- getInt(String) - Method in class com.dkt.graphics.utils.config.Config
-
Retrieves the
value
for a givenkey
as anint
- getIterations() - Method in class com.dkt.graphics.utils.TicToc
-
Counts the number of
TicToc.toc()
calls - getLastException() - Method in class com.dkt.graphics.utils.Gif
-
Retrieves the last exception in case such exception exists.
- getLeftL() - Method in class com.dkt.graphics.elements.GRectangle
-
Retrieves x coordinate of the left limit of this rectangle
- getLowerL() - Method in class com.dkt.graphics.elements.GRectangle
-
Retrieves y coordinate of the lower limit of this rectangle
- getMayorTickSize() - Method in class com.dkt.graphics.extras.GAxis
-
Retrieves the mayor tick size.
- getMicroTime() - Method in class com.dkt.graphics.utils.TicToc
- getMiddlePoint() - Method in class com.dkt.graphics.elements.GLine
-
Retrieves the middle point of the line
- getMillisTime() - Method in class com.dkt.graphics.utils.TicToc
- getMinorTickSize() - Method in class com.dkt.graphics.extras.GAxis
-
Retrieves the minor tick size.
- getName() - Method in class com.dkt.graphics.extras.examples.Example01
- getName() - Method in class com.dkt.graphics.extras.examples.Example02
- getName() - Method in class com.dkt.graphics.extras.examples.Example03
- getName() - Method in class com.dkt.graphics.extras.examples.Example04
- getName() - Method in class com.dkt.graphics.extras.examples.Example05
- getName() - Method in class com.dkt.graphics.extras.examples.Example06
- getName() - Method in class com.dkt.graphics.extras.examples.Example07
- getName() - Method in class com.dkt.graphics.extras.examples.Example08
- getName() - Method in class com.dkt.graphics.extras.examples.Example09
- getName() - Method in class com.dkt.graphics.extras.examples.Example10
- getName() - Method in class com.dkt.graphics.extras.examples.Example11
- getName() - Method in class com.dkt.graphics.extras.examples.Example12
- getName() - Method in class com.dkt.graphics.extras.examples.Example13
- getName() - Method in class com.dkt.graphics.extras.examples.Example14
- getName() - Method in class com.dkt.graphics.extras.examples.Example15
- getName() - Method in class com.dkt.graphics.extras.examples.Example16
- getName() - Method in class com.dkt.graphics.extras.examples.Example17
- getName() - Method in interface com.dkt.graphics.extras.examples.IExample
-
Retrieves the name of the example
- getName() - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
Retrieves the getName for the formula
- getNanoTime() - Method in class com.dkt.graphics.utils.TicToc
- getNewValue() - Method in interface com.dkt.graphics.utils.config.ConfigEvent
-
Retrieves the new value associated with this key
- getOldValue() - Method in interface com.dkt.graphics.utils.config.ConfigEvent
-
Retrieves the old value associated with this key
- getOriginalHeight() - Method in class com.dkt.graphics.elements.GImage
-
Retrieves the original height of the
GImage
in pixels - getOriginalWidth() - Method in class com.dkt.graphics.elements.GImage
-
Retrieves the original width of the
GImage
in pixels - getOrthogal() - Method in class com.dkt.graphics.elements.GLine
-
Retrieves an orthogonal line that segment contains (0, 0) as it's start point
- getOrthogal(int, int) - Method in class com.dkt.graphics.elements.GLine
-
Retrieves an orthogonal line segment that contains (x, y) as it's start point
- getPaint() - Method in class com.dkt.graphics.elements.GraphicE
-
The
Paint
of this component - getParallel(int, int) - Method in class com.dkt.graphics.elements.GLine
-
Retrieves an parallel line segment that contains (x, y) as it's start point
- getPixelSize() - Method in class com.dkt.graphics.extras.GSprite
-
Retrieves the pixel size of the
GSprite
- getPointAt(int) - Method in class com.dkt.graphics.elements.GMultiPoint
-
Retrieves a given
GPoint
from the path - getPoints() - Method in class com.dkt.graphics.elements.GMultiPoint
-
Retrieves a COPY of the
GPoint
's in the path - getPosition() - Method in class com.dkt.graphics.extras.GPixMap
-
This will retrieve the position of the lower left corner of the
GPixMap
.
Note: if the canvas is inverting theY axis
then it will represent the upper left corner - getRadArgument() - Method in class com.dkt.graphics.elements.GLine
-
Retrieves the argument of the line segment (in radians)
- getRadius() - Method in class com.dkt.graphics.elements.GCircle
-
Returns the radius of the circle
- getRadius() - Method in class com.dkt.graphics.elements.GRegPoly
-
Returns the radius of the circle used to create
- getRightL() - Method in class com.dkt.graphics.elements.GRectangle
-
Retrieves x coordinate of the right limit of this rectangle
- getScale() - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
Deprecated.this method was deprecated because now we have individual scales for both x and y. This method is still used in several projects, but it will be removed in future versions.
- getSecsTime() - Method in class com.dkt.graphics.utils.TicToc
- getShape() - Method in class com.dkt.graphics.elements.GArc
- getShape() - Method in class com.dkt.graphics.elements.GCircle
- getShape() - Method in class com.dkt.graphics.elements.GFillableE
-
This method should return a
Area
that represents theGFillableE
. - getShape() - Method in class com.dkt.graphics.elements.GMultiPoint
- getShape() - Method in class com.dkt.graphics.elements.GOval
- getShape() - Method in class com.dkt.graphics.elements.GRectangle
- getStartPoint() - Method in class com.dkt.graphics.elements.GLine
-
Retrieves a copy of the start point of this line segment
- getString() - Method in class com.dkt.graphics.elements.GString
-
Retrieves the
String
- getString(String) - Method in class com.dkt.graphics.utils.config.Config
-
Retrieves the
value
for a givenkey
as aString
- getStroke() - Method in class com.dkt.graphics.elements.GraphicE
-
Gets the
Stroke
used to draw this component - getTexture(String) - Static method in class com.dkt.graphics.utils.Utils
-
Generates a texture from a given file
- getThread(Calculable, int, int, boolean) - Method in class com.dkt.graphics.extras.formula.CalculableTimer
- getThread(ParametricCalculable, int, int, boolean) - Method in class com.dkt.graphics.extras.formula.ParametricCalculableTimer
- getThread(T, int, int, boolean) - Method in class com.dkt.graphics.extras.formula.AbstractTimer
- getTotalLineCount() - Method in class com.dkt.graphics.extras.GraphicCreator
- getTransform() - Method in class com.dkt.graphics.extras.GTransform
-
Retrieves the
AffineTransform
used in thisGTransform
- getTransparency() - Method in class com.dkt.graphics.elements.GImage
- getUpperL() - Method in class com.dkt.graphics.elements.GRectangle
-
Retrieves y coordinate of the upper limit of this rectangle
- getWidth() - Method in class com.dkt.graphics.elements.GImage
-
Retrieves the current width of the
GImage
in pixels - getWidth() - Method in class com.dkt.graphics.elements.GRectangle
-
Retrieves the width of this rectangle
- getX() - Method in class com.dkt.graphics.elements.GRegPoly
-
Retrieves the X coordinate of the center of the polygon
- getX() - Method in class com.dkt.graphics.elements.GString
-
Retrieves the
x
coordinate of the string - getXComponent() - Method in class com.dkt.graphics.elements.GVector
-
Retrieves the X projection of this vector
- getXOff() - Method in class com.dkt.graphics.canvas.Canvas
-
Retrieves the horizontal offset of the drawing area in the canvas.
- getXSize() - Method in class com.dkt.graphics.canvas.Canvas
-
Retrieves the horizontal size of the drawable area
- getXSize() - Method in class com.dkt.graphics.extras.GPixMap
-
Retrieves the number of horizontal pixels in this
GPixMap
- getY() - Method in class com.dkt.graphics.elements.GRegPoly
-
Retrieves the Y coordinate of the center of the polygon
- getY() - Method in class com.dkt.graphics.elements.GString
-
Retrieves the
y
coordinate of the string - getYComponent() - Method in class com.dkt.graphics.elements.GVector
-
Retrieves the Y projection of this vector
- getYOff() - Method in class com.dkt.graphics.canvas.Canvas
-
Retrieves the vertical offset of the drawing area in the canvas.
- getYSize() - Method in class com.dkt.graphics.canvas.Canvas
-
Retrieves the vertical size of the drawable area
- getYSize() - Method in class com.dkt.graphics.extras.GPixMap
-
Retrieves the number of vertical pixels in this
GPixMap
- GFillableE - Class in com.dkt.graphics.elements
-
This represents an abstract fillable element
- GFillableE() - Constructor for class com.dkt.graphics.elements.GFillableE
- GFillableE(GFillableE) - Constructor for class com.dkt.graphics.elements.GFillableE
-
Copy constructor
- GFormula - Class in com.dkt.graphics.extras
-
This class represents a basic Formula.
It translates aCalculable
into a Graphic. - GFormula(Calculable) - Constructor for class com.dkt.graphics.extras.GFormula
-
Creates a new
GFormula
for the givenCalculable
object - GGrid - Class in com.dkt.graphics.extras
-
This class creates a simple line grid
- GGrid(int, int, int, int) - Constructor for class com.dkt.graphics.extras.GGrid
- GGrid(int, int, int, int, int, int) - Constructor for class com.dkt.graphics.extras.GGrid
- GGrid(GGrid) - Constructor for class com.dkt.graphics.extras.GGrid
-
Copy constructor
- Gif - Class in com.dkt.graphics.utils
-
The purpose of this class is to create animated GIFs from a series of canvas snapshots
- Gif(Canvas) - Constructor for class com.dkt.graphics.utils.Gif
-
Creates a new Gif object.
- GImage - Class in com.dkt.graphics.elements
-
Wraps a
BufferedImage
into aGraphicE
object - GImage(int, int, BufferedImage) - Constructor for class com.dkt.graphics.elements.GImage
-
Create a new
GImage
from a givenBufferedImage
- GImage(int, int, File) - Constructor for class com.dkt.graphics.elements.GImage
-
Create a new
GImage
from a given file - GImage(GImage) - Constructor for class com.dkt.graphics.elements.GImage
-
Copy constructor
- GImage(File) - Constructor for class com.dkt.graphics.elements.GImage
-
Create a new
GImage
from a given file - GImage(String) - Constructor for class com.dkt.graphics.elements.GImage
-
Create a new
GImage
from a given path - GLine - Class in com.dkt.graphics.elements
-
This class represents a line segment
- GLine(int, int, double, double) - Constructor for class com.dkt.graphics.elements.GLine
-
Constructs a new line based on its start point, length and angle
- GLine(int, int, int, int) - Constructor for class com.dkt.graphics.elements.GLine
-
Constructs a new line segment based on the end points
- GLine(GLine) - Constructor for class com.dkt.graphics.elements.GLine
-
Copy constructor
- GLine(GPoint, GPoint) - Constructor for class com.dkt.graphics.elements.GLine
-
Constructs a new line segment based on the end points
- GMultiPoint - Class in com.dkt.graphics.elements
-
Represents an abstract array of (x, y) coordinates.
Note: even though this class extends fromGFillableE
it's the subclass option to enforce the fill methods - GMultiPoint(int) - Constructor for class com.dkt.graphics.elements.GMultiPoint
- GMultiPoint(int[], int[]) - Constructor for class com.dkt.graphics.elements.GMultiPoint
- GMultiPoint(GMultiPoint) - Constructor for class com.dkt.graphics.elements.GMultiPoint
-
Copy constructor
- GOval - Class in com.dkt.graphics.elements
- GOval(int, int, int, int) - Constructor for class com.dkt.graphics.elements.GOval
-
Constructs an oval inscribed in a rectangle
- GOval(GOval) - Constructor for class com.dkt.graphics.elements.GOval
-
Copy constructor
- GOval(GRectangle) - Constructor for class com.dkt.graphics.elements.GOval
-
Constructs an oval inscribed in a given rectangle
- GPath - Class in com.dkt.graphics.elements
- GPath() - Constructor for class com.dkt.graphics.elements.GPath
-
Creates a new empty Path
- GPath(int) - Constructor for class com.dkt.graphics.elements.GPath
- GPath(int[], int[]) - Constructor for class com.dkt.graphics.elements.GPath
- GPath(GPath) - Constructor for class com.dkt.graphics.elements.GPath
-
Copy constructor
- GPixMap - Class in com.dkt.graphics.extras
- GPixMap(int[][], boolean) - Constructor for class com.dkt.graphics.extras.GPixMap
-
Constructs a new
GPixMap
from a givenint
matrix - GPixMap(int, int) - Constructor for class com.dkt.graphics.extras.GPixMap
-
Creates a new
GPixMap
of a given size - GPixMap(GPixMap) - Constructor for class com.dkt.graphics.extras.GPixMap
-
Copy constructor
- GPixMap(Color[][]) - Constructor for class com.dkt.graphics.extras.GPixMap
-
Constructs a new
GPixMap
from a givenColor
matrix - GPoint - Class in com.dkt.graphics.elements
-
This class represents a mutable point
- GPoint(int, int) - Constructor for class com.dkt.graphics.elements.GPoint
-
Creates a new
GPoint
- GPoint(int, int, int) - Constructor for class com.dkt.graphics.elements.GPoint
-
Creates a new
GPoint
with a given cross size - GPoint(GPoint) - Constructor for class com.dkt.graphics.elements.GPoint
-
Copy constructor
- GPointArray - Class in com.dkt.graphics.elements
- GPointArray() - Constructor for class com.dkt.graphics.elements.GPointArray
-
Generates a new empty
GPointArray
- GPointArray(int) - Constructor for class com.dkt.graphics.elements.GPointArray
- GPointArray(int[], int[]) - Constructor for class com.dkt.graphics.elements.GPointArray
- GPointArray(int[], int[], int) - Constructor for class com.dkt.graphics.elements.GPointArray
- GPointArray(GPoint[]) - Constructor for class com.dkt.graphics.elements.GPointArray
- GPointArray(GPoint[], int) - Constructor for class com.dkt.graphics.elements.GPointArray
- GPointArray(GPointArray) - Constructor for class com.dkt.graphics.elements.GPointArray
-
Copy constructor
- GPoly - Class in com.dkt.graphics.elements
- GPoly() - Constructor for class com.dkt.graphics.elements.GPoly
-
Generates an empty polygon
- GPoly(int) - Constructor for class com.dkt.graphics.elements.GPoly
-
Generates an empty polygon with the specified reserved space
- GPoly(int[], int[]) - Constructor for class com.dkt.graphics.elements.GPoly
- GPoly(GPoly) - Constructor for class com.dkt.graphics.elements.GPoly
-
Copy constructor
- GPVector - Class in com.dkt.graphics.extras
-
This class represents a vector and it's projections, it's mainly used in physics problems where you need to print how the orthogonal components of a vector changes
- GPVector(int, int, double, double) - Constructor for class com.dkt.graphics.extras.GPVector
-
Creates a new
GPVector
- GPVector(GVector) - Constructor for class com.dkt.graphics.extras.GPVector
-
Creates a new
GPVector
based on theGVector
passed as argument. - GPVector(GPVector) - Constructor for class com.dkt.graphics.extras.GPVector
- gradient(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
-
Creates a linear gradient between
color
andcolorf
, so they need to be set before calling this method.
The arguments should bex1, y1, x2, y2
, that is, the coordinates of the first point of the gradient vector and the coordinates of the last point - gradient2(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
-
Creates a linear cyclic gradient between
color
andcolorf
, so they need to be set before calling this method.
The arguments should bex1, y1, x2, y2
, that is, the coordinates of the first point of the gradient vector and the coordinates of the last point - Graphic - Class in com.dkt.graphics.elements
- Graphic() - Constructor for class com.dkt.graphics.elements.Graphic
- Graphic(int) - Constructor for class com.dkt.graphics.elements.Graphic
- Graphic(Graphic) - Constructor for class com.dkt.graphics.elements.Graphic
-
Copy constructor
- GraphicCreator - Class in com.dkt.graphics.extras
-
This class came as an exercise to create
Graphic
objects from text without modifying the classes themselves, it was later used on Graphic Designer, and finally decided to add it to add it to the extras package.
This class is pretty handy to create simple drawing based GUIs, since manipulating strings is orders of magnitude easier than using Graphics. - GraphicCreator() - Constructor for class com.dkt.graphics.extras.GraphicCreator
- GraphicE - Class in com.dkt.graphics.elements
-
This class represents an abstract Graphical Element
- GraphicE() - Constructor for class com.dkt.graphics.elements.GraphicE
- GraphicE(GraphicE) - Constructor for class com.dkt.graphics.elements.GraphicE
-
Copy constructor
- GRectangle - Class in com.dkt.graphics.elements
- GRectangle(int) - Constructor for class com.dkt.graphics.elements.GRectangle
-
Creates a new rectangle (square) on with center in
(0, 0)
- GRectangle(int, int, int) - Constructor for class com.dkt.graphics.elements.GRectangle
-
Creates a new rectangle (square) given the coordinates of the center, and the size of it's side
- GRectangle(int, int, int, int) - Constructor for class com.dkt.graphics.elements.GRectangle
-
Creates a new rectangle given the coordinates of the center, it's width and height
- GRectangle(GRectangle) - Constructor for class com.dkt.graphics.elements.GRectangle
-
Copy constructor
- GRegPoly - Class in com.dkt.graphics.elements
- GRegPoly(int, int, int, int, double) - Constructor for class com.dkt.graphics.elements.GRegPoly
-
Constructs a regular polygon contained in a circle
- GRegPoly(GRegPoly) - Constructor for class com.dkt.graphics.elements.GRegPoly
-
Copy constructor
- grid(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- GSprite - Class in com.dkt.graphics.extras
-
Creates a simple sprite, if you need help creating the pixmaps, you should probably try out PixmapCreator
- GSprite() - Constructor for class com.dkt.graphics.extras.GSprite
-
Creates an empty sprite
- GSprite(GSprite) - Constructor for class com.dkt.graphics.extras.GSprite
- GString - Class in com.dkt.graphics.elements
- GString(int, int, double, String) - Constructor for class com.dkt.graphics.elements.GString
-
GString constructor
- GString(int, int, double, String, Font) - Constructor for class com.dkt.graphics.elements.GString
-
Complete GString constructor
- GString(int, int, String) - Constructor for class com.dkt.graphics.elements.GString
-
GString constructor
- GString(int, int, String, Font) - Constructor for class com.dkt.graphics.elements.GString
-
GString constructor
- GString(GString) - Constructor for class com.dkt.graphics.elements.GString
-
Copy constructor
- GTransform - Class in com.dkt.graphics.extras
-
This class wraps a
AffineTransform
in aGraphicE
, in order to give a bit more "flexibility" toGraphic
objects - GTransform(double, double) - Constructor for class com.dkt.graphics.extras.GTransform
-
Create a scaling
GTransform
- GTransform(int, int, double) - Constructor for class com.dkt.graphics.extras.GTransform
-
Create a rotating
GTransform
- GTransform(GTransform) - Constructor for class com.dkt.graphics.extras.GTransform
-
Copy constructor
- GuiUtils - Class in com.dkt.graphics.utils
- GVector - Class in com.dkt.graphics.elements
-
This class represents a Vector, basically a line with a triangular tip.
If the modulus of the vector is0
then not even the triangle is drawn. - GVector(int, int, double, double) - Constructor for class com.dkt.graphics.elements.GVector
-
Basic Vector constructor
- GVector(int, int, int, int) - Constructor for class com.dkt.graphics.elements.GVector
-
Basic Vector constructor
- GVector(GLine) - Constructor for class com.dkt.graphics.elements.GVector
-
Creates a new vector from a given
GLine
, using the start point as the application point. - GVector(GVector) - Constructor for class com.dkt.graphics.elements.GVector
-
Copy constructor
- GVectorPolygon - Class in com.dkt.graphics.extras
-
This class creates a Resultant Vector as a result of the sum of a finite number of vectors.
- GVectorPolygon(GVector...) - Constructor for class com.dkt.graphics.extras.GVectorPolygon
-
Creates a new
GVectorPolygon
based on aGVector
array - GVectorPolygon(GVectorPolygon) - Constructor for class com.dkt.graphics.extras.GVectorPolygon
H
- h - Variable in class com.dkt.graphics.elements.GRectangle
- hashCode() - Method in class com.dkt.graphics.elements.GArc
- hashCode() - Method in class com.dkt.graphics.elements.GCircle
- hashCode() - Method in class com.dkt.graphics.elements.GFillableE
- hashCode() - Method in class com.dkt.graphics.elements.GImage
- hashCode() - Method in class com.dkt.graphics.elements.GLine
- hashCode() - Method in class com.dkt.graphics.elements.GMultiPoint
- hashCode() - Method in class com.dkt.graphics.elements.GOval
- hashCode() - Method in class com.dkt.graphics.elements.GPoint
- hashCode() - Method in class com.dkt.graphics.elements.GPointArray
- hashCode() - Method in class com.dkt.graphics.elements.Graphic
- hashCode() - Method in class com.dkt.graphics.elements.GraphicE
- hashCode() - Method in class com.dkt.graphics.elements.GRectangle
- hashCode() - Method in class com.dkt.graphics.elements.GRegPoly
- hashCode() - Method in class com.dkt.graphics.elements.GString
- hashCode() - Method in class com.dkt.graphics.elements.GVector
- hashCode() - Method in class com.dkt.graphics.extras.GAxis
- hashCode() - Method in class com.dkt.graphics.extras.GPixMap
- hashCode() - Method in class com.dkt.graphics.extras.GTransform
- higherThan(GPoint) - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a new
GPointArray
representing all the points that are abovep
.
Please note that this is done considering the Y axis, graphically it means the higher if and only if you are inverting the Y axis - highestPoint() - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a copy of the highest point in this array at the moment
- hs(double) - Static method in class com.dkt.graphics.utils.MathUtils
-
This class is the Heaviside step function omitting the value of
1/2
fort = 0
I
- IExample - Interface in com.dkt.graphics.extras.examples
- importMap(File) - Static method in class com.dkt.graphics.extras.GPixMap
-
Imports a
GPixMap
from a file - importMap(InputStream) - Static method in class com.dkt.graphics.extras.GPixMap
-
Imports a
GPixMap
from a givenInputStream
- indexOf(int, int) - Method in class com.dkt.graphics.elements.GMultiPoint
-
Retrieves the index of the first occurrence of this point
- indexOf(int, int, int) - Method in class com.dkt.graphics.elements.GMultiPoint
-
Retrieves the index of the first occurrence of this point after the starting point
- indexOf(GPoint) - Method in class com.dkt.graphics.elements.GMultiPoint
-
Retrieves the index of the first occurrence of this point
- indexOf(GPoint, int) - Method in class com.dkt.graphics.elements.GMultiPoint
-
Retrieves the index of the first occurrence of this point after the starting point
- indexOf(GraphicE) - Method in class com.dkt.graphics.elements.Graphic
-
Retrieves the index of a given element on the
Graphic
. - inDrawingArea(int, int) - Method in class com.dkt.graphics.canvas.Canvas
-
Tells if a given point is contained in the drawing area.
- intersection(GCircle) - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a new
GPointArray
containing all the points that are contained both in this array and in theGCircle
passed as an argument - intersection(GLine) - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a new
GPointArray
containing all the points that are contained both in this array and in theGLine
passed as an argument - intersection(GPointArray) - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a new
GPointArray
containing all the points that are both in this array and in the one passed as an argument - intersection(GRectangle) - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a new
GPointArray
containing all the points that are contained both in this array and in theGRectangle
passed as an argument - intersects(GCircle) - Method in class com.dkt.graphics.elements.GCircle
-
Tells if this circle intersects with another one
- intersects(GLine) - Method in class com.dkt.graphics.elements.GCircle
-
Tells if this circle intersects with a line.
Note: This will tell if the line intersects the circle NOT the line segment!!! - intersects(GRectangle) - Method in class com.dkt.graphics.elements.GRectangle
-
Tells whether a rectangle is intersecting this rectangle
- intersects(GRectangle) - Method in class com.dkt.graphics.extras.GPixMap
-
Tells this
GPixMap
intersects with a givenGRectangle
Note: invisibleGPixMap
s don't intersect with anything - intersects(GPixMap) - Method in class com.dkt.graphics.extras.GPixMap
-
Tells two
GPixMap
s intersect
Note: invisibleGPixMap
s don't intersect with anything - IntervalException - Exception Class in com.dkt.graphics.exceptions
-
This exception is usually thrown when something goes wrong with an interval
- IntervalException(String, double, double, double) - Constructor for exception class com.dkt.graphics.exceptions.IntervalException
-
Generates a new Exception based on the starting point of the interval, the last point and the step.
- IntervalException(String, int, int) - Constructor for exception class com.dkt.graphics.exceptions.IntervalException
-
Generates a new Exception based on the starting point of the interval, the last point.
- IntervalException(String, int, int, int) - Constructor for exception class com.dkt.graphics.exceptions.IntervalException
-
Generates a new Exception to be thrown when a value is not in an interval
- InvalidArgumentException - Exception Class in com.dkt.graphics.exceptions
- InvalidArgumentException(String) - Constructor for exception class com.dkt.graphics.exceptions.InvalidArgumentException
- invert() - Method in class com.dkt.graphics.extras.GTransform
-
Retrieves a new
GTransform
that reverses the effects of this one - invertYAxis() - Method in class com.dkt.graphics.canvas.Canvas
-
Tells if the canvas is inverting the Y axis
- isCyclic() - Method in class com.dkt.graphics.extras.GSprite
-
Tells if the
GSprite
should behave as a circular list.
The default value istrue
. - isEmpty() - Method in class com.dkt.graphics.elements.GMultiPoint
-
Tells if the object doesn't contain any points
- isKey(String) - Method in interface com.dkt.graphics.utils.config.ConfigEvent
-
Tells if the value affects a given key, basically:
- isPaused() - Method in class com.dkt.graphics.extras.formula.AbstractTimer
-
Tells if the timer is paused
- isRunning() - Method in class com.dkt.graphics.extras.formula.AbstractTimer
-
Tells if the timer is running
- isSquare() - Method in class com.dkt.graphics.extras.GPixMap
-
Tells if the
GPixMap
has the same number of rows and columns - isVisible() - Method in class com.dkt.graphics.elements.Graphic
-
Tells if
Graphic
will be drawn in the canvas - isVisible() - Method in class com.dkt.graphics.extras.GPixMap
-
Tells if the
GPixMap
will be drawn
Note: invisibleGPixMap
s don't intersect with anything - isVisible() - Method in class com.dkt.graphics.extras.GSprite
-
Tells if the
GSprite
is visible - iterator() - Method in class com.dkt.graphics.elements.GMultiPoint
- iterator() - Method in class com.dkt.graphics.elements.Graphic
- iterator() - Method in class com.dkt.graphics.extras.GSprite
L
- last() - Method in class com.dkt.graphics.extras.GSprite
-
Sets the last
GPixMap
as the current one. - leftmostPoint() - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a copy of the leftmost point in this array at the moment
- leftThan(GPoint) - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a new
GPointArray
representing all the points that are located to the left ofp
. - LibUtils - Class in com.dkt.graphics.utils
- license() - Static method in class com.dkt.graphics.utils.LibUtils
-
Retrieves the license name
- licenseUrl() - Static method in class com.dkt.graphics.utils.LibUtils
-
Retrieves the license URL
- linec(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
-
Creates a line based on cartesian coordinates.
The arguments arex1, y1, x2, y2
. - linep(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
-
Creates a line based on polar coordinates.
The arguments arex, y, l, a
. - lowerThan(GPoint) - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a new
GPointArray
representing all the points that are belowp
.
Please note that this is done considering the Y axis, graphically it means the lower if and only if you are inverting the Y axis - lowestPoint() - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a copy of the lowest point in this array at the moment
- lpath(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
M
- main(String[]) - Static method in class com.dkt.graphics.Main
- Main - Class in com.dkt.graphics
- Main() - Constructor for class com.dkt.graphics.Main
- MathUtils - Class in com.dkt.graphics.utils
- max(int, int) - Static method in class com.dkt.graphics.utils.MathUtils
-
Provides an unbranched version of max for POSITIVE ints, it does 7 operation instead of branching (which is somewhat slower, but it's mainly here for educational purposes)
The original code can be found in: ... - mayorTicksH(int) - Method in class com.dkt.graphics.extras.GAxis
-
Tells the axis to draw the mayor ticks of the horizontal axis with a distance of 'h'.
Note: The mayor ticks MUST correspond to a minor tick. - mayorTicksV(int) - Method in class com.dkt.graphics.extras.GAxis
-
Tells the axis to draw the mayor ticks of the vertical axis with a distance of 'v'.
Note: The mayor ticks MUST correspond to a minor tick. - min(int, int) - Static method in class com.dkt.graphics.utils.MathUtils
-
Provides an unbranched version of min for POSITIVE ints, it does 7 operations instead of branching (which is somewhat slower, but it's mainly here for educational purposes)
The original code can be found in: ... - minorTicksH(int) - Method in class com.dkt.graphics.extras.GAxis
-
Tells the axis to draw the minor ticks of the horizontal axis with a distance of 'h'
- minorTicksV(int) - Method in class com.dkt.graphics.extras.GAxis
-
Tells the axis to draw the minor ticks of the vertical axis with a distance of 'v'
- mirrorHorizontal() - Method in class com.dkt.graphics.extras.GPixMap
-
Retrieves a new
GPixMap
which is the horizontally mirrored version of this one. - mirrorVertical() - Method in class com.dkt.graphics.extras.GPixMap
-
Retrieves a new
GPixMap
which is the vertically mirrored version of this one. - modCount - Variable in class com.dkt.graphics.elements.GMultiPoint
- modulus() - Method in class com.dkt.graphics.elements.GLine
-
Retrieves the length of the line segment
- modulus() - Method in class com.dkt.graphics.elements.GVector
-
Retrieves the modulus of the vector
- move(int, int) - Method in class com.dkt.graphics.elements.GArc
-
Moves the center of this arc to the given coordinates
- move(int, int) - Method in class com.dkt.graphics.elements.GCircle
-
Moves the center of this circle to the given coordinates
- move(int, int) - Method in class com.dkt.graphics.elements.GImage
-
Moves the center of the image to the given coordinates
- move(int, int) - Method in class com.dkt.graphics.elements.GPoint
-
Moves this point to the given coordinates
- move(int, int) - Method in class com.dkt.graphics.elements.Graphic
-
Moves all the elements to a given location.
This method tends to ruin graphics... - move(int, int) - Method in class com.dkt.graphics.elements.GRectangle
-
Moves the center of this rectangle to the given coordinates
- move(int, int) - Method in class com.dkt.graphics.elements.GString
-
Moves this element to the given coordinates
- move(int, int) - Method in class com.dkt.graphics.elements.GVector
-
Moves the application point of this vector to the given coordinates
- move(int, int) - Method in class com.dkt.graphics.extras.GPVector
-
Moves the start point of this vector to the selected coordinates
- moveOrigin(int, int) - Method in class com.dkt.graphics.canvas.Canvas
-
Moves the origin of coordinates to the given position, this method is very useful when working with mathematical functions since it gives a more natural way of drawing things.
- mutex - Variable in class com.dkt.graphics.elements.GMultiPoint
N
- next() - Method in class com.dkt.graphics.extras.GSprite
-
Passes to the next
GPixMap
in the current sprite.
This method depends on the number of skips set, that is: if skips is 3, then this method must be called 3 times in order to make an actual change, apart from it, it also depends onGSprite.isCyclic()
. - normalized() - Method in class com.dkt.graphics.elements.GVector
-
Retrieves a vector with the same direction and application point but with a modulus equal to 1
O
- on(String) - Static method in class com.dkt.graphics.utils.config.Config
-
Retrieves a
Config
instance associated with a givenname
, this is usually the module/plugin name. - oval(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
P
- paintComponent(Graphics) - Method in class com.dkt.graphics.canvas.Canvas
- paintDrawableArea(Graphics2D, boolean) - Method in class com.dkt.graphics.canvas.Canvas
-
Paints the canvas drawable area on the given graphics
- ParametricCalculable - Class in com.dkt.graphics.extras.formula
-
This class is used within
GFormula
representingℝ → ℝ
2 functions - ParametricCalculable() - Constructor for class com.dkt.graphics.extras.formula.ParametricCalculable
- ParametricCalculableTimer - Class in com.dkt.graphics.extras.formula
- ParametricCalculableTimer(ParametricCalculable) - Constructor for class com.dkt.graphics.extras.formula.ParametricCalculableTimer
- parse(String) - Method in class com.dkt.graphics.extras.GraphicCreator
- parse(String...) - Method in class com.dkt.graphics.extras.GraphicCreator
-
Parses a
String
(that respects the documentation) into aGraphic
- pause() - Method in interface com.dkt.graphics.extras.formula.AbstractTimer.Action
-
This method will be executed immediately after all the timer threads are paused.
- pause() - Method in class com.dkt.graphics.extras.formula.AbstractTimer
-
Pauses the timer with all of it's threads
- pause() - Method in class com.dkt.graphics.utils.PThread
-
Pauses the current thread
- perimeter() - Method in class com.dkt.graphics.elements.GCircle
-
Calculated the perimeter of this circle
- perimeter() - Method in class com.dkt.graphics.elements.GRectangle
-
Calculated the perimeter of this rectangle
- perimeter() - Method in class com.dkt.graphics.elements.GRegPoly
-
Calculated the perimeter of this polygon
- pixelSize() - Method in class com.dkt.graphics.extras.GPixMap
-
Retrieves the pixel size
- point(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
-
Creates a new point.
The first two arguments should bex
andy
coordinates of the point. - pointsInRadius(int, int, double) - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a new
GPointArray
with all the points that are contained in the circle with center in(x, y)
and radiusr
. - pointsInRadius(GPoint, double) - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a new
GPointArray
with all the points that are contained in the circle with centerp
and radiusr
. - polyn(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- polyp(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- prev() - Method in class com.dkt.graphics.extras.GSprite
-
Passes to the previous
GPixMap
in the current sprite.
This method depends on the number of skips set, that is: if skips is 3, then this method must be called 3 times in order to make an actual change, apart from it, it also depends onGSprite.isCyclic()
. - PThread - Class in com.dkt.graphics.utils
-
This class basically implements a pausable thread.
- PThread() - Constructor for class com.dkt.graphics.utils.PThread
- put(String, Object) - Method in class com.dkt.graphics.utils.config.Config
-
Set's a config
key,value
pair.
R
- radAngleBetween(GVector) - Method in class com.dkt.graphics.elements.GVector
-
Retrieves the angle between this vector and the one passed as an argument
- radArgument() - Method in class com.dkt.graphics.elements.GVector
-
Retrieves the argument of the vector (in radians)
- radRotate(double) - Method in class com.dkt.graphics.elements.GRegPoly
-
Rotates the current
GRegPoly
a given angle - radRotate(double) - Method in class com.dkt.graphics.elements.GVector
- read(InputStream, String) - Static method in class com.dkt.graphics.utils.config.Config
- rect(double) - Static method in class com.dkt.graphics.utils.MathUtils
-
Rectangular function
- rectc(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- rectf(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- remove(int) - Method in class com.dkt.graphics.elements.GMultiPoint
-
Removes the element at the specified index
- remove(int) - Method in class com.dkt.graphics.utils.Gif
-
Removes on of the snapshots
- remove(int, int) - Method in class com.dkt.graphics.elements.GMultiPoint
-
Removes the first occurrence of this point in the array
- remove(GPoint) - Method in class com.dkt.graphics.elements.GMultiPoint
-
Removes the first occurrence of this point in the array
- remove(GraphicE) - Method in class com.dkt.graphics.canvas.Canvas
-
Removes a given
GraphicE
from the canvas - remove(GraphicE) - Method in class com.dkt.graphics.elements.Graphic
- remove(GPixMap) - Method in class com.dkt.graphics.extras.GSprite
-
Removes a given
map
from the sprite. - remove(String) - Static method in class com.dkt.graphics.utils.config.Config
-
Destroys an instance of
Config
for a givenname
, this is useful when you have more than one application using this Class, and they don't start and stop at the same time. - removeAll() - Method in class com.dkt.graphics.canvas.Canvas
- removeAll() - Method in class com.dkt.graphics.elements.Graphic
-
Clears all the components from this
Graphic
- removeAll(GPointArray) - Method in class com.dkt.graphics.elements.GPointArray
-
Removes all the points that are contained both in this array and in the array passed as an argument
- removeDuplicates() - Method in class com.dkt.graphics.elements.GPointArray
-
Removes ALL duplicate entries in the array.
- removeFixed(GraphicE) - Method in class com.dkt.graphics.canvas.Canvas
-
Removes a given fixed
GraphicE
from the canvas - removeListener(ConfigListener) - Method in class com.dkt.graphics.utils.config.Config
-
Removes a previously registered
ConfigListener
- removeThread(PThread) - Method in class com.dkt.graphics.extras.formula.AbstractTimer
- repaintDelay() - Method in class com.dkt.graphics.canvas.Canvas
-
Retrieves the time in ms for the canvas to repaint itself
- repaintWBackground() - Method in class com.dkt.graphics.canvas.Canvas
-
This method redraws the background and then repaints the canvas
- reset() - Method in class com.dkt.graphics.utils.TPS
-
Resets the current object to its original state
- reset(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
-
Clears the global configurations
color
,colorf
,stroke
,paint
andfont
- resume() - Method in interface com.dkt.graphics.extras.formula.AbstractTimer.Action
-
This method will be executed immediately after all the timer threads were resumed.
- resume() - Method in class com.dkt.graphics.extras.formula.AbstractTimer
-
Resumes the timer and all of it's threads
- rightmostPoint() - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a copy of the rightmost point in this array at the moment
- rightThan(GPoint) - Method in class com.dkt.graphics.elements.GPointArray
-
Retrieves a new
GPointArray
representing all the points that are located to the right ofp
. - rotate(double) - Method in class com.dkt.graphics.elements.GRegPoly
-
Rotates the current
GRegPoly
a given angle - rotate(double) - Method in class com.dkt.graphics.elements.GVector
- rotate(double) - Method in class com.dkt.graphics.extras.GTransform
-
Rotates the graphics around the origin of coordinates a given angle
- rotate(int, int, double) - Method in class com.dkt.graphics.extras.GTransform
-
Rotates the graphics around the point
(x, y)
a given angle - rotate(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- rotateCCW() - Method in class com.dkt.graphics.extras.GPixMap
-
Retrieves a new
GPixMap
which is the result of rotating this one counterclockwise 90°. - rotateCW() - Method in class com.dkt.graphics.extras.GPixMap
-
Retrieves a new
GPixMap
which is the result of rotating this one clockwise 90°. - run() - Method in class com.dkt.graphics.extras.examples.Example01
- run() - Method in class com.dkt.graphics.extras.examples.Example02
- run() - Method in class com.dkt.graphics.extras.examples.Example03
- run() - Method in class com.dkt.graphics.extras.examples.Example04
- run() - Method in class com.dkt.graphics.extras.examples.Example05
- run() - Method in class com.dkt.graphics.extras.examples.Example06
- run() - Method in class com.dkt.graphics.extras.examples.Example07
- run() - Method in class com.dkt.graphics.extras.examples.Example08
- run() - Method in class com.dkt.graphics.extras.examples.Example09
- run() - Method in class com.dkt.graphics.extras.examples.Example10
- run() - Method in class com.dkt.graphics.extras.examples.Example11
- run() - Method in class com.dkt.graphics.extras.examples.Example12
- run() - Method in class com.dkt.graphics.extras.examples.Example13
- run() - Method in class com.dkt.graphics.extras.examples.Example14
- run() - Method in class com.dkt.graphics.extras.examples.Example15
- run() - Method in class com.dkt.graphics.extras.examples.Example16
- run() - Method in class com.dkt.graphics.extras.examples.Example17
- run() - Method in class com.dkt.graphics.utils.PThread
S
- save(OutputStream) - Method in class com.dkt.graphics.utils.config.Config
-
Saves
this
Config
in the givenOutputStream
. - saveAll(OutputStream) - Static method in class com.dkt.graphics.utils.config.Config
-
Saves all the available Configs in the given
OutputStream
. - saveScreenshot(Canvas, String, boolean) - Static method in class com.dkt.graphics.utils.Utils
-
Saves a 1:1 screenshot of the canvas
The image is saved using thepng
format, so if the file doesn't end with.png
the extension will be appended - scalarMultiplication(double) - Method in class com.dkt.graphics.elements.GVector
-
Multiplies this vector by a scalar
- scale(double) - Method in class com.dkt.graphics.elements.GImage
-
Symmetrically scales an image.
Ifscale
is less than 1 then the image will be reduced. - scale(double, double) - Method in class com.dkt.graphics.elements.GImage
-
Scales an image.
- scale(double, double) - Method in class com.dkt.graphics.extras.GTransform
-
Scales the graphics
- scale(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- scaleX() - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
Retrieves the X setScale for this formula
- scaleY() - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
Retrieves the Y setScale for this formula, basically every Y value is multiplied by this value
- sendToBottom(GraphicE) - Method in class com.dkt.graphics.canvas.Canvas
-
Sends the selected
GraphicE
to the bottom of the canvas, so other elements will be painted on top - sendToFront(GraphicE) - Method in class com.dkt.graphics.canvas.Canvas
-
Sends the selected
GraphicE
to the top of the canvas, so it will be painted on top of all the other elements.
Note: if a new element is added it will land on top of this one. - set(String, Object) - Method in class com.dkt.graphics.utils.config.Config
-
A wrapper for
Config.put(String,Object)
- setActions(AbstractTimer.Action) - Method in class com.dkt.graphics.extras.formula.AbstractTimer
-
Sets the actions to be executed at start, stop, pause, resume.
- setAngle(double) - Method in class com.dkt.graphics.elements.GString
-
Set's the angle of the String
- setAreaPaint(Paint) - Method in class com.dkt.graphics.extras.GFormula
-
Sets the
Paint
used for the area below the curve - setArgument(double) - Method in class com.dkt.graphics.elements.GVector
-
Changes the argument of this vector (in degrees)
- setArgument(double) - Method in class com.dkt.graphics.extras.GPVector
-
Changes the argument of the main vector
- setArrowTipAngle(double) - Method in class com.dkt.graphics.elements.GVector
-
Sets the new angle for the tip of the arrow (in degrees).
- setArrowWeight(int) - Method in class com.dkt.graphics.elements.GVector
-
Changes the arrow weight.
- setAutoRepaint(boolean) - Method in class com.dkt.graphics.canvas.Canvas
-
Tells the canvas to repaint itself automatically
- setBackground(Color) - Method in class com.dkt.graphics.canvas.Canvas
- setCenterBounds(boolean) - Method in class com.dkt.graphics.canvas.Canvas
-
Tells the canvas to center (or not) the drawable area in the panel.
- setCenterOrigin(boolean) - Method in class com.dkt.graphics.canvas.Canvas
-
Tells the canvas to center the origin of coordinates within the drawable area.
- setColorAt(int, int, Color) - Method in class com.dkt.graphics.extras.GPixMap
-
Set's the
Color
at the specified coordinates
Note: The value ofj
is affected by the direction of theY axis
- setCrossSize(int) - Method in class com.dkt.graphics.elements.GPointArray
-
Changes the cross size.
We treat points as crosses on the canvas, this method changes the size of that cross.
Note: The default value is 0 - setCyclic(boolean) - Method in class com.dkt.graphics.extras.GSprite
-
Tells the
GSprite
to act as if the list of elements is circular (cyclic), that means that when the lastGPixMap
is reached, then it will continue with the first one, and viceversa.
The default value istrue
. - setDelay(int) - Method in class com.dkt.graphics.utils.Gif
-
The delay between images in ms.
- setDrawableAreaPaint(Paint) - Method in class com.dkt.graphics.canvas.Canvas
-
Sets the background
Paint
of the drawable area of the canvas - setDrawableBorderPaint(Paint) - Method in class com.dkt.graphics.canvas.Canvas
-
Sets the border
Paint
of the drawable area of the canvas - setDrawableSize(int, int) - Method in class com.dkt.graphics.canvas.Canvas
-
Sets the canvas size.
This value doesn't affect the panel's size, just the drawable area, this means that the canvas area will be of the given size. - setDrawAsPath(boolean) - Method in class com.dkt.graphics.extras.formula.AbstractTimer
-
Tells the timer to draw the equation as a path o points
- setDrawGrid(boolean) - Method in class com.dkt.graphics.extras.GSprite
-
Tells the
GSprite
to draw the inner/outer lines - setDrawLines(boolean) - Method in class com.dkt.graphics.extras.GPixMap
-
Tells the
GPixMap
to draw the inner/outer lines - setDrawPen(boolean) - Method in class com.dkt.graphics.extras.formula.AbstractTimer
-
Tells the timer to draw the pen on the last drawn point
- setFill(boolean) - Method in class com.dkt.graphics.elements.GFillableE
-
Tells if the component needs to be filled
- setFillPaint(Paint) - Method in class com.dkt.graphics.elements.GFillableE
-
Sets the
Paint
that's used to fill this component - setFont(Font) - Method in class com.dkt.graphics.elements.GString
-
Set's the font used to render this
String
- setGridColor(Paint) - Method in class com.dkt.graphics.extras.GAxis
-
Sets the color for the grid (if shown).
The default value isColor.LIGHT_GRAY
- setHCompPaint(Paint) - Method in class com.dkt.graphics.extras.GPVector
-
Sets the
Paint
for the horizontal component of this vector - setInvertYAxis(boolean) - Method in class com.dkt.graphics.canvas.Canvas
-
Tells the canvas to invert the Y axis.
This method comes in handy when plotting functions or working with physics since it gives a more natural way of drawing. - setMayorTickSize(int) - Method in class com.dkt.graphics.extras.GAxis
-
Sets the mayor tick size
Note: This size is used at both sides of the axis so the final length of the tick will be two times this value - setMinorTickSize(int) - Method in class com.dkt.graphics.extras.GAxis
-
Sets the minor tick size
Note: This size is used at both sides of the axis so the final length of the tick will be two times this value - setModulus(double) - Method in class com.dkt.graphics.elements.GVector
-
Changes the modulus of this vector
- setModulus(double) - Method in class com.dkt.graphics.extras.GPVector
-
Sets a new modulus to the main vector (that will also change the components)
- setModulus(double, double) - Method in class com.dkt.graphics.extras.GPVector
-
Sets a new modulus and argument to the main vector based on the modulus of the orthogonal components
- setName(String) - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
Set's a new getName for this formula
- setNumberOfThreads(int) - Method in class com.dkt.graphics.extras.formula.AbstractTimer
-
Sets the number of threads that will be used for this calculations
- setOrigin(Canvas) - Method in class com.dkt.graphics.extras.GAxis
-
This method set's the origin of the
Canvas
on the correct place in order for the Axis to be completely displayed. - setPaint(Paint) - Method in class com.dkt.graphics.elements.GraphicE
-
Sets the
Paint
for this component - setPaint(Paint) - Method in class com.dkt.graphics.extras.GGrid
- setPaint(Paint) - Method in class com.dkt.graphics.extras.GPVector
-
Sets the
Paint
for the main vector - setPixelSize(int) - Method in class com.dkt.graphics.extras.GPixMap
-
Set's the pixel size of the
GPixMap
- setPixelSize(int) - Method in class com.dkt.graphics.extras.GSprite
-
Sets a new pixel size for all of the
GPixMap
of thisGSprite
- setRadArgument(double) - Method in class com.dkt.graphics.elements.GVector
-
Changes the argument of this vector (in radians)
- setRepaintDelay(int) - Method in class com.dkt.graphics.canvas.Canvas
-
The time in ms of the repaint interval.
This will not guaranty that each is repaint is done every n ms, it will only call the repaint method every n ms. - setScale(double) - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
Deprecated.this method was deprecated because now we have individual scales for both x and y. This method is still used in several projects, but it will be removed in future versions.
- setScaleX(double) - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
Sets the new setScale for the X formula, basically every X value is multiplied by this value
- setScaleY(double) - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
Sets the new setScale for the Y formula, basically every Y value is multiplied by this value
- setShowFPS(boolean) - Method in class com.dkt.graphics.canvas.Canvas
-
This method tells the canvas to print the current FPS value on the screen (it will be painted in the upper left corner above all other elements).
- setSkips(int) - Method in class com.dkt.graphics.extras.GSprite
-
Sets the number of skips, this means how many times should the
GSprite.next()
andGSprite.prev()
should be called in order to actually work
The default value is 1 - setString(String) - Method in class com.dkt.graphics.elements.GString
-
Set's the
String
to print in the screen - setStroke(Stroke) - Method in class com.dkt.graphics.elements.GraphicE
-
Sets a new
Stroke
for this component - setStroke(Stroke) - Method in class com.dkt.graphics.extras.GGrid
- setUseAntiAliasing(boolean) - Method in class com.dkt.graphics.canvas.Canvas
-
Turns anti-aliasing on or off
- setUseFullArea(boolean) - Method in class com.dkt.graphics.canvas.Canvas
-
Tells the canvas to set the drawable area size to the size of the canvas.
- setValueAt(int, int, int, boolean) - Method in class com.dkt.graphics.extras.GPixMap
-
Set's the
Color
at the specified coordinates which will be created asnew Color(argb, hasAlpha)
Note: The value ofj
is affected by the direction of theY axis
- setVCompPaint(Paint) - Method in class com.dkt.graphics.extras.GPVector
-
Sets the
Paint
for the vertical component of this vector - setVisible(boolean) - Method in class com.dkt.graphics.elements.Graphic
- setVisible(boolean) - Method in class com.dkt.graphics.extras.GPixMap
-
Tells the
GPixMap
to draw itself in the canvas Note: invisibleGPixMap
s don't intersect with anything - setVisible(boolean) - Method in class com.dkt.graphics.extras.GSprite
-
Tells the
GSprite
if it should draw itself - size - Variable in class com.dkt.graphics.elements.GMultiPoint
- size() - Method in class com.dkt.graphics.elements.GMultiPoint
-
Retrieves the number of vertices
- size() - Static method in class com.dkt.graphics.utils.config.Config
-
Retrieves the number of created
Config
objects. - size() - Method in class com.dkt.graphics.utils.Gif
-
Retrieves the number of snapshots taken
- skips() - Method in class com.dkt.graphics.extras.GSprite
-
Retrieves the number of skips that are necessary in order for the
GSprite.next()
andGSprite.prev()
methods to make an actual change. - snapshot() - Method in class com.dkt.graphics.utils.Gif
-
This method should be called every time you want a snapshot of the canvas to be taken.
- snapshot(int) - Method in class com.dkt.graphics.utils.Gif
-
This method calls
Gif.snapshot()
a given number of times, which results in (besides an increase in size) the image staying on the gifnum
timesdelay
seconds. - somethingChange(ConfigEvent) - Method in interface com.dkt.graphics.utils.config.ConfigListener
-
What to do when something changes on the
Config
for a given name - sortByX() - Method in class com.dkt.graphics.elements.GMultiPoint
-
Sorts all the points in this array by it's
X
value, and breaks ties with theY
value - sortByX() - Method in class com.dkt.graphics.elements.GPointArray
-
Sorts all the points in this array by it's
X
value, and breaks ties with theY
value - sortByY() - Method in class com.dkt.graphics.elements.GPointArray
-
Sorts all the points in this array by it's
Y
value, and breaks ties with theX
value - start() - Method in interface com.dkt.graphics.extras.formula.AbstractTimer.Action
-
This method will be executed immediately after the timer starts and all threads are created and running.
- start() - Method in class com.dkt.graphics.extras.formula.AbstractTimer
- startPoint() - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
Retrieves the start point of the interval
- startPoint(double) - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
The start point of the interval used to calculate this formula
Note: this method doesn't control the values of the interval, nor the value used for the step, it's merely a container. - step() - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
Retrieves the step used to calculate the formula in the interval.
- step(double) - Method in class com.dkt.graphics.extras.formula.AbstractCalculable
-
Sets the step used to evaluate the formula
Note: this method doesn't control the values of the interval, nor the value used for the step, it's merely a container. - stop() - Method in interface com.dkt.graphics.extras.formula.AbstractTimer.Action
-
This method will be executed immediately after all the timer threads were stopped.
Note: is the responsibility of the coder to callAbstractTimer.stop()
at the end of the execution of the timer's instance - stop() - Method in class com.dkt.graphics.extras.formula.AbstractTimer
-
Stops the timer and all of it's running threads
- string(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- string2(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- stroke(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- STROKE - Static variable in class com.dkt.graphics.elements.GraphicE
-
Size 1 stroke
- subtract(GFillableE) - Method in class com.dkt.graphics.extras.GClip
-
Subtracts the given element from the clipping area
- subtract(GVector...) - Method in class com.dkt.graphics.elements.GVector
T
- threadsEnded() - Method in class com.dkt.graphics.extras.formula.AbstractTimer
-
Tells if all the threads have finished their execution
- tic() - Method in class com.dkt.graphics.utils.TicToc
-
Sets the start time
- TicToc - Class in com.dkt.graphics.utils
-
Implements a Tic-Toc mechanism.
This class is very basic, but at least it's easy... - TicToc() - Constructor for class com.dkt.graphics.utils.TicToc
- toc() - Method in class com.dkt.graphics.utils.TicToc
-
Sets the end time
- toDataString() - Method in class com.dkt.graphics.extras.GPixMap
-
Creates a
String
representation of theGPixMap
, which consists of space separated values representing the hex representation of the colors of each pixel. - toString() - Method in class com.dkt.graphics.elements.GPoint
- toString() - Method in class com.dkt.graphics.utils.TicToc
- toString() - Method in class com.dkt.graphics.utils.TPS
- touches(GPixMap) - Method in class com.dkt.graphics.extras.GPixMap
-
Tells if two
GPixMap
s touch each other, this differs from theGPixMap.intersects(GPixMap)
because this checks if the images are actually touching each other ignoring the transparent pixels.
This method will only work onGPixMap
s that have the same pixel size.
Note: This method will most likely fail miserably when combined withGTransform
s.
Note 2: There are some issues when the traslation step is different from the pixel size, but that should be a non issue, since it's a "very rare" scenario, and that's why we have aGPixMap.traslateUnits(int, int)
method. - tps() - Method in class com.dkt.graphics.utils.TPS
-
Retrieves the number of times per second that the action method has been called
- TPS - Class in com.dkt.graphics.utils
-
This class assists in calculating how many times something happens on a second or to calculate the mean time between calls.
Please note that this class was designed to be used for debugging or counting small things, when the action is executed more than 1e15 times the error in the total averageTPS.tps()
is very big. - TPS() - Constructor for class com.dkt.graphics.utils.TPS
- transoff(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- traslate(int, int) - Method in class com.dkt.graphics.elements.GArc
- traslate(int, int) - Method in class com.dkt.graphics.elements.GCircle
- traslate(int, int) - Method in class com.dkt.graphics.elements.GImage
- traslate(int, int) - Method in class com.dkt.graphics.elements.GLine
- traslate(int, int) - Method in class com.dkt.graphics.elements.GMultiPoint
- traslate(int, int) - Method in class com.dkt.graphics.elements.GOval
- traslate(int, int) - Method in class com.dkt.graphics.elements.GPoint
- traslate(int, int) - Method in class com.dkt.graphics.elements.Graphic
- traslate(int, int) - Method in class com.dkt.graphics.elements.GraphicE
-
Traslates this element on X and Y
- traslate(int, int) - Method in class com.dkt.graphics.elements.GRectangle
- traslate(int, int) - Method in class com.dkt.graphics.elements.GRegPoly
- traslate(int, int) - Method in class com.dkt.graphics.elements.GString
- traslate(int, int) - Method in class com.dkt.graphics.elements.GVector
- traslate(int, int) - Method in class com.dkt.graphics.extras.formula.CalculableTimer
- traslate(int, int) - Method in class com.dkt.graphics.extras.formula.ParametricCalculableTimer
- traslate(int, int) - Method in class com.dkt.graphics.extras.GAxis
- traslate(int, int) - Method in class com.dkt.graphics.extras.GClip
- traslate(int, int) - Method in class com.dkt.graphics.extras.GGrid
- traslate(int, int) - Method in class com.dkt.graphics.extras.GPixMap
- traslate(int, int) - Method in class com.dkt.graphics.extras.GPVector
- traslate(int, int) - Method in class com.dkt.graphics.extras.GSprite
- traslate(int, int) - Method in class com.dkt.graphics.extras.GTransform
- traslate(int, int) - Method in class com.dkt.graphics.extras.GVectorPolygon
- traslate(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- traslateUnits(int, int) - Method in class com.dkt.graphics.extras.GPixMap
-
As opposed to
GraphicE.traslate(int, int)
this method will traslate the PixMap a certain amount ofpixels
(consideringpixel
the size of each square drawn in the screen) - trimImage(BufferedImage, Color) - Static method in class com.dkt.graphics.utils.Utils
-
Trims a given image to its minimum size without loosing any part of the drawing.
- trimToSize() - Method in class com.dkt.graphics.elements.GMultiPoint
-
Removes all the extra space used by the object
U
- unpause() - Method in class com.dkt.graphics.utils.PThread
-
Resumes the current thread
- url() - Static method in class com.dkt.graphics.utils.LibUtils
-
Retrieves the library's URL
- useAntiAliasing() - Method in class com.dkt.graphics.canvas.Canvas
-
Tells if the canvas is rendering using antialiasing.
Note: the default value istrue
- useFullArea() - Method in class com.dkt.graphics.canvas.Canvas
-
Tells if the drawable area will be automatically set to the canvas size.
- Utils - Class in com.dkt.graphics.utils
V
- VALUE_ADDED - Static variable in interface com.dkt.graphics.utils.config.ConfigEvent
-
A new value was added to the
Config
object - VALUE_REMOVED - Static variable in interface com.dkt.graphics.utils.config.ConfigEvent
-
A value as been removed from the
Config
object - VALUE_UPDATED - Static variable in interface com.dkt.graphics.utils.config.ConfigEvent
-
An existing value was updated
- valueAt(int, int) - Method in class com.dkt.graphics.extras.GPixMap
-
Retrieves the
Color
on a given position of theGPixMap
Note: The value ofj
is affected by the direction of theY axis
- vectc(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- vectp(String[]) - Method in class com.dkt.graphics.extras.GraphicCreator
- versionString() - Static method in class com.dkt.graphics.utils.LibUtils
-
Retrieves a String representing the library's version
W
- w - Variable in class com.dkt.graphics.elements.GRectangle
- write(String) - Method in class com.dkt.graphics.utils.Gif
-
Writes the image to a file, if this method fails it will return
false
and the exception will be saved. - write(String, int, BufferedImage...) - Static method in class com.dkt.graphics.utils.Gif
-
Creates a new
gif
from an array ofBufferedImage
.
X
- x - Variable in class com.dkt.graphics.elements.GRectangle
- x() - Method in class com.dkt.graphics.elements.GCircle
-
Retrieves the X coordinate of the center of the circle
- x() - Method in class com.dkt.graphics.elements.GPoint
-
Retrieves the X coordinate of this point
- x() - Method in class com.dkt.graphics.elements.GVector
-
Retrieves the X coordinate of the point of application of the vector
- x(double) - Method in class com.dkt.graphics.extras.formula.ParametricCalculable
-
This method should return the x(t) value of the equation
- xf() - Method in class com.dkt.graphics.elements.GVector
-
Retrieves the X coordinate of the tip of the vector
- xs - Variable in class com.dkt.graphics.elements.GMultiPoint
Y
- y - Variable in class com.dkt.graphics.elements.GRectangle
- y() - Method in class com.dkt.graphics.elements.GCircle
-
Retrieves the Y coordinate of the center of the circle
- y() - Method in class com.dkt.graphics.elements.GPoint
-
Retrieves the Y coordinate of this point
- y() - Method in class com.dkt.graphics.elements.GVector
-
Retrieves the Y coordinate of the point of application of the vector
- y(double) - Method in class com.dkt.graphics.extras.formula.ParametricCalculable
-
This method should return the y(t) value of the equation
- yf() - Method in class com.dkt.graphics.elements.GVector
-
Retrieves the Y coordinate of the tip of the vector
- ys - Variable in class com.dkt.graphics.elements.GMultiPoint
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form