Package ghidra.graph.viewer.renderer
Class PaintableShape
- java.lang.Object
-
- ghidra.graph.viewer.renderer.PaintableShape
-
- Direct Known Subclasses:
MouseClickedPaintableShape
,MouseDraggedLinePaintableShape
,MouseDraggedPaintableShape
public class PaintableShape extends java.lang.Object
A base class for shapes that can be painted on the graph. SeeMouseDebugPaintable
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PaintableShape(double tx, double ty)
PaintableShape(java.awt.Shape s)
PaintableShape(java.awt.Shape s, java.awt.Color c)
PaintableShape(java.awt.Shape s, java.awt.Color c, java.awt.Stroke stroke)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Color
getColor()
java.awt.Shape
getShape()
java.awt.Stroke
getStroke()
double
getTx()
double
getTy()
boolean
isShapeFinished()
void
paint(java.awt.Graphics2D g)
void
shapeFinished()
-
-
-
Constructor Detail
-
PaintableShape
protected PaintableShape(double tx, double ty)
-
PaintableShape
public PaintableShape(java.awt.Shape s)
-
PaintableShape
public PaintableShape(java.awt.Shape s, java.awt.Color c)
-
PaintableShape
public PaintableShape(java.awt.Shape s, java.awt.Color c, java.awt.Stroke stroke)
-
-
Method Detail
-
getTx
public double getTx()
-
getTy
public double getTy()
-
getShape
public java.awt.Shape getShape()
-
getColor
public java.awt.Color getColor()
-
getStroke
public java.awt.Stroke getStroke()
-
shapeFinished
public void shapeFinished()
-
isShapeFinished
public boolean isShapeFinished()
-
paint
public void paint(java.awt.Graphics2D g)
-
-