|
||||||||||
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<S>
net.sf.latexdraw.glib.views.Java2D.impl.LStandardGridView<IAxes>
net.sf.latexdraw.glib.views.Java2D.impl.LAxesView
class LAxesView
Defines a view of the IAxes 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/12/2008
Field Summary | |
---|---|
static double |
GAP_LABEL
The interval between the labels and the axes. |
protected java.awt.geom.Path2D |
pathTicks
The path containing the data to paint concerning the ticks of the axes. |
Fields inherited from class net.sf.latexdraw.glib.views.Java2D.impl.LStandardGridView |
---|
fontMetrics, pathLabels |
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 |
LAxesView(IAxes model)
|
Method Summary | |
---|---|
private boolean |
isElementPaintable(int val,
boolean showOrigin,
boolean noArrow1,
boolean noArrow2,
double min,
double max,
int i)
|
void |
paint(java.awt.Graphics2D g)
Draws the shape within a Java2D graphics. |
protected void |
paintArrows(java.awt.Graphics2D g,
boolean asShadow)
Paints the arrows of the shape. |
void |
updateBorder()
Update the border of the shape view. |
void |
updatePath()
Updates the path of the shape. |
protected void |
updatePathArrows()
Updates the path of the view of the arrows. |
protected void |
updatePathAxes()
Updates the general path of the view by drawing the axis of the shape. |
protected void |
updatePathFrame()
Updates the general path of the view by drawing the frame of the shape. |
protected void |
updatePathLabels(double gapx,
double gapy)
Updates the labels path by drawing the labels of the X/Y-axis. |
private void |
updatePathLabelsX(IAxes.PlottingStyle ticksDisplay,
IAxes.TicksStyle ticksStyle,
double gapx,
java.awt.font.FontRenderContext frc)
Updates the labels path by drawing the labels of the X-axis. |
private void |
updatePathLabelsY(IAxes.PlottingStyle ticksDisplay,
IAxes.TicksStyle ticksStyle,
double gapy,
java.awt.font.FontRenderContext frc)
Updates the labels path by drawing the labels of the Y-axis. |
private void |
updatePathTicks(double gapx,
double gapy)
Updates the ticks path by drawing the ticks of the X/Y-axis. |
private void |
updatePathTicksX(double gapx,
IAxes.TicksStyle ticksStyle,
double tickLgth)
Updates the ticks path by drawing the ticks of the X-axis. |
private void |
updatePathTicksY(double gapy,
IAxes.TicksStyle ticksStyle,
double tickLgth)
Updates the ticks path by drawing the ticks of the Y-axis. |
Methods inherited from class net.sf.latexdraw.glib.views.Java2D.impl.LStandardGridView |
---|
contains, flush, intersects, update, updateDblePathInside, updateDblePathMiddle, updateDblePathOutside, updateFonts, updateGeneralPathInside, updateGeneralPathMiddle, updateGeneralPathOutside, updateText |
Methods inherited from class net.sf.latexdraw.glib.views.Java2D.impl.LShapeView |
---|
beginRotation, contains, endRotation, getBorder, getPath, getPicker, getRotatedShape2D, getRotatedShape2D, getStroke, getStrokeThickness, paintBorders, paintFilling, paintShadow, paintShowPointsDots, paintShowPointsLines |
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.IAbstractView |
---|
getShape |
Field Detail |
---|
public static final double GAP_LABEL
protected java.awt.geom.Path2D pathTicks
Constructor Detail |
---|
protected LAxesView(IAxes model)
Method Detail |
---|
private void updatePathTicksX(double gapx, IAxes.TicksStyle ticksStyle, double tickLgth)
private void updatePathTicksY(double gapy, IAxes.TicksStyle ticksStyle, double tickLgth)
private void updatePathTicks(double gapx, double gapy)
private void updatePathLabelsY(IAxes.PlottingStyle ticksDisplay, IAxes.TicksStyle ticksStyle, double gapy, java.awt.font.FontRenderContext frc)
private void updatePathLabelsX(IAxes.PlottingStyle ticksDisplay, IAxes.TicksStyle ticksStyle, double gapx, java.awt.font.FontRenderContext frc)
private boolean isElementPaintable(int val, boolean showOrigin, boolean noArrow1, boolean noArrow2, double min, double max, int i)
protected void updatePathLabels(double gapx, double gapy)
protected void updatePathFrame()
protected void updatePathAxes()
public void updatePath()
IViewShape
updatePath
in interface IViewShape
updatePath
in class LShapeView<IAxes>
protected void updatePathArrows()
LShapeView
updatePathArrows
in class LShapeView<IAxes>
public void paint(java.awt.Graphics2D g)
IViewShape
paint
in interface IViewShape
paint
in class LShapeView<IAxes>
g
- The graphics where the shape must be drawn.protected void paintArrows(java.awt.Graphics2D g, boolean asShadow)
LShapeView
paintArrows
in class LShapeView<IAxes>
public void updateBorder()
IViewShape
updateBorder
in interface IViewShape
updateBorder
in class LShapeView<IAxes>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |