索引
常量字段值|所有程序包|所有类和接口|序列化表格
A
- accept(ShapeVisitor) - 类中的方法 com.example.graphics.model.Circle
- accept(ShapeVisitor) - 类中的方法 com.example.graphics.model.Line
- accept(ShapeVisitor) - 类中的方法 com.example.graphics.model.Rectangle
- accept(ShapeVisitor) - 接口中的方法 com.example.graphics.model.Shape
-
Accept method for the Visitor pattern
- accept(ShapeVisitor) - 类中的方法 com.example.graphics.model.Triangle
- acceptVisitor(ShapeVisitor) - 类中的方法 com.example.graphics.Drawing
-
Apply a visitor to all shapes
- addObserver(ShapeObserver) - 类中的方法 com.example.graphics.Drawing
-
Add an observer to be notified of shape changes
- addObserver(ShapeObserver) - 类中的方法 com.example.graphics.observer.ShapeSubject
-
Add an observer to be notified of changes
- addSampleShapes() - 类中的方法 com.example.graphics.SwingGraphicsApp
- addShape(Shape) - 类中的方法 com.example.graphics.Drawing
-
Add a shape to the drawing using the Command pattern
- AddShapeCommand - com.example.graphics.command中的类
-
Command for adding a shape to a collection.
- AddShapeCommand(List<Shape>, Shape) - 类的构造器 com.example.graphics.command.AddShapeCommand
-
Constructor for the AddShapeCommand
C
- canRedo() - 类中的方法 com.example.graphics.command.CommandManager
-
Check if there are commands that can be redone
- canUndo() - 类中的方法 com.example.graphics.command.CommandManager
-
Check if there are commands that can be undone
- canvas - 类中的变量 com.example.graphics.render.ConsoleRenderer
- Circle - com.example.graphics.model中的类
-
Circle implementation of the Shape interface.
- Circle(int, int, int) - 类的构造器 com.example.graphics.model.Circle
-
Constructs a circle with the specified parameters
- clear() - 类中的方法 com.example.graphics.adapter.ThirdPartyRendererAdapter
- clear() - 接口中的方法 com.example.graphics.proxy.RemoteRenderer
-
Clear the remote rendering surface
- clear() - 类中的方法 com.example.graphics.proxy.RemoteRendererImpl
- clear() - 类中的方法 com.example.graphics.proxy.RemoteRendererProxy
- clear() - 类中的方法 com.example.graphics.render.ConsoleRenderer
- clear() - 接口中的方法 com.example.graphics.render.Renderer
-
Clear the rendering surface
- clear() - 类中的方法 com.example.graphics.render.SvgRenderer
- clear() - 类中的方法 com.example.graphics.render.SwingRenderer
- clear() - 类中的方法 com.example.graphics.visitor.JsonExportVisitor
-
Clear all shapes from the visitor
- clear() - 类中的方法 com.example.graphics.visitor.XmlExportVisitor
-
Clear all shapes and reset the visitor
- clearDrawing() - 类中的方法 com.example.graphics.SwingGraphicsApp
- clearHistory() - 类中的方法 com.example.graphics.command.CommandManager
-
Clear all command history
- clearSurface() - 类中的方法 com.example.graphics.adapter.MockThirdPartyRenderer
- clearSurface() - 接口中的方法 com.example.graphics.adapter.ThirdPartyRenderer
-
Clear the rendering surface
- clone() - 类中的方法 com.example.graphics.model.Circle
- clone() - 类中的方法 com.example.graphics.model.Line
- clone() - 类中的方法 com.example.graphics.model.Rectangle
- clone() - 接口中的方法 com.example.graphics.model.Shape
-
Clone the shape
- clone() - 类中的方法 com.example.graphics.model.Triangle
- com.example.graphics - 程序包 com.example.graphics
- com.example.graphics.adapter - 程序包 com.example.graphics.adapter
- com.example.graphics.command - 程序包 com.example.graphics.command
- com.example.graphics.factory - 程序包 com.example.graphics.factory
- com.example.graphics.model - 程序包 com.example.graphics.model
- com.example.graphics.observer - 程序包 com.example.graphics.observer
- com.example.graphics.proxy - 程序包 com.example.graphics.proxy
- com.example.graphics.render - 程序包 com.example.graphics.render
- com.example.graphics.singleton - 程序包 com.example.graphics.singleton
- com.example.graphics.util - 程序包 com.example.graphics.util
- com.example.graphics.visitor - 程序包 com.example.graphics.visitor
- Command - com.example.graphics.command中的接口
-
Command interface for implementing the Command pattern.
- commandManager - 类中的变量 com.example.graphics.Drawing
- CommandManager - com.example.graphics.command中的类
-
Manager for executing, undoing, and redoing commands.
- CommandManager() - 类的构造器 com.example.graphics.command.CommandManager
-
Constructor initializes the command stacks
- connect() - 类中的方法 com.example.graphics.proxy.RemoteRendererProxy
-
Connect to the remote renderer
- connected - 类中的变量 com.example.graphics.proxy.RemoteRendererProxy
- ConsoleLogger - com.example.graphics.observer中的类
-
Console logger implementation of the ShapeObserver interface.
- ConsoleLogger() - 类的构造器 com.example.graphics.observer.ConsoleLogger
- ConsoleRenderer - com.example.graphics.render中的类
-
Console text-based implementation of the Renderer interface.
- ConsoleRenderer(int, int) - 类的构造器 com.example.graphics.render.ConsoleRenderer
-
Constructor initializes the console renderer with specified dimensions
- ConsoleRendererFactory - com.example.graphics.factory中的类
-
Factory for creating Console renderers.
- ConsoleRendererFactory() - 类的构造器 com.example.graphics.factory.ConsoleRendererFactory
- createCircle(int, int, int) - 类中的方法 com.example.graphics.factory.ShapeFactory
-
Create a circle with the specified parameters
- createLine(int, int, int, int) - 类中的方法 com.example.graphics.factory.ShapeFactory
-
Create a line with the specified endpoints
- createMenuBar() - 类中的方法 com.example.graphics.SwingGraphicsApp
- createNewShape(Point) - 类中的方法 com.example.graphics.SwingGraphicsApp
- createRectangle(int, int, int, int) - 类中的方法 com.example.graphics.factory.ShapeFactory
-
Create a rectangle with the specified parameters
- createRenderer(int, int) - 类中的方法 com.example.graphics.factory.ConsoleRendererFactory
- createRenderer(int, int) - 接口中的方法 com.example.graphics.factory.RendererFactory
-
Create a renderer with the specified dimensions
- createRenderer(int, int) - 类中的方法 com.example.graphics.factory.SvgRendererFactory
- createRenderer(int, int) - 类中的方法 com.example.graphics.factory.SwingRendererFactory
- createToolBar() - 类中的方法 com.example.graphics.SwingGraphicsApp
- createTriangle(int, int, int, int, int, int) - 类中的方法 com.example.graphics.factory.ShapeFactory
-
Create a triangle with the specified vertices
- currentShapeType - 类中的变量 com.example.graphics.SwingGraphicsApp
D
- debugMode - 类中的变量 com.example.graphics.singleton.RenderingConfig
- defaultHeight - 类中的变量 com.example.graphics.singleton.RenderingConfig
- defaultRendererType - 类中的变量 com.example.graphics.singleton.RenderingConfig
- defaultWidth - 类中的变量 com.example.graphics.singleton.RenderingConfig
- disconnect() - 类中的方法 com.example.graphics.proxy.RemoteRendererProxy
-
Disconnect from the remote renderer
- display() - 类中的方法 com.example.graphics.adapter.ThirdPartyRendererAdapter
- display() - 接口中的方法 com.example.graphics.proxy.RemoteRenderer
-
Display the rendered content remotely
- display() - 类中的方法 com.example.graphics.proxy.RemoteRendererImpl
- display() - 类中的方法 com.example.graphics.proxy.RemoteRendererProxy
- display() - 类中的方法 com.example.graphics.render.ConsoleRenderer
- display() - 接口中的方法 com.example.graphics.render.Renderer
-
Display the rendered content
- display() - 类中的方法 com.example.graphics.render.SvgRenderer
- display() - 类中的方法 com.example.graphics.render.SwingRenderer
- document - 类中的变量 com.example.graphics.visitor.XmlExportVisitor
- dragStart - 类中的变量 com.example.graphics.SwingGraphicsApp
- drawCircle(double, double, double) - 类中的方法 com.example.graphics.adapter.MockThirdPartyRenderer
- drawCircle(double, double, double) - 接口中的方法 com.example.graphics.adapter.ThirdPartyRenderer
-
Draw a circle in the third-party renderer
- drawing - 类中的变量 com.example.graphics.SwingGraphicsApp
- Drawing - com.example.graphics中的类
-
Main drawing class that manages shapes and rendering.
- Drawing(Renderer) - 类的构造器 com.example.graphics.Drawing
-
Constructor initializes the drawing
- drawLine(double, double, double, double) - 类中的方法 com.example.graphics.adapter.MockThirdPartyRenderer
- drawLine(double, double, double, double) - 接口中的方法 com.example.graphics.adapter.ThirdPartyRenderer
-
Draw a line in the third-party renderer
- drawLine(int, int, int, int) - 类中的方法 com.example.graphics.render.ConsoleRenderer
-
Draw a line between two points
- drawPixel(int, int) - 类中的方法 com.example.graphics.render.ConsoleRenderer
-
Draw a pixel at the specified coordinates
- drawPolygon(int[], int[], int) - 类中的方法 com.example.graphics.adapter.MockThirdPartyRenderer
- drawPolygon(int[], int[], int) - 接口中的方法 com.example.graphics.adapter.ThirdPartyRenderer
-
Draw a polygon in the third-party renderer
- drawRect(double, double, double, double) - 类中的方法 com.example.graphics.adapter.MockThirdPartyRenderer
- drawRect(double, double, double, double) - 接口中的方法 com.example.graphics.adapter.ThirdPartyRenderer
-
Draw a rectangle in the third-party renderer
E
- ensureConnected() - 类中的方法 com.example.graphics.proxy.RemoteRendererProxy
-
Ensure connection before performing operations
- execute() - 类中的方法 com.example.graphics.command.AddShapeCommand
- execute() - 接口中的方法 com.example.graphics.command.Command
-
Execute the command
- execute() - 类中的方法 com.example.graphics.command.MoveShapeCommand
- execute() - 类中的方法 com.example.graphics.command.RemoveShapeCommand
- executeCommand(Command) - 类中的方法 com.example.graphics.command.CommandManager
-
Execute a command and add it to the undo stack
- exportToJson() - 类中的方法 com.example.graphics.SwingGraphicsApp
- exportToXml() - 类中的方法 com.example.graphics.SwingGraphicsApp
F
- fileManager - 类中的变量 com.example.graphics.SwingGraphicsApp
- FileManager - com.example.graphics.util中的类
-
文件管理器类,用于保存和加载图形
- FileManager() - 类的构造器 com.example.graphics.util.FileManager
-
构造函数
G
- getDefaultHeight() - 类中的方法 com.example.graphics.singleton.RenderingConfig
-
Get the default height for renderers
- getDefaultRendererType() - 类中的方法 com.example.graphics.singleton.RenderingConfig
-
Get the default renderer type
- getDefaultWidth() - 类中的方法 com.example.graphics.singleton.RenderingConfig
-
Get the default width for renderers
- getHeight() - 类中的方法 com.example.graphics.model.Rectangle
-
Get the height of the rectangle
- getHeight() - 接口中的方法 com.example.graphics.render.Renderer
-
Get the height of the rendering area
- getInstance() - 类中的静态方法 com.example.graphics.singleton.RenderingConfig
-
Get the singleton instance of RenderingConfig
- getJsonOutput() - 类中的方法 com.example.graphics.visitor.JsonExportVisitor
-
Get the JSON representation of all visited shapes
- getRadius() - 类中的方法 com.example.graphics.model.Circle
-
Get the radius of the circle
- getRenderer() - 类中的方法 com.example.graphics.Drawing
-
Get the current renderer
- getRenderPanel() - 类中的方法 com.example.graphics.render.SwingRenderer
-
Get the JPanel that displays the rendered shapes
- getShapes() - 类中的方法 com.example.graphics.Drawing
-
Get the list of shapes
- getShapeTypeName(Shape) - 类中的方法 com.example.graphics.SwingGraphicsApp
- getSvgContent() - 类中的方法 com.example.graphics.render.SvgRenderer
-
Get the SVG content as a string
- getWidth() - 类中的方法 com.example.graphics.model.Rectangle
-
Get the width of the rectangle
- getWidth() - 接口中的方法 com.example.graphics.render.Renderer
-
Get the width of the rendering area
- getX() - 类中的方法 com.example.graphics.model.Circle
- getX() - 类中的方法 com.example.graphics.model.Line
- getX() - 类中的方法 com.example.graphics.model.Rectangle
- getX() - 接口中的方法 com.example.graphics.model.Shape
-
Get the x coordinate of the shape
- getX() - 类中的方法 com.example.graphics.model.Triangle
- getX1() - 类中的方法 com.example.graphics.model.Line
-
Get the x coordinate of the first endpoint
- getX1() - 类中的方法 com.example.graphics.model.Triangle
-
Get the x coordinate of the first vertex
- getX2() - 类中的方法 com.example.graphics.model.Line
-
Get the x coordinate of the second endpoint
- getX2() - 类中的方法 com.example.graphics.model.Triangle
-
Get the x coordinate of the second vertex
- getX3() - 类中的方法 com.example.graphics.model.Triangle
-
Get the x coordinate of the third vertex
- getXmlOutput() - 类中的方法 com.example.graphics.visitor.XmlExportVisitor
-
Get the XML representation of all visited shapes
- getY() - 类中的方法 com.example.graphics.model.Circle
- getY() - 类中的方法 com.example.graphics.model.Line
- getY() - 类中的方法 com.example.graphics.model.Rectangle
- getY() - 接口中的方法 com.example.graphics.model.Shape
-
Get the y coordinate of the shape
- getY() - 类中的方法 com.example.graphics.model.Triangle
- getY1() - 类中的方法 com.example.graphics.model.Line
-
Get the y coordinate of the first endpoint
- getY1() - 类中的方法 com.example.graphics.model.Triangle
-
Get the y coordinate of the first vertex
- getY2() - 类中的方法 com.example.graphics.model.Line
-
Get the y coordinate of the second endpoint
- getY2() - 类中的方法 com.example.graphics.model.Triangle
-
Get the y coordinate of the second vertex
- getY3() - 类中的方法 com.example.graphics.model.Triangle
-
Get the y coordinate of the third vertex
H
- height - 类中的变量 com.example.graphics.model.Rectangle
- height - 类中的变量 com.example.graphics.render.ConsoleRenderer
- height - 类中的变量 com.example.graphics.render.SvgRenderer
- height - 类中的变量 com.example.graphics.render.SwingRenderer
I
- index - 类中的变量 com.example.graphics.command.RemoveShapeCommand
- instance - 类中的静态变量 com.example.graphics.singleton.RenderingConfig
- isConnected() - 类中的方法 com.example.graphics.proxy.RemoteRendererProxy
-
Check if the proxy is connected to the remote renderer
- isDebugMode() - 类中的方法 com.example.graphics.singleton.RenderingConfig
-
Check if debug mode is enabled
- isDragging - 类中的变量 com.example.graphics.SwingGraphicsApp
- isDrawingLine - 类中的变量 com.example.graphics.SwingGraphicsApp
- isDrawingTriangle - 类中的变量 com.example.graphics.SwingGraphicsApp
- isPointOnShape(Shape, Point) - 类中的方法 com.example.graphics.SwingGraphicsApp
- isRemoteRenderingEnabled - 类中的变量 com.example.graphics.SwingGraphicsApp
J
- JsonExportVisitor - com.example.graphics.visitor中的类
-
Visitor implementation that exports shapes to JSON format.
- JsonExportVisitor() - 类的构造器 com.example.graphics.visitor.JsonExportVisitor
-
Constructor initializes the JSON array
L
- Line - com.example.graphics.model中的类
-
Line implementation of the Shape interface.
- Line(int, int, int, int) - 类的构造器 com.example.graphics.model.Line
-
Constructs a line with the specified endpoints
- loadDrawingBinary(String) - 类中的方法 com.example.graphics.util.FileManager
-
从二进制文件加载图形
- loadDrawingJson(String) - 类中的方法 com.example.graphics.util.FileManager
-
从JSON文件加载图形
- localRenderer - 类中的变量 com.example.graphics.proxy.RemoteRendererProxy
- localRenderer - 类中的变量 com.example.graphics.SwingGraphicsApp
M
- main(String[]) - 类中的静态方法 com.example.graphics.Main
- main(String[]) - 类中的静态方法 com.example.graphics.SwingGraphicsApp
- Main - com.example.graphics中的类
-
Main class that demonstrates the graphics rendering system.
- Main() - 类的构造器 com.example.graphics.Main
- MockThirdPartyRenderer - com.example.graphics.adapter中的类
-
Mock implementation of the ThirdPartyRenderer interface.
- MockThirdPartyRenderer() - 类的构造器 com.example.graphics.adapter.MockThirdPartyRenderer
- moveShape(Shape, int, int) - 类中的方法 com.example.graphics.Drawing
-
Move a shape to a new position using the Command pattern
- MoveShapeCommand - com.example.graphics.command中的类
-
Command for moving a shape to a new position.
- MoveShapeCommand(Shape, int, int) - 类的构造器 com.example.graphics.command.MoveShapeCommand
-
Constructor for the MoveShapeCommand
N
- newDrawing() - 类中的方法 com.example.graphics.SwingGraphicsApp
- newX - 类中的变量 com.example.graphics.command.MoveShapeCommand
- newY - 类中的变量 com.example.graphics.command.MoveShapeCommand
- notifyShapeAdded(Shape) - 类中的方法 com.example.graphics.observer.ShapeSubject
-
Notify all observers that a shape was added
- notifyShapeModified(Shape) - 类中的方法 com.example.graphics.observer.ShapeSubject
-
Notify all observers that a shape was modified
- notifyShapeRemoved(Shape) - 类中的方法 com.example.graphics.observer.ShapeSubject
-
Notify all observers that a shape was removed
O
- observers - 类中的变量 com.example.graphics.observer.ShapeSubject
- oldX - 类中的变量 com.example.graphics.command.MoveShapeCommand
- oldY - 类中的变量 com.example.graphics.command.MoveShapeCommand
- onShapeAdded(Shape) - 类中的方法 com.example.graphics.observer.ConsoleLogger
- onShapeAdded(Shape) - 接口中的方法 com.example.graphics.observer.ShapeObserver
-
Called when a shape is added
- onShapeModified(Shape) - 类中的方法 com.example.graphics.observer.ConsoleLogger
- onShapeModified(Shape) - 接口中的方法 com.example.graphics.observer.ShapeObserver
-
Called when a shape is modified
- onShapeRemoved(Shape) - 类中的方法 com.example.graphics.observer.ConsoleLogger
- onShapeRemoved(Shape) - 接口中的方法 com.example.graphics.observer.ShapeObserver
-
Called when a shape is removed
- openDrawing() - 类中的方法 com.example.graphics.SwingGraphicsApp
R
- radius - 类中的变量 com.example.graphics.model.Circle
- Rectangle - com.example.graphics.model中的类
-
Rectangle implementation of the Shape interface.
- Rectangle(int, int, int, int) - 类的构造器 com.example.graphics.model.Rectangle
-
Constructs a rectangle with the specified parameters
- redo() - 类中的方法 com.example.graphics.command.CommandManager
-
Redo the most recently undone command
- redo() - 类中的方法 com.example.graphics.Drawing
-
Redo the last undone command
- redoStack - 类中的变量 com.example.graphics.command.CommandManager
- refreshDisplay() - 类中的方法 com.example.graphics.adapter.MockThirdPartyRenderer
- refreshDisplay() - 接口中的方法 com.example.graphics.adapter.ThirdPartyRenderer
-
Update the display
- remoteRenderer - 类中的变量 com.example.graphics.proxy.RemoteRendererProxy
- remoteRenderer - 类中的变量 com.example.graphics.SwingGraphicsApp
- RemoteRenderer - com.example.graphics.proxy中的接口
-
Interface for remote rendering operations.
- RemoteRendererImpl - com.example.graphics.proxy中的类
-
Implementation of the RemoteRenderer interface.
- RemoteRendererImpl() - 类的构造器 com.example.graphics.proxy.RemoteRendererImpl
- RemoteRendererProxy - com.example.graphics.proxy中的类
-
Proxy for remote rendering operations.
- RemoteRendererProxy() - 类的构造器 com.example.graphics.proxy.RemoteRendererProxy
-
Constructor initializes the proxy
- remoteRenderingToggle - 类中的变量 com.example.graphics.SwingGraphicsApp
- removeObserver(ShapeObserver) - 类中的方法 com.example.graphics.Drawing
-
Remove an observer from the notification list
- removeObserver(ShapeObserver) - 类中的方法 com.example.graphics.observer.ShapeSubject
-
Remove an observer from the notification list
- removeShape(Shape) - 类中的方法 com.example.graphics.Drawing
-
Remove a shape from the drawing using the Command pattern
- RemoveShapeCommand - com.example.graphics.command中的类
-
Command for removing a shape from a collection.
- RemoveShapeCommand(List<Shape>, Shape) - 类的构造器 com.example.graphics.command.RemoveShapeCommand
-
Constructor for the RemoveShapeCommand
- render() - 类中的方法 com.example.graphics.Drawing
-
Render all shapes using the current renderer
- renderCircle(Circle) - 类中的方法 com.example.graphics.adapter.ThirdPartyRendererAdapter
- renderCircle(Circle) - 接口中的方法 com.example.graphics.proxy.RemoteRenderer
-
Render a circle remotely
- renderCircle(Circle) - 类中的方法 com.example.graphics.proxy.RemoteRendererImpl
- renderCircle(Circle) - 类中的方法 com.example.graphics.proxy.RemoteRendererProxy
- renderCircle(Circle) - 类中的方法 com.example.graphics.render.ConsoleRenderer
- renderCircle(Circle) - 接口中的方法 com.example.graphics.render.Renderer
-
Render a circle
- renderCircle(Circle) - 类中的方法 com.example.graphics.render.SvgRenderer
- renderCircle(Circle) - 类中的方法 com.example.graphics.render.SwingRenderer
- renderer - 类中的变量 com.example.graphics.Drawing
- Renderer - com.example.graphics.render中的接口
-
Renderer interface for implementing the Bridge pattern.
- RendererFactory - com.example.graphics.factory中的接口
-
Abstract Factory interface for creating renderers.
- RenderingConfig - com.example.graphics.singleton中的类
-
Singleton class for managing system-wide rendering configuration.
- RenderingConfig() - 类的构造器 com.example.graphics.singleton.RenderingConfig
-
Private constructor to prevent instantiation from outside
- renderLine(Line) - 类中的方法 com.example.graphics.adapter.ThirdPartyRendererAdapter
- renderLine(Line) - 接口中的方法 com.example.graphics.proxy.RemoteRenderer
-
Render a line remotely
- renderLine(Line) - 类中的方法 com.example.graphics.proxy.RemoteRendererImpl
- renderLine(Line) - 类中的方法 com.example.graphics.proxy.RemoteRendererProxy
- renderLine(Line) - 类中的方法 com.example.graphics.render.ConsoleRenderer
- renderLine(Line) - 接口中的方法 com.example.graphics.render.Renderer
-
Render a line
- renderLine(Line) - 类中的方法 com.example.graphics.render.SvgRenderer
- renderLine(Line) - 类中的方法 com.example.graphics.render.SwingRenderer
- renderPanel - 类中的变量 com.example.graphics.render.SwingRenderer
- renderRectangle(Rectangle) - 类中的方法 com.example.graphics.adapter.ThirdPartyRendererAdapter
- renderRectangle(Rectangle) - 接口中的方法 com.example.graphics.proxy.RemoteRenderer
-
Render a rectangle remotely
- renderRectangle(Rectangle) - 类中的方法 com.example.graphics.proxy.RemoteRendererImpl
- renderRectangle(Rectangle) - 类中的方法 com.example.graphics.proxy.RemoteRendererProxy
- renderRectangle(Rectangle) - 类中的方法 com.example.graphics.render.ConsoleRenderer
- renderRectangle(Rectangle) - 接口中的方法 com.example.graphics.render.Renderer
-
Render a rectangle
- renderRectangle(Rectangle) - 类中的方法 com.example.graphics.render.SvgRenderer
- renderRectangle(Rectangle) - 类中的方法 com.example.graphics.render.SwingRenderer
- renderTriangle(Triangle) - 类中的方法 com.example.graphics.adapter.ThirdPartyRendererAdapter
- renderTriangle(Triangle) - 接口中的方法 com.example.graphics.proxy.RemoteRenderer
-
Render a triangle remotely
- renderTriangle(Triangle) - 类中的方法 com.example.graphics.proxy.RemoteRendererImpl
- renderTriangle(Triangle) - 类中的方法 com.example.graphics.proxy.RemoteRendererProxy
- renderTriangle(Triangle) - 类中的方法 com.example.graphics.render.ConsoleRenderer
- renderTriangle(Triangle) - 接口中的方法 com.example.graphics.render.Renderer
-
Render a triangle
- renderTriangle(Triangle) - 类中的方法 com.example.graphics.render.SvgRenderer
- renderTriangle(Triangle) - 类中的方法 com.example.graphics.render.SwingRenderer
- rootElement - 类中的变量 com.example.graphics.visitor.XmlExportVisitor
S
- saveDrawing() - 类中的方法 com.example.graphics.SwingGraphicsApp
- saveDrawingBinary(Drawing, String) - 类中的方法 com.example.graphics.util.FileManager
-
将图形保存为二进制文件
- saveDrawingJson(String, String) - 类中的方法 com.example.graphics.util.FileManager
-
将图形保存为JSON文件
- saveDrawingXml(String, String) - 类中的方法 com.example.graphics.util.FileManager
-
将图形保存为XML文件
- saveToFile(String, String) - 类中的方法 com.example.graphics.SwingGraphicsApp
- selectedShape - 类中的变量 com.example.graphics.SwingGraphicsApp
- serialVersionUID - 类中的静态变量 com.example.graphics.Drawing
- setDebugMode(boolean) - 类中的方法 com.example.graphics.singleton.RenderingConfig
-
Set the debug mode
- setDefaultHeight(int) - 类中的方法 com.example.graphics.singleton.RenderingConfig
-
Set the default height for renderers
- setDefaultRendererType(String) - 类中的方法 com.example.graphics.singleton.RenderingConfig
-
Set the default renderer type
- setDefaultWidth(int) - 类中的方法 com.example.graphics.singleton.RenderingConfig
-
Set the default width for renderers
- setHeight(int) - 类中的方法 com.example.graphics.model.Rectangle
-
Set the height of the rectangle
- setLine(int, int, int, int) - 类中的方法 com.example.graphics.model.Line
-
Set both endpoints of the line at once
- setLocalRenderer(SwingRenderer) - 类中的方法 com.example.graphics.proxy.RemoteRendererProxy
-
设置本地渲染器,用于在远程渲染的同时在本地GUI显示
- setPoint1(int, int) - 类中的方法 com.example.graphics.model.Line
-
Set the coordinates of the first endpoint
- setPoint2(int, int) - 类中的方法 com.example.graphics.model.Line
-
Set the coordinates of the second endpoint
- setPosition(int, int) - 类中的方法 com.example.graphics.model.Circle
- setPosition(int, int) - 类中的方法 com.example.graphics.model.Line
- setPosition(int, int) - 类中的方法 com.example.graphics.model.Rectangle
- setPosition(int, int) - 接口中的方法 com.example.graphics.model.Shape
-
Set the position of the shape
- setPosition(int, int) - 类中的方法 com.example.graphics.model.Triangle
- setRadius(int) - 类中的方法 com.example.graphics.model.Circle
-
Set the radius of the circle
- setRenderer(Renderer) - 类中的方法 com.example.graphics.Drawing
-
Set the renderer to use
- setSize(int, int) - 类中的方法 com.example.graphics.model.Rectangle
-
Set both width and height of the rectangle at once
- setTriangle(int, int, int, int, int, int) - 类中的方法 com.example.graphics.model.Triangle
-
Set all three vertices of the triangle at once
- setupRenderPanelListeners(JPanel) - 类中的方法 com.example.graphics.SwingGraphicsApp
- setupUI() - 类中的方法 com.example.graphics.SwingGraphicsApp
- setWidth(int) - 类中的方法 com.example.graphics.model.Rectangle
-
Set the width of the rectangle
- shape - 类中的变量 com.example.graphics.command.AddShapeCommand
- shape - 类中的变量 com.example.graphics.command.MoveShapeCommand
- shape - 类中的变量 com.example.graphics.command.RemoveShapeCommand
- Shape - com.example.graphics.model中的接口
-
Shape interface representing a graphical shape element.
- shapeColors - 类中的变量 com.example.graphics.render.SwingRenderer
- shapeFactory - 类中的变量 com.example.graphics.SwingGraphicsApp
- shapeFactory - 类中的变量 com.example.graphics.util.FileManager
- ShapeFactory - com.example.graphics.factory中的类
-
Factory class for creating different types of shapes.
- ShapeFactory() - 类的构造器 com.example.graphics.factory.ShapeFactory
- ShapeObserver - com.example.graphics.observer中的接口
-
Observer interface for the Observer pattern.
- shapes - 类中的变量 com.example.graphics.command.AddShapeCommand
- shapes - 类中的变量 com.example.graphics.command.RemoveShapeCommand
- shapes - 类中的变量 com.example.graphics.Drawing
- shapes - 类中的变量 com.example.graphics.render.SwingRenderer
- shapes - 类中的变量 com.example.graphics.visitor.JsonExportVisitor
- shapeSubject - 类中的变量 com.example.graphics.Drawing
- ShapeSubject - com.example.graphics.observer中的类
-
Subject class for the Observer pattern.
- ShapeSubject() - 类的构造器 com.example.graphics.observer.ShapeSubject
-
Constructor initializes the observer list
- ShapeVisitor - com.example.graphics.visitor中的接口
-
ShapeVisitor interface for implementing the Visitor pattern.
- simulateNetworkDelay() - 类中的方法 com.example.graphics.proxy.RemoteRendererImpl
-
Simulate network delay for remote operations
- statusLabel - 类中的变量 com.example.graphics.SwingGraphicsApp
- svgContent - 类中的变量 com.example.graphics.render.SvgRenderer
- SvgRenderer - com.example.graphics.render中的类
-
SVG implementation of the Renderer interface.
- SvgRenderer(int, int) - 类的构造器 com.example.graphics.render.SvgRenderer
-
Constructor initializes the SVG renderer with specified dimensions
- SvgRendererFactory - com.example.graphics.factory中的类
-
Factory for creating SVG renderers.
- SvgRendererFactory() - 类的构造器 com.example.graphics.factory.SvgRendererFactory
- SwingGraphicsApp - com.example.graphics中的类
-
Swing GUI application for the graphics rendering system
- SwingGraphicsApp() - 类的构造器 com.example.graphics.SwingGraphicsApp
- SwingRenderer - com.example.graphics.render中的类
-
Swing-based renderer implementation that renders shapes on a JPanel
- SwingRenderer(int, int) - 类的构造器 com.example.graphics.render.SwingRenderer
- SwingRendererFactory - com.example.graphics.factory中的类
-
Factory for creating Swing-based renderers
- SwingRendererFactory() - 类的构造器 com.example.graphics.factory.SwingRendererFactory
- switchToLocalRendering() - 类中的方法 com.example.graphics.SwingGraphicsApp
- switchToRemoteRendering() - 类中的方法 com.example.graphics.SwingGraphicsApp
T
- thirdPartyRenderer - 类中的变量 com.example.graphics.adapter.ThirdPartyRendererAdapter
- ThirdPartyRenderer - com.example.graphics.adapter中的接口
-
Mock interface for a third-party rendering library.
- ThirdPartyRendererAdapter - com.example.graphics.adapter中的类
-
Adapter for the ThirdPartyRenderer interface.
- ThirdPartyRendererAdapter(ThirdPartyRenderer) - 类的构造器 com.example.graphics.adapter.ThirdPartyRendererAdapter
-
Constructor takes the third-party renderer to adapt
- Triangle - com.example.graphics.model中的类
-
Triangle implementation of the Shape interface.
- Triangle(int, int, int, int, int, int) - 类的构造器 com.example.graphics.model.Triangle
-
Constructs a triangle with the specified vertices
- triangleStage - 类中的变量 com.example.graphics.SwingGraphicsApp
U
- undo() - 类中的方法 com.example.graphics.command.AddShapeCommand
- undo() - 接口中的方法 com.example.graphics.command.Command
-
Undo the command
- undo() - 类中的方法 com.example.graphics.command.CommandManager
-
Undo the most recently executed command
- undo() - 类中的方法 com.example.graphics.command.MoveShapeCommand
- undo() - 类中的方法 com.example.graphics.command.RemoveShapeCommand
- undo() - 类中的方法 com.example.graphics.Drawing
-
Undo the last command
- undoStack - 类中的变量 com.example.graphics.command.CommandManager
V
- visit(Circle) - 类中的方法 com.example.graphics.visitor.JsonExportVisitor
- visit(Circle) - 接口中的方法 com.example.graphics.visitor.ShapeVisitor
-
Visit a Circle shape
- visit(Circle) - 类中的方法 com.example.graphics.visitor.XmlExportVisitor
- visit(Line) - 类中的方法 com.example.graphics.visitor.JsonExportVisitor
- visit(Line) - 接口中的方法 com.example.graphics.visitor.ShapeVisitor
-
Visit a Line shape
- visit(Line) - 类中的方法 com.example.graphics.visitor.XmlExportVisitor
- visit(Rectangle) - 类中的方法 com.example.graphics.visitor.JsonExportVisitor
- visit(Rectangle) - 接口中的方法 com.example.graphics.visitor.ShapeVisitor
-
Visit a Rectangle shape
- visit(Rectangle) - 类中的方法 com.example.graphics.visitor.XmlExportVisitor
- visit(Triangle) - 类中的方法 com.example.graphics.visitor.JsonExportVisitor
- visit(Triangle) - 接口中的方法 com.example.graphics.visitor.ShapeVisitor
-
Visit a Triangle shape
- visit(Triangle) - 类中的方法 com.example.graphics.visitor.XmlExportVisitor
W
- width - 类中的变量 com.example.graphics.model.Rectangle
- width - 类中的变量 com.example.graphics.render.ConsoleRenderer
- width - 类中的变量 com.example.graphics.render.SvgRenderer
- width - 类中的变量 com.example.graphics.render.SwingRenderer
X
- x - 类中的变量 com.example.graphics.model.Circle
- x - 类中的变量 com.example.graphics.model.Rectangle
- x1 - 类中的变量 com.example.graphics.model.Line
- x1 - 类中的变量 com.example.graphics.model.Triangle
- x1 - 类中的变量 com.example.graphics.SwingGraphicsApp
- x2 - 类中的变量 com.example.graphics.model.Line
- x2 - 类中的变量 com.example.graphics.model.Triangle
- x2 - 类中的变量 com.example.graphics.SwingGraphicsApp
- x3 - 类中的变量 com.example.graphics.model.Triangle
- XmlExportVisitor - com.example.graphics.visitor中的类
-
Visitor implementation that exports shapes to XML format.
- XmlExportVisitor() - 类的构造器 com.example.graphics.visitor.XmlExportVisitor
-
Constructor initializes the XML document
Y
- y - 类中的变量 com.example.graphics.model.Circle
- y - 类中的变量 com.example.graphics.model.Rectangle
- y1 - 类中的变量 com.example.graphics.model.Line
- y1 - 类中的变量 com.example.graphics.model.Triangle
- y1 - 类中的变量 com.example.graphics.SwingGraphicsApp
- y2 - 类中的变量 com.example.graphics.model.Line
- y2 - 类中的变量 com.example.graphics.model.Triangle
- y2 - 类中的变量 com.example.graphics.SwingGraphicsApp
- y3 - 类中的变量 com.example.graphics.model.Triangle
常量字段值|所有程序包|所有类和接口|序列化表格