public class Fenetre
extends java.awt.Canvas
Modifier and Type | Field and Description |
---|---|
float |
lineThickness |
float |
r |
Constructor and Description |
---|
Fenetre()
Creates a new Fenetre and shows it immediately.
|
Fenetre(boolean setVisible)
Creates a new Fenetre and shows it only if setVisible == true (recommended when one
wants to update the Fenetre's data structures before showing it).
|
Fenetre(java.awt.image.BufferedImage bimg,
java.lang.String title)
Creates a new Fenetre with a given title and background image.
|
Fenetre(java.lang.String title)
Creates a new Fenetre with a given title.
|
Modifier and Type | Method and Description |
---|---|
void |
addColoredSegment(double x1,
double y1,
double x2,
double y2,
java.awt.Color c) |
void |
addColoredSegment(Point_2 p1,
Point_2 p2,
java.awt.Color c)
Draw a segment with a given color
|
void |
addColoredSegments(java.util.Collection<Point_2[]> segments,
java.awt.Color[] colors) |
void |
addFatSegment(double x1,
double y1,
double x2,
double y2) |
void |
addFatSegment(Point_2 p1,
Point_2 p2) |
void |
addFatSegments(java.util.Collection<Point_2[]> segments) |
void |
addGenericPoints(java.util.Collection<Point_> points)
Add a collection of (generic) points
|
void |
addLabel(java.lang.String label,
Point_2 p)
Draw a text label at a given position
|
void |
addPoint(Point_2 point)
Add a 2D point to the window
|
void |
addPoints(java.util.Collection<Point_2> points)
Add a collection of 2D points
|
void |
addPoints(Point_2[] points) |
void |
addPolyhedronColoredEdges(Polyhedron_3<Point_2> polyhedron,
java.awt.Color[] colors) |
void |
addPolyhedronEdges(Polyhedron_3<Point_2> polyhedron)
Draw all halfedges of a planar Polyhedron (half-edge DS)
|
void |
addSegment(Point_2 p1,
Point_2 p2)
Add a segment
|
void |
addSegments(java.util.Collection<Point_2[]> segments) |
void |
addTriangle(Point_2[] points)
Add the three segments of a triangle
|
void |
addTriangles(java.util.Collection<Point_2[]> triangles)
Add a list of triangles
|
void |
ajoutePoint(double x,
double y) |
void |
ajouteSegment(double x1,
double y1,
double x2,
double y2) |
double[] |
boundingBox()
Get bounding box coordinates
|
void |
clearWindow()
Remove all points and segments from the window
|
void |
displayImage(java.awt.Graphics2D g,
java.awt.image.BufferedImage bimg,
int x,
int y) |
static void |
main(java.lang.String[] args) |
void |
paint(java.awt.Graphics graphics) |
void |
setVisible()
Shows the Fenetre.
|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
public final float r
public float lineThickness
public Fenetre()
public Fenetre(boolean setVisible)
public Fenetre(java.lang.String title)
public Fenetre(java.awt.image.BufferedImage bimg, java.lang.String title)
public double[] boundingBox()
public void clearWindow()
public void ajoutePoint(double x, double y)
public void addLabel(java.lang.String label, Point_2 p)
public void addPoints(Point_2[] points)
public void addPoint(Point_2 point)
public void addPoints(java.util.Collection<Point_2> points)
public void addGenericPoints(java.util.Collection<Point_> points)
public void addSegments(java.util.Collection<Point_2[]> segments)
public void addFatSegments(java.util.Collection<Point_2[]> segments)
public void addTriangle(Point_2[] points)
public void addTriangles(java.util.Collection<Point_2[]> triangles)
public void addColoredSegment(Point_2 p1, Point_2 p2, java.awt.Color c)
public void addPolyhedronEdges(Polyhedron_3<Point_2> polyhedron)
public void addPolyhedronColoredEdges(Polyhedron_3<Point_2> polyhedron, java.awt.Color[] colors)
public void addColoredSegments(java.util.Collection<Point_2[]> segments, java.awt.Color[] colors)
public void ajouteSegment(double x1, double y1, double x2, double y2)
public void addColoredSegment(double x1, double y1, double x2, double y2, java.awt.Color c)
public void addFatSegment(double x1, double y1, double x2, double y2)
public void paint(java.awt.Graphics graphics)
paint
in class java.awt.Canvas
public void displayImage(java.awt.Graphics2D g, java.awt.image.BufferedImage bimg, int x, int y)
public void setVisible()
public static void main(java.lang.String[] args)