|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICanvas
Defines an interface for a canvas that draw the drawing and manages the selected shapes.
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.
05/15/2010
Field Summary |
---|
Fields inherited from interface org.malai.properties.Zoomable |
---|
MAX_ZOOM, MIN_ZOOM, ZOOM_INCREMENT |
Method Summary | |
---|---|
Border |
getBorderInstrument()
|
IDrawing |
getDrawing()
|
LMagneticGrid |
getMagneticGrid()
|
IViewShape |
getTempView()
|
IViewShape |
getViewAt(double x,
double y)
|
java.util.List<IViewShape> |
getViews()
|
void |
paint(java.awt.Graphics g)
Paints the shapes. |
void |
paintViews(java.awt.Graphics2D g,
boolean withZoom,
boolean withGrid)
Paints the shapes. |
void |
refresh()
Repaints the canvas. |
void |
requestFocus()
Requests the focus to the canvas. |
void |
setAlphaInterpolation(java.lang.Object alphaInterpolValue)
Sets the alpha interpolation value. |
void |
setAntiAliasing(java.lang.Object antiAliasingValue)
Sets the anti aliasing value. |
void |
setColorRendering(java.lang.Object colorRenderingValue)
Sets the colour rendering value. |
void |
setCursor(java.awt.Cursor cursor)
Changes the cursor of the canvas. |
void |
setRendering(java.lang.Object renderingValue)
Sets the rendering value. |
void |
setTempUserSelectionBorder(java.awt.geom.Rectangle2D rect)
Sets the rectangle corresponding to the rectangle that performs users to select shapes. |
void |
setTempView(IViewShape view)
Sets the temporary view. |
void |
update()
Updates the canvas. |
void |
updateBorder()
Updates the border of the views. |
void |
updatePreferredSize()
Defines the dimensions of the canvas (needed for the scrollers). |
Methods inherited from interface org.malai.properties.Zoomable |
---|
getZoom, getZoomedPoint, getZoomedPoint, setZoom |
Methods inherited from interface org.malai.preferences.Preferenciable |
---|
load, save |
Methods inherited from interface org.malai.properties.Modifiable |
---|
isModified, setModified |
Methods inherited from interface org.malai.properties.Reinitialisable |
---|
reinit |
Methods inherited from interface org.malai.widget.Scrollable |
---|
getScrollpane, hasScrollPane |
Methods inherited from interface org.malai.interaction.Eventable |
---|
getEventManager, hasEventManager |
Methods inherited from interface net.sf.latexdraw.glib.views.synchroniser.ViewsSynchroniserHandler |
---|
getBottomLeftDrawingPoint, getOriginDrawingPoint, getPPCDrawing, getTopRightDrawingPoint |
Methods inherited from interface org.malai.action.ActionHandler |
---|
onActionAborted, onActionAdded, onActionCancelled, onActionDone, onActionExecuted |
Methods inherited from interface org.malai.undo.UndoHandler |
---|
onUndoableAdded, onUndoableRedo, onUndoableUndo |
Methods inherited from interface org.malai.picking.Picker |
---|
contains, getPickableAt, getPickerAt, getRelativePoint |
Methods inherited from interface org.malai.picking.Pickable |
---|
contains, getPicker |
Method Detail |
---|
void setCursor(java.awt.Cursor cursor)
cursor
- The new canvas. Cannot be null.IDrawing getDrawing()
void setAntiAliasing(java.lang.Object antiAliasingValue)
antiAliasingValue
- The new anti-aliasing value.void setRendering(java.lang.Object renderingValue)
renderingValue
- The new rendering value.void setColorRendering(java.lang.Object colorRenderingValue)
colorRenderingValue
- The new colour rendering value.void setAlphaInterpolation(java.lang.Object alphaInterpolValue)
alphaInterpolValue
- The new alpha interpolation value.void paint(java.awt.Graphics g)
g
- The graphics used to paint the shapes.void paintViews(java.awt.Graphics2D g, boolean withZoom, boolean withGrid)
g
- The graphics.withZoom
- True: the zoom will be considered.withGrid
- True: the grid will be considered.
java.lang.NullPointerException
- If g is null.void update()
update
in interface ConcretePresentation
void updateBorder()
void updatePreferredSize()
IViewShape getViewAt(double x, double y)
x
- The x-coordinate of the point to test.y
- The y-coordinate of the point to test.
java.util.List<IViewShape> getViews()
void setTempView(IViewShape view)
view
- The new temporary view.IViewShape getTempView()
void setTempUserSelectionBorder(java.awt.geom.Rectangle2D rect)
rect
- The rectangle to display.void refresh()
Border getBorderInstrument()
LMagneticGrid getMagneticGrid()
void requestFocus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |