Package com.jogamp.graph.ui.shapes
Class Rectangle
- java.lang.Object
-
- com.jogamp.graph.ui.Shape
-
- com.jogamp.graph.ui.GraphShape
-
- com.jogamp.graph.ui.shapes.Rectangle
-
public class Rectangle extends GraphShape
A GraphUI rectangleGraphShape
GraphUI is GPU based and resolution independent.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jogamp.graph.ui.Shape
Shape.EventInfo, Shape.Listener, Shape.ListenerBool, Shape.MouseGestureAdapter, Shape.MouseGestureListener, Shape.Visitor1, Shape.Visitor2
-
-
Field Summary
-
Fields inherited from class com.jogamp.graph.ui.Shape
ZAscendingComparator
-
-
Constructor Summary
Constructors Constructor Description Rectangle(int renderModes, float width, float height, float lineWidth)
Rectangle(int renderModes, float minX, float minY, float width, float height, float lineWidth)
Rectangle(int renderModes, float minX, float minY, float width, float height, float lineWidth, float zPos)
Rectangle(int renderModes, AABBox abox, float lineWidth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getHeight()
float
getLineWidth()
String
getSubString()
float
getWidth()
void
setBounds(AABBox abox, float lineWidth)
void
setDimension(float width, float height, float lineWidth)
void
setPosition(float minX, float minY, float zPos)
-
Methods inherited from class com.jogamp.graph.ui.GraphShape
getQuality, getRenderModes, getSharpness, hasColorChannel, setQuality, setSharpness, setTextureUnit
-
Methods inherited from class com.jogamp.graph.ui.Shape
addMouseListener, clear, destroy, draw, drawToSelect, getBorderColor, getBorderThickness, getBounds, getBounds, getColor, getName, getPadding, getPixelPerShapeUnit, getPixelPerShapeUnit, getPosition, getRotation, getRotationPivot, getScale, getScaledHeight, getScaledWidth, getSurfacePort, getSurfaceSize, getSurfaceSize, getSurfaceSize, hasBorder, hasPadding, isDraggable, isEnabled, isInteractive, isPressed, isResizable, isToggleable, isToggleOn, markShapeDirty, markStateDirty, move, move, moveTo, moveTo, onClicked, onInit, onMove, onToggle, removeMouseListener, scale, setBorder, setBorderColor, setBorderColor, setColor, setColor, setDragAndResizeable, setDraggable, setEnabled, setInteractive, setName, setPaddding, setPressed, setPressedColorMod, setResizable, setRotationPivot, setRotationPivot, setScale, setToggle, setToggleable, setToggleOffColorMod, setToggleOnColorMod, setTransform, shapeToWinCoord, shapeToWinCoord, shapeToWinCoord, toggle, toString, validate, validate, winToShapeCoord, winToShapeCoord, winToShapeCoord
-
-
-
-
Constructor Detail
-
Rectangle
public Rectangle(int renderModes, float minX, float minY, float width, float height, float lineWidth, float zPos)
-
Rectangle
public Rectangle(int renderModes, AABBox abox, float lineWidth)
-
Rectangle
public Rectangle(int renderModes, float minX, float minY, float width, float height, float lineWidth)
-
Rectangle
public Rectangle(int renderModes, float width, float height, float lineWidth)
-
-
Method Detail
-
getWidth
public final float getWidth()
-
getHeight
public final float getHeight()
-
getLineWidth
public final float getLineWidth()
-
setPosition
public void setPosition(float minX, float minY, float zPos)
-
setDimension
public void setDimension(float width, float height, float lineWidth)
-
setBounds
public void setBounds(AABBox abox, float lineWidth)
-
getSubString
public String getSubString()
- Overrides:
getSubString
in classShape
-
-