public class FFrameBasic extends FFrame
Modifier and Type | Field and Description |
---|---|
static String |
PERSISTENCE_DEFINITION_NAME |
e, frameFactory, lastAT, layoutManager, LOG, m_BoundBox, m_Selected, n, ne, no, num, o, observers, s, se, so
Constructor and Description |
---|
FFrameBasic() |
Modifier and Type | Method and Description |
---|---|
IFFrame |
clone()
Creates a copy of the object.
|
boolean |
contains(Point2D.Double p) |
void |
draw(Graphics2D g,
AffineTransform at,
Rectangle2D rv,
BufferedImage imgBase)
Método que dibuja sobre el graphics que se le pasa como parámetro, según
la transformada afin que se debe de aplicar y el rectángulo que se debe
de dibujar.
|
void |
drawDraft(Graphics2D g)
Dibuja sobre el graphics el rect�ngulo del fframe en modo borrador.
|
void |
drawEmpty(Graphics2D g)
Draws the FFrame rectangle on the provided Graphics2D, only showing the
FFrame name on an empty rectangle.
|
void |
drawHandlers(Graphics2D g)
Dibuja los handlers sobre el boundingBox en el graphics que se pasa como
par�metro.
|
void |
drawSymbolTag(Graphics2D g)
Dibuja sobre el graphics que se pasa como par�metro el icono que
representa que contiene un tag.
|
Rectangle2D.Double |
getBoundBox()
Returns the bounding box in centimeters of this FFrame, using paper
coordinates
|
Rectangle2D.Double |
getBoundingBox(AffineTransform at)
Returns the bounding box (in pixels) of this FFrame, based on the provided
AffineTransform.
|
int |
getContains(Point2D.Double p) |
IFFrame |
getFframe() |
FFrameGraphics |
getFframeGraphics() |
int |
getLevel()
Devuelve el nivel en el que se encuentra el FFrame.
|
Rectangle2D |
getMovieRect(int difx,
int dify)
Devuelve el rect�ngulo a partir del desplazamiento en el eje x y el
desplazamiento en el eje y.
|
String |
getName()
Devuelve el nombre que representa al fframe.
|
String |
getNameFFrame()
Devuelve el nombre que representa al tipo de FFrame.
|
double |
getRotation()
Gets the rotation of the frame, measured in arc degrees
|
int |
getSelected()
Returns an integer representing the type of selection applied to the
FFrame.
|
String |
getTag()
Devuelve el tag.
|
boolean |
intersects(Rectangle2D rv,
Rectangle2D r)
Devuelve true si el rect�ngulo primero es null o si es distinto de null
e intersecta.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
print(Graphics2D g,
AffineTransform at,
Geometry geom,
PrintAttributes printingProperties) |
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setBoundBox(Rectangle2D r)
Sets the bounding box in centimeters of this FFrame, using paper
coordinates.
|
void |
setFframe(IFFrame fframe) |
void |
setFframeGraphics(FFrameGraphics fframeGraphics) |
void |
setLevel(int l)
Inserta el nivel al que se encuentra el FFrame.
|
void |
setNum(int i)
Rellena con el n�mero de FFrame.
|
void |
setRectangle(Rectangle2D r) |
void |
setRotation(double rotation)
Sets the rotation of the frame, measured in arc degrees
|
void |
setSelected(boolean b)
Sets the selected status of the frame.
|
void |
setSelected(Point2D p,
MouseEvent e)
Sets the type of selection performed on the frame, based on the position
of the provided Point compared with the boundaries of the FFrame.
|
void |
setTag(String s)
Rellena el tag del FFrame.
|
void |
updateRect(Rectangle2D r,
AffineTransform at)
Actualiza el BoundBox del FFrame a partir de su rect�ngulo en pixels y
la matriz de transformaci�n.
|
addObserver, contains, deleteObserver, deleteObservers, dispose, doSetSelected, frameAdded, frameRemoved, getContains, getDocument, getFrameFactory, getLastMoveRect, getLayoutContext, getMapCursor, getRotationAT, getVisibleRect, initializeIcons, isSelected, setDocument, setFrameFactory, setLayoutContext
public static final String PERSISTENCE_DEFINITION_NAME
public void setRectangle(Rectangle2D r)
public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv, BufferedImage imgBase)
public String getNameFFrame()
IFFrame
IFFrame.getNameFFrame()
public void print(Graphics2D g, AffineTransform at, Geometry geom, PrintAttributes printingProperties)
org.gvsig.app.project.documents.layout.fframes.IFFrame#print(java.awt.Graphics2D,
java.awt.geom.AffineTransform)
public IFFrame getFframe()
public void setFframe(IFFrame fframe)
public FFrameGraphics getFframeGraphics()
public void setFframeGraphics(FFrameGraphics fframeGraphics)
public void drawHandlers(Graphics2D g)
FFrame
drawHandlers
in interface IFFrame
drawHandlers
in class FFrame
g
- Graphics sobre el que dibujar.public IFFrame clone() throws CloneNotSupportedException
Cloneable
clone
in class FFrame
CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.
public boolean contains(Point2D.Double p)
public void drawDraft(Graphics2D g)
FFrame
public void drawEmpty(Graphics2D g)
FFrame
public void drawSymbolTag(Graphics2D g)
FFrame
drawSymbolTag
in interface IFFrame
drawSymbolTag
in class FFrame
g
- Graphics sobre el que dibujar el icono.public Rectangle2D.Double getBoundBox()
FFrame
getBoundBox
in interface IFFrame
getBoundBox
in class FFrame
public Rectangle2D.Double getBoundingBox(AffineTransform at)
FFrame
getBoundingBox
in interface IFFrame
getBoundingBox
in class FFrame
at
- Affine transform to apply to the sheet coordinates to get the
bounding box in pixels.public int getContains(Point2D.Double p)
public int getLevel()
FFrame
public Rectangle2D getMovieRect(int difx, int dify)
FFrame
getMovieRect
in interface IFFrame
getMovieRect
in class FFrame
difx
- desplazamiento sobre el eje x.dify
- desplazamiento sobre el eje y.public String getName()
IFFrame
public double getRotation()
FFrame
getRotation
in interface IFFrame
getRotation
in class FFrame
public int getSelected()
FFrame
IFFrame.NOSELECT
,
IFFrame.NO
, IFFrame.N
, IFFrame.NE
,
IFFrame.O
, IFFrame.RECT
, IFFrame.E
,
IFFrame.SO
, IFFrame.S
, IFFrame.SE
.getSelected
in interface IFFrame
getSelected
in class FFrame
#isSelected()}, {@link #setSelected(boolean)}
public boolean intersects(Rectangle2D rv, Rectangle2D r)
FFrame
intersects
in interface IFFrame
intersects
in class FFrame
rv
- Rect�ngulor
- Rect�ngulopublic void setBoundBox(Rectangle2D r)
FFrame
setBoundBox
in interface IFFrame
setBoundBox
in class FFrame
r
- Rectangle in centimeterspublic void setLevel(int l)
FFrame
public void setNum(int i)
FFrame
public void setRotation(double rotation)
FFrame
setRotation
in interface IFFrame
setRotation
in class FFrame
rotation
- Rotation to apply to the framepublic void setSelected(boolean b)
FFrame
setSelected
in interface IFFrame
setSelected
in class FFrame
b
- true
to select the frame, false
to
unselect it#isSelected()}, {@link #getSelected()}
public void setSelected(Point2D p, MouseEvent e)
FFrame
setSelected
in interface IFFrame
setSelected
in class FFrame
p
- Point which should be evaluated to establish if the FFrame must
be selected or note
- Mouse event that triggered this method call#isSelected()}, {@link #getSelected()}
public void setTag(String s)
FFrame
public void updateRect(Rectangle2D r, AffineTransform at)
FFrame
updateRect
in interface IFFrame
updateRect
in class FFrame
r
- Rect�ngulo.at
- Matriz de transformaci�n.public static void registerPersistent()
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class FFrame
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class FFrame
PersistenceException