📄 rendering.java
字号:
package edu.odu.cs.zeil.AlgAE.Server;import java.awt.Color;/** * This interface describes the various decorative controls such * as highlighting, color changing, etc., that can be applied to the * the rendering of a visible objects. * * @see edu.odu.cs.zeil.AlgAE.Server.Visible * @see edu.odu.cs.zeil.AlgAE.Server.VisibleRendering **/public interface Rendering{ /** * Indicates that this object and any objects reachable from it * via the <code>touchAllPointers</code> and * <code>touchAllComponents</code> activities should be portrayed in * the animation. * * @see edu.odu.cs.zeil.AlgAE.Server.Visible#touchAllPointers * @see edu.odu.cs.zeil.AlgAE.Server.Visible#touchAllComponents **/ public void show(); /** * Indicates that this object should only be portrayed in the * animation if it can be reached from another portrayed object * via the <code>touchAllPointers</code> and * <code>touchAllComponents</code> activities. * * @see edu.odu.cs.zeil.AlgAE.Server.Visible#touchAllPointers * @see edu.odu.cs.zeil.AlgAE.Server.Visible#touchAllComponents **/ public void hide(); /** * Highlight (temporary color change) this object. **/ public void highlight(); /** * Highlight (temporary color change) this object. * * @param color color to use when drawing this obejct **/ public void highlight(Color color); /** * Remove highlighting, returning the object to its default color. **/ public void unHighlight(); /** * Highlight (temporary color change) arrows emanating from * this object in the specified direction. **/ public void highlight(int dir); /** * Remove highlighting of arrows emanating from * this object in the specified direction. **/ public void unHighlight(int dir); /** * Highlight (temporary color change) arrows from * this object to the object <CODE>pointedTo</CODE> **/ public void highlight(Object pointedTo); /** * Remove highlighting of arrows from * this object to the object <CODE>pointedTo</CODE> **/ public void unHighlight(Object pointedTo); /** * Permanent color change to an object **/ public void setColor (Color color); /** * What is the default color of this object? **/ public Color color(); /** * Assign the object a "name" to be used when displaying it **/ public void setName (String name);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -