|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IViewShape
This interface defines a view of a shape.
This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
11/14/2010
Method Summary | |
---|---|
boolean |
contains(double x,
double y)
Tests if the given point is into the pickable object. |
boolean |
contains(IPoint pt)
Allows to know if the point pt is in (or not) the shape. |
void |
flush()
Removes and flushes the used resources and temporary documents. |
java.awt.geom.Rectangle2D |
getBorder()
|
java.awt.geom.Path2D |
getPath()
|
java.awt.Shape |
getRotatedShape2D()
This function creates the corresponding rotated Java shape using the shape model. |
java.awt.BasicStroke |
getStroke()
Creates and returns a stroke corresponding to the current parameters of the shape model. |
boolean |
intersects(java.awt.geom.Rectangle2D rec)
|
void |
paint(java.awt.Graphics2D g)
Draws the shape within a Java2D graphics. |
void |
paintBorders(java.awt.Graphics2D g)
Draws the borders of the shape within a Java2D graphics. |
void |
paintFilling(java.awt.Graphics2D g)
Fills the shape within a Java2D graphics. |
void |
paintShadow(java.awt.Graphics2D g)
Draws the shadow of the shape within a Java2D graphics. |
void |
paintShowPointsDots(java.awt.Graphics2D g)
Paints the dots of the option 'show points'. |
void |
paintShowPointsLines(java.awt.Graphics2D g)
Paints the lines of the option 'show points'. |
void |
updateBorder()
Update the border of the shape view. |
void |
updatePath()
Updates the path of the shape. |
Methods inherited from interface net.sf.latexdraw.glib.views.IAbstractView |
---|
getShape, update |
Methods inherited from interface org.malai.picking.Pickable |
---|
getPicker |
Method Detail |
---|
void paint(java.awt.Graphics2D g)
g
- The graphics where the shape must be drawn.void paintBorders(java.awt.Graphics2D g)
g
- The graphics where the shape must be drawn.void paintShadow(java.awt.Graphics2D g)
g
- The graphics where the shape must be drawn.void paintShowPointsLines(java.awt.Graphics2D g)
g
- The graphics.void paintShowPointsDots(java.awt.Graphics2D g)
g
- The graphics.void paintFilling(java.awt.Graphics2D g)
g
- The graphics where the shape must be drawn.boolean contains(IPoint pt)
pt
- The point.
boolean contains(double x, double y)
Pickable
contains
in interface Pickable
x
- The x-coordinate of the point to test.y
- The y-coordinate of the point to test.
boolean intersects(java.awt.geom.Rectangle2D rec)
rec
- The rectangle used to check the intersection.
java.awt.Shape getRotatedShape2D()
java.awt.geom.Rectangle2D getBorder()
java.awt.geom.Path2D getPath()
void updatePath()
void updateBorder()
java.awt.BasicStroke getStroke()
void flush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |