|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.latexdraw.glib.views.AbstractView<S>
net.sf.latexdraw.glib.views.Java2D.impl.LShapeView<IDot>
net.sf.latexdraw.glib.views.Java2D.impl.LDotView
class LDotView
Defines a view of the IDot model.
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.
04/04/2008
Field Summary |
---|
Fields inherited from class net.sf.latexdraw.glib.views.Java2D.impl.LShapeView |
---|
arrows, border, path |
Fields inherited from class net.sf.latexdraw.glib.views.AbstractView |
---|
shape |
Constructor Summary | |
---|---|
protected |
LDotView(IDot model)
Initialises the view of the dot. |
Method Summary | |
---|---|
java.awt.BasicStroke |
getStroke()
Creates and returns a stroke corresponding to the current parameters of the shape model. |
void |
paint(java.awt.Graphics2D g)
Draws the shape within a Java2D graphics. |
void |
paintBorders(java.awt.Graphics2D g)
Draws the borders of the shape within a Java2D graphics. |
private void |
paintDotShape(java.awt.Graphics2D g,
boolean toFill,
java.awt.Color fillCol)
|
protected void |
setDotPath()
|
protected void |
setPathAsterisk()
|
protected void |
setPathBar()
|
protected void |
setPathDiamond()
Creates a diamond (one of the possibles shapes of a dot). |
protected void |
setPathO()
|
private void |
setPathOLikeDot(double dec)
|
protected void |
setPathOPlus()
|
protected void |
setPathOTime()
|
protected void |
setPathPentagon()
Creates a pentagon (one of the possibles shapes of a dot) |
protected void |
setPathPlus()
|
protected void |
setPathSquare()
|
protected void |
setPathTriangle()
Creates a triangle (one of the possibles shapes of a dot). |
protected void |
setPathX()
|
void |
updateBorder()
Update the border of the shape view. |
protected void |
updateDblePathInside()
Updates the borders of the double boundary when position is inside. |
protected void |
updateDblePathMiddle()
Updates the borders of the double boundary when position is middle. |
protected void |
updateDblePathOutside()
Updates the borders of the double boundary when position is outside. |
protected void |
updateGeneralPathInside()
Updates the borders of the shape as inside borders. |
protected void |
updateGeneralPathMiddle()
Updates the borders of the shape as middle borders. |
protected void |
updateGeneralPathOutside()
Updates the borders of the shape as outside borders. |
void |
updatePath()
Updates the path of the shape. |
Methods inherited from class net.sf.latexdraw.glib.views.Java2D.impl.LShapeView |
---|
beginRotation, contains, contains, endRotation, flush, getBorder, getPath, getPicker, getRotatedShape2D, getRotatedShape2D, getStrokeThickness, intersects, paintArrows, paintFilling, paintShadow, paintShowPointsDots, paintShowPointsLines, update, updatePathArrows |
Methods inherited from class net.sf.latexdraw.glib.views.AbstractView |
---|
getShape |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.latexdraw.glib.views.Java2D.interfaces.IViewShape |
---|
contains, contains, flush, getBorder, getPath, getRotatedShape2D, intersects, paintFilling, paintShadow, paintShowPointsDots, paintShowPointsLines |
Methods inherited from interface net.sf.latexdraw.glib.views.IAbstractView |
---|
getShape, update |
Methods inherited from interface org.malai.picking.Pickable |
---|
getPicker |
Constructor Detail |
---|
protected LDotView(IDot model)
model
- The dot model.Method Detail |
---|
public java.awt.BasicStroke getStroke()
IViewShape
getStroke
in interface IViewShape
getStroke
in class LShapeView<IDot>
public void paintBorders(java.awt.Graphics2D g)
IViewShape
paintBorders
in interface IViewShape
paintBorders
in class LShapeView<IDot>
g
- The graphics where the shape must be drawn.public void paint(java.awt.Graphics2D g)
IViewShape
paint
in interface IViewShape
paint
in class LShapeView<IDot>
g
- The graphics where the shape must be drawn.private void paintDotShape(java.awt.Graphics2D g, boolean toFill, java.awt.Color fillCol)
protected void setPathOTime()
protected void setPathOPlus()
protected void setPathO()
private void setPathOLikeDot(double dec)
protected void setDotPath()
protected void setPathBar()
protected void setPathPlus()
protected void setPathSquare()
protected void setPathX()
protected void setPathAsterisk()
protected void setPathDiamond()
protected void setPathPentagon()
protected void setPathTriangle()
public void updatePath()
IViewShape
updatePath
in interface IViewShape
updatePath
in class LShapeView<IDot>
public void updateBorder()
IViewShape
updateBorder
in interface IViewShape
updateBorder
in class LShapeView<IDot>
protected void updateDblePathInside()
LShapeView
updateDblePathInside
in class LShapeView<IDot>
protected void updateDblePathMiddle()
LShapeView
updateDblePathMiddle
in class LShapeView<IDot>
protected void updateDblePathOutside()
LShapeView
updateDblePathOutside
in class LShapeView<IDot>
protected void updateGeneralPathInside()
LShapeView
updateGeneralPathInside
in class LShapeView<IDot>
protected void updateGeneralPathMiddle()
LShapeView
updateGeneralPathMiddle
in class LShapeView<IDot>
protected void updateGeneralPathOutside()
LShapeView
updateGeneralPathOutside
in class LShapeView<IDot>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |