org.arakhne.neteditor.android.graphics
public class DroidViewGraphics2D extends DroidZoomableGraphics2D implements ViewGraphics2D
background, canvas, centeringTransform, defaultBackground, defaultFillColor, defaultLevelOfDetail, defaultLineColor, fillPainter, focusX, focusY, fontPainter, levelOfDetail, linePainter, maxScale, minScale, scale, scalingSensitivity, tmpRect| Constructor and Description |
|---|
DroidViewGraphics2D(android.graphics.Canvas canvas,
float scaleFactor,
CenteringTransform centeringTransform,
Color background,
boolean isAntiAlias,
float scalingSensitivity,
float focusX,
float focusY,
float minScaleFactor,
float maxScaleFactor) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginGroup() |
void |
dispose() |
void |
endGroup() |
Rectangle2f |
getCurrentViewComponentBounds() |
Shape2f |
getCurrentViewComponentShape() |
float |
getShadowTranslationX() |
float |
getShadowTranslationY() |
protected Figure |
getTopFigure()
Replies the top figure.
|
boolean |
isLocked() |
boolean |
isShadowDrawing() |
void |
popRenderingContext() |
void |
pushRenderingContext(Figure component,
Color fillColor,
Color lineColor) |
void |
pushRenderingContext(Figure component,
Shape2f viewShape,
Rectangle2f bounds) |
void |
pushRenderingContext(Figure component,
Shape2f viewShape,
Rectangle2f bounds,
Color fillColor,
Color lineColor) |
void |
pushRenderingContext(Figure component,
Shape2f viewShape,
Rectangle2f bounds,
Color fillColor,
Color lineColor,
Transform2D localTransformation) |
void |
pushRenderingContext(Figure component,
Transform2D localTransformation) |
void |
reset() |
clear, clip, convertMatrix, convertTransformation, draw, drawImage, drawImage, drawPoint, getBackground, getClip, getComposite, getFocusX, getFocusY, getFont, getFontMetrics, getFontMetrics, getLOD, getMaxScalingFactor, getMinScalingFactor, getNativeGraphics2D, getScalingFactor, getScalingSensitivity, getStringAnchor, getStroke, getTransform, isXAxisInverted, isYAxisInverted, log, log, logical2pixel_size, logical2pixel_x, logical2pixel_y, logical2pixel, logical2pixel, logical2pixel, logical2pixel, logical2pixel, logical2pixel, logical2pixel, logical2pixel, paintString, pixel2logical_size, pixel2logical_x, pixel2logical_y, pixel2logical, pixel2logical, pixel2logical, pixel2logical, pixel2logical, pixel2logical, pixel2logical, pixel2logical, resetPainters, rotate, scale, setBackground, setClip, setColor, setComposite, setFillColor, setFont, setLOD, setOutlineColor, setStroke, setTransform, shear, transform, translatecomputeTextPosition, drawDefaultImage, drawString, drawString, getDefaultFont, getFillColor, getInteriorText, getOutlineColor, getPaint, isInteriorPainted, isOutlineDrawn, paintString, postDrawing, preDrawing, setColors, setInteriorPainted, setInteriorText, setOutlineDrawn, setPaintclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, clip, computeTextPosition, draw, drawDefaultImage, drawImage, drawImage, drawPoint, drawString, drawString, getBackground, getClip, getComposite, getDefaultFont, getFillColor, getFont, getFontMetrics, getFontMetrics, getInteriorText, getLOD, getNativeGraphics2D, getOutlineColor, getPaint, getStringAnchor, getStroke, getTransform, isInteriorPainted, isOutlineDrawn, rotate, scale, setBackground, setClip, setColors, setComposite, setFillColor, setFont, setInteriorPainted, setInteriorText, setOutlineColor, setOutlineDrawn, setPaint, setStroke, setTransform, shear, transform, translatepublic DroidViewGraphics2D(android.graphics.Canvas canvas,
float scaleFactor,
CenteringTransform centeringTransform,
Color background,
boolean isAntiAlias,
float scalingSensitivity,
float focusX,
float focusY,
float minScaleFactor,
float maxScaleFactor)
canvas - scaleFactor - is the scaling factor to apply.centeringTransform - is the transformation used to draw the objects at the center of the view.background - is the background color.isAntiAlias - indicates if antialiasing is used when drawing.scalingSensitivity - is the sensitivity of the scaling actions.focusX - is the coordinate of the focus point.focusY - is the coordinate of the focus point.minScaleFactor - is the minimal allowed scaling factor.maxScaleFactor - is the maximal allowed scaling factor.public void dispose()
dispose in interface VectorGraphics2Ddispose in class DroidZoomableGraphics2Dpublic void reset()
reset in interface VectorGraphics2Dreset in class DroidZoomableGraphics2Dpublic boolean isShadowDrawing()
isShadowDrawing in interface ViewGraphics2Dpublic float getShadowTranslationX()
getShadowTranslationX in interface ViewGraphics2Dpublic float getShadowTranslationY()
getShadowTranslationY in interface ViewGraphics2Dprotected Figure getTopFigure()
public boolean isLocked()
isLocked in interface ViewGraphics2Dpublic Rectangle2f getCurrentViewComponentBounds()
getCurrentViewComponentBounds in interface ViewGraphics2Dpublic Shape2f getCurrentViewComponentShape()
getCurrentViewComponentShape in interface ViewGraphics2Dpublic void pushRenderingContext(Figure component, Transform2D localTransformation)
pushRenderingContext in interface ViewGraphics2Dpublic void pushRenderingContext(Figure component, Shape2f viewShape, Rectangle2f bounds)
pushRenderingContext in interface ViewGraphics2Dpublic void pushRenderingContext(Figure component, Shape2f viewShape, Rectangle2f bounds, Color fillColor, Color lineColor)
pushRenderingContext in interface ViewGraphics2Dpublic void pushRenderingContext(Figure component, Color fillColor, Color lineColor)
pushRenderingContext in interface ViewGraphics2Dpublic void pushRenderingContext(Figure component, Shape2f viewShape, Rectangle2f bounds, Color fillColor, Color lineColor, Transform2D localTransformation)
pushRenderingContext in interface ViewGraphics2Dpublic void popRenderingContext()
popRenderingContext in interface ViewGraphics2Dpublic void beginGroup()
beginGroup in interface ViewGraphics2Dpublic void endGroup()
endGroup in interface ViewGraphics2DCopyright © 2001-2013 NetEditor Developers. 
NetEditor API Documentation by NetEditor Developers is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at www.arakhne.org/neteditor