public class FFrameGraphics extends FFrame implements IFFrameEditableVertex
Modifier and Type | Field and Description |
---|---|
protected GeometryType |
geometryType |
static java.lang.String |
PERSISTENCE_DEFINITION_NAME |
e, frameFactory, iEResize, iNResize, lastAT, layoutManager, LOG, m_BoundBox, m_Selected, n, ne, no, num, o, observers, s, se, so
Constructor and Description |
---|
FFrameGraphics()
Crea un nuevo FFrameGraphics.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at,
java.awt.geom.Rectangle2D rv,
java.awt.image.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 |
drawHandlers(java.awt.Graphics2D g)
Dibuja los handlers sobre el boundingBox en el graphics que se pasa como
parámetro.
|
int |
getContains(java.awt.geom.Point2D p)
Devuelve un entero que representa donde esta contenido el punto que se
pasa como parámetro.
|
ISymbol |
getFSymbol()
Devuelve el FSymbol que se representa.
|
GeometryAdapter |
getGeometry()
DOCUMENT ME!
|
java.lang.String |
getName()
Devuelve el nombre que representa al fframe.
|
java.lang.String |
getNameFFrame()
Devuelve el nombre que representa al tipo de FFrame.
|
int |
getNum() |
GeometryType |
getType()
Devuelve el tipo de gráfico que contiene el fframe.
|
void |
initialize() |
boolean |
isEditing()
DOCUMENT ME!
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
paint(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at)
DOCUMENT ME!
|
void |
pointDragged(java.awt.geom.Point2D point)
DOCUMENT ME!
|
void |
pointPressed(java.awt.geom.Point2D point)
DOCUMENT ME!
|
void |
pointReleased(java.awt.geom.Point2D point,
GeometryAdapter geom)
DOCUMENT ME!
|
void |
print(java.awt.Graphics2D g,
java.awt.geom.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(java.awt.geom.Rectangle2D r)
DOCUMENT ME!
|
void |
setColor(java.awt.Color color)
Rellena el color que se utlizará para dibujar el símbolo.
|
void |
setGeometryAdapter(GeometryAdapter geom)
DOCUMENT ME!
|
void |
setSize(double size)
Inserta el tamaño del punto.
|
void |
setSymbol(ISymbol symbol)
Rellena el FSymbol que se representara al dibujar.
|
void |
setType(int type) |
void |
startEditing()
DOCUMENT ME!
|
void |
stopEditing()
DOCUMENT ME!
|
void |
update(int type,
java.awt.geom.AffineTransform at)
Actualiza el Fsymbol a partir del tipo de Gráfico que se pase como
parámetro.
|
void |
updateNum() |
addObserver, contains, deleteObserver, deleteObservers, dispose, doSetSelected, drawDraft, drawEmpty, drawSymbolTag, frameAdded, frameRemoved, getBoundBox, getBoundingBox, getDocument, getFrameFactory, getLastMoveRect, getLayoutContext, getLevel, getMapCursor, getMovieRect, getMovieRect, getRotation, getRotationAT, getSelected, getTag, getVisibleRect, initializeIcons, intersects, isSelected, setDocument, setFrameFactory, setLayoutContext, setLevel, setNum, setRotation, setSelected, setSelected, setTag, updateRect
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
public static final java.lang.String PERSISTENCE_DEFINITION_NAME
protected GeometryType geometryType
public void setGeometryAdapter(GeometryAdapter geom)
geom
- DOCUMENT ME!public void setColor(java.awt.Color color)
color
- public void update(int type, java.awt.geom.AffineTransform at)
type
- tipo de gráfico.at
- Transformada.public ISymbol getFSymbol()
public void setSymbol(ISymbol symbol)
fs2d
- public void draw(java.awt.Graphics2D g, java.awt.geom.AffineTransform at, java.awt.geom.Rectangle2D rv, java.awt.image.BufferedImage imgBase)
public void updateNum()
org.gvsig.app.project.documents.layout.fframes.IFFrame#updateNum()
public int getNum()
org.gvsig.app.project.documents.layout.fframes.IFFrame#getNum()
public java.lang.String getNameFFrame()
IFFrame
getNameFFrame
in interface IFFrame
IFFrame.getNameFFrame()
public java.lang.String getName()
IFFrame
public void setSize(double size)
size
- entero que representa el tamaño del punto.public GeometryType getType()
public void setType(int type)
public void setBoundBox(java.awt.geom.Rectangle2D r)
setBoundBox
in interface IFFrame
setBoundBox
in class FFrame
r
- DOCUMENT ME!public void startEditing()
startEditing
in interface IFFrameEditableVertex
public void stopEditing()
stopEditing
in interface IFFrameEditableVertex
public boolean isEditing()
isEditing
in interface IFFrameEditableVertex
public void pointReleased(java.awt.geom.Point2D point, GeometryAdapter geom)
pointReleased
in interface IFFrameEditableVertex
point
- DOCUMENT ME!geom
- DOCUMENT ME!public void pointPressed(java.awt.geom.Point2D point)
pointPressed
in interface IFFrameEditableVertex
point
- DOCUMENT ME!public void pointDragged(java.awt.geom.Point2D point)
pointDragged
in interface IFFrameEditableVertex
point
- DOCUMENT ME!public void paint(java.awt.Graphics2D g, java.awt.geom.AffineTransform at)
paint
in interface IFFrameEditableVertex
g
- DOCUMENT ME!at
- DOCUMENT ME!public GeometryAdapter getGeometry()
getGeometry
in interface IFFrameEditableVertex
public void initialize()
public int getContains(java.awt.geom.Point2D p)
getContains
in interface IFFrame
getContains
in class FFrame
p
- punto a comparar.public void drawHandlers(java.awt.Graphics2D g)
drawHandlers
in interface IFFrame
drawHandlers
in class FFrame
g
- Graphics sobre el que dibujar.public void print(java.awt.Graphics2D g, java.awt.geom.AffineTransform at, Geometry geom, PrintAttributes printingProperties)
print
in interface IPrintable
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
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class FFrame
java.lang.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()}.