public class FFrameGraphics extends FFrame implements IFFrameEditableVertex
Modifier and Type | Field and Description |
---|---|
protected GeometryType |
geometryType |
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 |
---|
FFrameGraphics()
Crea un nuevo FFrameGraphics.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a copy of the object.
|
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 |
drawHandlers(Graphics2D g)
Dibuja los handlers sobre el boundingBox en el graphics que se pasa como
parámetro.
|
int |
getContains(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!
|
String |
getName()
Devuelve el nombre que representa al fframe.
|
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(Graphics2D g,
AffineTransform at)
DOCUMENT ME!
|
void |
pointDragged(Point2D point)
DOCUMENT ME!
|
void |
pointPressed(Point2D point)
DOCUMENT ME!
|
void |
pointReleased(Point2D point,
GeometryAdapter geom)
DOCUMENT ME!
|
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)
DOCUMENT ME!
|
void |
setColor(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,
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, getRotation, getRotationAT, getSelected, getTag, getVisibleRect, initializeIcons, intersects, isSelected, setDocument, setFrameFactory, setLayoutContext, setLevel, setNum, setRotation, setSelected, setSelected, setTag, updateRect
public static final String PERSISTENCE_DEFINITION_NAME
protected GeometryType geometryType
public void setGeometryAdapter(GeometryAdapter geom)
geom
- DOCUMENT ME!public void setColor(Color color)
color
- public void update(int type, AffineTransform at)
type
- tipo de gráfico.at
- Transformada.public ISymbol getFSymbol()
public void setSymbol(ISymbol symbol)
fs2d
- public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv, 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 String getNameFFrame()
IFFrame
getNameFFrame
in interface IFFrame
IFFrame.getNameFFrame()
public 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(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(Point2D point, GeometryAdapter geom)
pointReleased
in interface IFFrameEditableVertex
point
- DOCUMENT ME!geom
- DOCUMENT ME!public void pointPressed(Point2D point)
pointPressed
in interface IFFrameEditableVertex
point
- DOCUMENT ME!public void pointDragged(Point2D point)
pointDragged
in interface IFFrameEditableVertex
point
- DOCUMENT ME!public void paint(Graphics2D g, 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(Point2D p)
getContains
in interface IFFrame
getContains
in class FFrame
p
- punto a comparar.public void drawHandlers(Graphics2D g)
drawHandlers
in interface IFFrame
drawHandlers
in class FFrame
g
- Graphics sobre el que dibujar.public void print(Graphics2D g, 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 Object 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()}.