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.DrawListener, Shape.EventInfo, Shape.ForwardKeyListener, Shape.ForwardMouseListener, Shape.Listener, Shape.MouseGestureAdapter, Shape.MouseGestureListener, Shape.MoveListener, Shape.PointerListener, Shape.Visitor1, Shape.Visitor2
-
-
Field Summary
-
Fields inherited from class com.jogamp.graph.ui.Shape
ZAscendingComparator, ZDescendingComparator
-
-
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, com.jogamp.math.geom.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()
float
getX()
float
getY()
float
getZ()
void
setBounds(com.jogamp.math.geom.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
getRegion, getRenderModes, getRenderModesReq, getSharpness, hasColorChannel, setSharpness, setTextureUnit
-
Methods inherited from class com.jogamp.graph.ui.Shape
addActivationListener, addKeyListener, addMouseListener, applyMatToMv, clear, destroy, draw, drawToSelect, getActiveColorMod, getAdjustedZ, getBorderColor, getBorderThickness, getBounds, getBounds, getColor, getID, getMat, getMat, getName, getPadding, getParent, getPixelPerShapeUnit, getPixelPerShapeUnit, getPixelPerShapeUnit, getPosition, getPressedColorMod, getRotation, getRotationPivot, getScale, getScaledDepth, getScaledHeight, getScaledWidth, getSurfacePort, getSurfaceSize, getSurfaceSize, getSurfaceSize, getToggleOffColorMod, getToggleOnColorMod, getTooltip, hasBorder, hasPadding, isActivable, isActive, isDiscarded, isDraggable, isFixedARatioResize, isGroup, isInteractive, isMatIdentity, isPressed, isResizable, isToggleable, isToggleOn, isVisible, markShapeDirty, markStateDirty, move, move, moveTo, moveTo, onClicked, onDraw, onHover, onMove, onToggle, receiveKeyEvents, receiveMouseEvents, removeActivationListener, removeKeyListener, removeMouseListener, removeToolTip, runSynced, scale, scale, setActivable, setActiveColorMod, setBorder, setBorderColor, setBorderColor, setColor, setColor, setDiscarded, setDragAndResizable, setDraggable, setFixedARatioResize, setID, setInteractive, setName, setPaddding, setPMVMatrix, setPMVMatrix, setPressed, setPressedColorMod, setResizable, setRotation, setRotationPivot, setRotationPivot, setScale, setScale, setToggle, setToggleable, setToggleOffColorMod, setToggleOnColorMod, setToolTip, setVisible, shapeToWinCoord, shapeToWinCoord, shapeToWinCoord, toggle, toString, updateMat, validate, validate, validate, winToShapeCoord, winToShapeCoord, winToShapeCoord
-
-
-
-
Constructor Detail
-
Rectangle
public Rectangle(int renderModes, float minX, float minY, float width, float height, float lineWidth, float zPos)
- Parameters:
renderModes
- Graph'sRegion
render modes, seecreate(..)
.minX
-minY
-width
-height
-lineWidth
- line thickness, use zero for filled rectanglezPos
-
-
Rectangle
public Rectangle(int renderModes, com.jogamp.math.geom.AABBox abox, float lineWidth)
- Parameters:
renderModes
- Graph'sRegion
render modes, seecreate(..)
.abox
-lineWidth
- line thickness, use zero for filled rectangle
-
Rectangle
public Rectangle(int renderModes, float minX, float minY, float width, float height, float lineWidth)
- Parameters:
renderModes
- Graph'sRegion
render modes, seecreate(..)
.minX
-minY
-width
-height
-lineWidth
- line thickness, use zero for filled rectangle
-
Rectangle
public Rectangle(int renderModes, float width, float height, float lineWidth)
- Parameters:
renderModes
- Graph'sRegion
render modes, seecreate(..)
.width
-height
-lineWidth
- line thickness, use zero for filled rectangle
-
-
Method Detail
-
getX
public final float getX()
-
getY
public final float getY()
-
getZ
public final float getZ()
-
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(com.jogamp.math.geom.AABBox abox, float lineWidth)
-
getSubString
public String getSubString()
- Overrides:
getSubString
in classGraphShape
-
-